apt-listbugs أداة لجلب تقارير العلل من 'نظام دبيان لتتبّع العلل Debian Bug Tracking System' وهي ضرورية لمستخدمي كل من الإصدارة الاختبارية وغير المستقرّة لتجنّب انهيار النظام بسبب الحزم العليلة.
التّثبيت :
التّثبيت :
sudo aptitude install apt-listbugs
يتم تشغيل الأداة آليا عند تثبيت حزم جديدة أو عند عملية التحديث وفي حالة وجودة علل يتم عرض رسالة تنبيه مع خيار تثبيت الحزمة العليلة أم لا بالإضافة لخيارات أخرى.
مثال لعمل الأداة أثناء تثبيت مدير التّشبيك wicd :
sudo aptitude install wicdThe following NEW packages will be installeThe following NEW packages will be installed: gksu{a} libgksu2-0{a} libiw30{a} python-glade2{a} python-wicd{a} wicd wicd-daemon{a} wicd-gtk{a} wireless-tools{a} 0 packages upgraded, 9 newly installed, 0 to remove and 0 not upgraded.Need to get 0 B/866 kB of archives. After unpacking 4,405 kB will be used.Do you want to continue? [Y/n/?]
في هذه المرحلة تم إيجاد علّة في الحزمة.
Retrieving bug reports... Done Parsing Found/Fixed information... Doneserious bugs of wicd (-> 1.7.1-1) #612918 - Uses /etc/wicd/wireless-settings.conf as state fileSummary: wicd(1 bug)Are you sure you want to install/upgrade the above packages? [Y/n/?/...]
لعرض جميع الخيارات اضغط على "?"
y - continue the apt installation, but do not make the bugs ignored. a - continue the apt installation and make all the above bugs ignored. n - stop the apt installation. - query the specified bug number (requires reportbug). # - same as r - redisplay bug lists. p
- make pkgs pinned: need to restart apt to enable. p - make all the above pkgs pinned: need to restart. i - make bug number ignored. ? - print this help. w - display bug lists in HTML (uses sensible-browser).Are you sure you want to install/upgrade the above packages? [Y/n/?/...]
y : إكمال التّثبيت دون تجاهل العلل.
a : إكمال التّثبيت مع تجاهل العلل.
n : إيقاف التّثبيت.
الخيار الذي يهمّنا هو 'p' الذي سيقوم بعمل "hold" للحزمة عن طريق الـ aApt-Pinning باستخدام الملف etc/apt/preferences/.
The following 1 package will be pinned or on hold: wicdAre you sure? [Y/n] wicd pinned by adding Pin preferences in /etc/apt/preferences. You need to restart apt to enableAre you sure you want to install/upgrade the above packages? [N/?/...] ********************************************************************************** Exit with an error by force in order to stop the installation. **********************************************************************************E: Sub-process /usr/sbin/apt-listbugs apt
exit 10 returned an error code (10)E: Failure running script /usr/sbin/apt-listbugs apt
exit 10A package failed to install. Trying to recover:الأن نُلقي نظرة على الملف etc/apt/preferences/ :
Explanation: Pinned by apt-listbugs at Mon Mar 19 15:29:18 +0000 2012Explanation: #612918: Uses /etc/wicd/wireless-settings.conf as state filePackage: wicdPin: version *Pin-Priority: -30000
تم عمل "pinn" للحزمة العليلة، بعد هذه العملية لن يقوم مدير الحزم بتثبيت الحزمة إلا في حالة وجود إصدارات جديدة على المستودعات.
مرجع : wiki.debian-fr
المصدر : arabicfoss