Just an example how I have used the proposed apt-listbugs

a) In /etc/apt/apt.conf add the line

LISTBUGS::Force-Pin "all";

b) Install cron-apt and in the actions directory /etc/cron-apt/action.d,
where by default exist the files '0-update' and '3-download', create the
file '5-upgrade' with the following two (same) lines

upgrade -y
upgrade -y

This configuration upgrades only the files that have no critical bugs
The coresponding part of the /var/log/cron-apt/log is attached.

Regards

George Famelis

Email: [EMAIL PROTECTED], [EMAIL PROTECTED]
CRON-APT RUN [/etc/cron-apt/config]: Mon Sep 10 16:00:01 EEST 2007
CRON-APT SLEEP: 243, Mon Sep 10 16:04:04 EEST 2007
CRON-APT ACTION: 0-update
CRON-APT LINE: /usr/bin/apt-get update -o quiet=2
CRON-APT ACTION: 3-download
CRON-APT LINE: /usr/bin/apt-get autoclean -y
Reading package lists...
Building dependency tree...
Reading state information...
Del libwine 0.9.43-1 [7960kB]
Del libwine-alsa 0.9.43-1 [708kB]
Del libwine-capi 0.9.43-1 [658kB]
Del libwine-cms 0.9.43-1 [670kB]
Del libwine-gl 0.9.43-1 [1097kB]
Del libwine-gphoto2 0.9.43-1 [673kB]
Del libwine-ldap 0.9.43-1 [720kB]
Del libwine-print 0.9.43-1 [769kB]
Del libwine-sane 0.9.43-1 [671kB]
Del libwine-twain 0.9.43-1 [654kB]
Del wine 0.9.43-1 [656kB]
Del wine-bin 0.9.43-1 [1199kB]
Del wine-utils 0.9.43-1 [1290kB]
CRON-APT LINE: /usr/bin/apt-get dist-upgrade -d -y -o 
APT::Get::Show-Upgraded=true
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  cli-common-dev kdm kdmtheme libmono1.0-cil mono-mcs mono-runtime
The following NEW packages will be installed:
  cpp-4.2 g++-4.2 gcc-4.2 guile-1.8-libs libboost-python1.34.1
  libcommons-io-java libgomp1 libgwrap-runtime2 libmtp6 libntfs-3g10
  libstdc++6-4.2-dev linux-headers-2.6.22-2 linux-headers-2.6.22-2-686
  linux-image-2.6.22-2-686 loop-aes-modules-2.6.22-2-686 openbios-sparc
The following packages have been kept back:
  dpkg-dev kdenlive kdepim libldap2-dev libmjpegtools0 libmlt++0.2.3
  libmono-corlib1.0-cil libmono-system-web1.0-cil libmono-system1.0-cil
  libpam-mount libxine1-console libxine1-ffmpeg libxine1-gnome mjpegtools
  mono-common transcode
The following packages will be upgraded:
  amarok amarok-xine cpp g++ gcc guile-g-wrap kcontrol kdebase kdebase-bin
  kdebase-kio-plugins kdesktop kfind kig konqueror libcommons-fileupload-java
  libwine libwine-alsa libwine-capi libwine-cms libwine-gl libwine-gphoto2
  libwine-ldap libwine-print libwine-sane libwine-twain libxml-sax-perl
  linux-headers-2.6-686 linux-image-2.6-686 loop-aes-modules-2.6-686 mono-gac
  ncompress ntfs-3g qemu wine wine-bin wine-utils
36 upgraded, 16 newly installed, 6 to remove and 16 not upgraded.
Need to get 18.1MB/79.9MB of archives.
After unpacking 105MB of additional disk space will be used.
Get:1 http://ftp.debian.org sid/main wine 0.9.44-1 [669kB]
Get:2 http://ftp.debian.org sid/main wine-bin 0.9.44-1 [1215kB]
Get:3 http://ftp.debian.org sid/main libwine-alsa 0.9.44-1 [725kB]
Get:4 http://ftp.debian.org sid/main libwine-gl 0.9.44-1 [1119kB]
Get:5 http://ftp.debian.org sid/main libwine-print 0.9.44-1 [782kB]
Get:6 http://ftp.debian.org sid/main libwine-sane 0.9.44-1 [684kB]
Get:7 http://ftp.debian.org sid/main libwine-cms 0.9.44-1 [683kB]
Get:8 http://ftp.debian.org sid/main libwine-gphoto2 0.9.44-1 [686kB]
Get:9 http://ftp.debian.org sid/main libwine-ldap 0.9.44-1 [730kB]
Get:10 http://ftp.debian.org sid/main libwine-capi 0.9.44-1 [671kB]
Get:11 http://ftp.debian.org sid/main wine-utils 0.9.44-1 [1312kB]
Get:12 http://ftp.debian.org sid/main libwine 0.9.44-1 [8006kB]
Get:13 http://ftp.debian.org sid/main libwine-twain 0.9.44-1 [667kB]
Get:14 http://ftp.debian.org sid/main libxml-sax-perl 0.16-0.1 [79.5kB]
Get:15 http://ftp.debian.org sid/main ncompress 4.2.4.0-3 [22.4kB]
Fetched 18.1MB in 2m11s (137kB/s)
Download complete and in download only mode
CRON-APT ACTION: 5-upgrade
CRON-APT LINE: /usr/bin/apt-get upgrade -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages have been kept back:
  amarok amarok-xine cpp dpkg-dev g++ gcc guile-g-wrap kcontrol kdebase
  kdebase-bin kdebase-kio-plugins kdenlive kdepim kdesktop kfind kig konqueror
  libcommons-fileupload-java libldap2-dev libmjpegtools0 libmlt++0.2.3
  libmono-corlib1.0-cil libmono-system-web1.0-cil libmono-system1.0-cil
  libpam-mount libxine1-console libxine1-ffmpeg libxine1-gnome
  linux-headers-2.6-686 linux-image-2.6-686 loop-aes-modules-2.6-686
  mjpegtools mono-common mono-gac mono-runtime ntfs-3g qemu transcode
The following packages will be upgraded:
  libwine libwine-alsa libwine-capi libwine-cms libwine-gl libwine-gphoto2
  libwine-ldap libwine-print libwine-sane libwine-twain libxml-sax-perl
  ncompress wine wine-bin wine-utils
critical bugs of libwine-alsa (0.9.43-1 -> 0.9.44-1) <pending>
 #441418 - lost sound
serious bugs of libxml-sax-perl (0.14-0.1 -> 0.16-0.1) <pending>
 #430118 - update-perl-sax-parsers: Depends on filesystem ordering to determine 
default parser
Summary:
 libwine-alsa(1 bug), libxml-sax-perl(1 bug)
Pinning packages at your request ...
libwine-alsa libxml-sax-perl pinned by adding Pin preferences in 
/etc/apt/preferences. You need to restart apt to enable
****************************************************************************
****** Exit with an error by force in order to stop the installation. ******
****************************************************************************
15 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
Need to get 0B/18.1MB of archives.
After unpacking 524kB of additional disk space will be used.
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 10
CRON-APT LINE: /usr/bin/apt-get upgrade -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages have been kept back:
  amarok amarok-xine cpp dpkg-dev g++ gcc guile-g-wrap kcontrol kdebase
  kdebase-bin kdebase-kio-plugins kdenlive kdepim kdesktop kfind kig konqueror
  libcommons-fileupload-java libldap2-dev libmjpegtools0 libmlt++0.2.3
  libmono-corlib1.0-cil libmono-system-web1.0-cil libmono-system1.0-cil
  libpam-mount libwine libwine-capi libwine-cms libwine-gl libwine-gphoto2
  libwine-ldap libwine-print libwine-sane libxine1-console libxine1-ffmpeg
  libxine1-gnome linux-headers-2.6-686 linux-image-2.6-686
  loop-aes-modules-2.6-686 mjpegtools mono-common mono-gac mono-runtime
  ntfs-3g qemu transcode wine wine-bin wine-utils
The following packages will be upgraded:
  libwine-twain ncompress
2 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
Need to get 0B/689kB of archives.
After unpacking 12.3kB of additional disk space will be used.
(Reading database ... 224466 files and directories currently installed.)
Preparing to replace libwine-twain 0.9.43-1 (using 
.../libwine-twain_0.9.44-1_i386.deb) ...
Unpacking replacement libwine-twain ...
Preparing to replace ncompress 4.2.4.0-2 (using 
.../ncompress_4.2.4.0-3_i386.deb) ...
Unpacking replacement ncompress ...
Setting up libwine-twain (0.9.44-1) ...
Setting up ncompress (4.2.4.0-3) ...

Reply via email to