New steps to reproduce. In a clean wheezy chroot: # apt-get install live-tools Selecting previously unselected package live-tools. (Reading database ... 9863 files and directories currently installed.) Unpacking live-tools (from .../live-tools_3.0.3-1_all.deb) ... Processing triggers for man-db ... Setting up live-tools (3.0.3-1) ... # dpkg-divert --list | grep live-tools diversion of /usr/bin/uptime to /usr/bin/uptime.procps by live-tools # ls -l /usr/bin/uptime* lrwxrwxrwx 1 root root 11 Jul 5 15:08 /usr/bin/uptime -> live-uptime -rwxr-xr-x 1 root root 9636 Jun 17 09:13 /usr/bin/uptime.procps # echo deb http://ftp.us.debian.org/debian sid main >> \ /etc/apt/sources.list # apt-get update ... # apt-get install -t sid live-tools ... Preparing to replace live-tools 3.0.3-1 (using .../live-tools_3.0.12-1_all.deb) ... Unpacking replacement live-tools ... Processing triggers for man-db ... Can not write log, openpty() failed (/dev/pts not mounted?) Setting up live-tools (3.0.12-1) ... # dpkg-divert --list | grep live-tools diversion of /usr/sbin/update-initramfs to /usr/sbin/update-initramfs.orig.initramfs-tools by live-tools diversion of /usr/share/man/man8/update-initramfs.8.gz to /usr/share/man/man8/update-initramfs.orig.initramfs-tools.8.gz by live-tools diversion of /usr/share/man/man1/uptime.1.gz to /usr/share/man/man1/uptime.orig.procps.1.gz by live-tools diversion of /usr/bin/uptime to /usr/bin/uptime.orig.procps by live-tools # ls -l /usr/bin/uptime* lrwxrwxrwx 1 root root 16 Sep 30 15:19 /usr/bin/uptime -> /bin/live-uptime
Unfortunately, at this point uptime is broken because the original diverted file is gone. Now if we purge live-tools and reinstall from wheezy: # dpkg --purge live-tools ... # dpkg-divert --list | grep live-tools # ls -l /usr/bin/uptime* ls: cannot access /usr/bin/uptime*: No such file or directory # apt-get install -t wheezy live-tools ... Selecting previously unselected package live-tools. (Reading database ... 9863 files and directories currently installed.) Unpacking live-tools (from .../live-tools_3.0.3-1_all.deb) ... Processing triggers for man-db ... Setting up live-tools (3.0.3-1) ... And finally, upgrade it to sid, we get the reported error: # apt-get install -t sid live-tools ... Preparing to replace live-tools 3.0.3-1 (using .../live-tools_3.0.12-1_all.deb) ... dpkg-divert: error: `diversion of /usr/bin/uptime to /usr/bin/uptime.orig.procps by live-tools' clashes with `diversion of /usr/bin/uptime to /usr/bin/uptime.procps by live-tools' dpkg: error processing /var/cache/apt/archives/live-tools_3.0.12-1_all.deb (--unpack): subprocess new pre-installation script returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/live-tools_3.0.12-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) So yes, this bug needs to remain open, and also we need to solve the damage being done to /usr/bin/uptime from the procps package if live-tools 3.0.3-1 is upgraded to 3.0.12-1. Ben -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org