Package: apt-listchanges
Version: 2.83
Severity: critical
Tags: patch
Justification: breaks unrelated software


I have tagged this bug as critical because the post removal script is
not idempotent (policy requirement) and because aptitude install and
remove operations fail as long as apt-listchanges postremoval script fails.

Before upgrading from lenny to squeeze I have started by upgrading
aptitude. Due to dependencies, aptitude tells me to remove
apt-listchanges. I say ok.

During upgrade of aptitude and removal of apt-listchanges the following
error appears:

Desinstalando apt-listchanges ...
mv: no se puede efectuar `stat' sobre
«/etc/apt/apt.conf.d/20listchanges»: No existe el fichero o el
directorio
dpkg: error al procesar apt-listchanges (--remove):
 el subproceso post-removal script devolvió el código de salida de error 1

i.e., /etc/apt/apt-conf.d/20listchanges doesn't exist. That's true.
/etc/apt/apt.conf.d/20listchanges.disabled also doesn't exist. What I
have here is /etc/apt/listchanges.conf instead.

Then I run manually /var/lib/dpkg/info/apt-listchanges.prerm and it runs
ok.

Then I run /varlib/dpkg/info/apt-listchanges.postrm and get the same
error. It gets solved when I change the folowing line:

 if [ "$1" = "remove" ]; then
-    mv $hook $hook.disabled
+    test -e $hook && mv $hook $hook.disabled
 fi

This way the script is idempotent (it can be run several times without
failing).

Thank you very much for your great work at Debian.

Best regards,
Gonzalo.

-- System Information:
Debian Release: 5.0.6
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-bpo.5-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt-listchanges depends on:
ii  apt                           0.8.6      Advanced front-end for dpkg
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  debianutils                   2.30       Miscellaneous utilities specific t
ii  python                        2.5.2-3    An interactive high-level object-o
pn  python-apt                    <none>     (no description available)
ii  python-support                1.0.10     automated rebuilding support for P
ii  ucf                           3.0016     Update Configuration File: preserv

Versions of packages apt-listchanges recommends:
ii  exim4                         4.69-9     metapackage to ease Exim MTA (v4) 
ii  exim4-daemon-light [mail-tran 4.69-9     lightweight Exim MTA (v4) daemon

Versions of packages apt-listchanges suggests:
ii  elvis [www-browser]       2.2.0-10       powerful clone of the vi/ex text e
ii  emacs20 [www-browser]     20.7-13.3      The GNU Emacs editor.
ii  epiphany-gecko [www-brows 2.22.3-9       Intuitive GNOME web browser - Geck
ii  galeon [www-browser]      2.0.6-2.1      GNOME web browser for advanced use
ii  lynx-ssl [www-browser]    1:2.8.4.1b-3.1 Text-mode WWW Browser supporting S
ii  python-glade2             2.12.1-6       GTK+ bindings: Glade support
ii  python-gtk2               2.12.1-6       Python bindings for the GTK+ widge
ii  w3m [www-browser]         0.5.2-2+lenny1 WWW browsable pager with excellent
ii  xfce4-terminal [x-termina 0.2.8-5        Xfce terminal emulator
ii  xterm [x-terminal-emulato 235-2          X terminal emulator



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to