Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
* Marco d'Itri m...@linux.it [2009 01 03, 16:07]: Wouldn't it still be a good idea to take care of left-over diversions? I'd rather not add more hard to understand code for a problem which appears to affect only your system. Same problem here, upgrading from a mixed system etch+lenny to lenny. Managed to complete the upgrade with the following: # dpkg --configure module-init-tools Setting up module-init-tools (3.4-1) ... dpkg-divert: rename involves overwriting `/sbin/depmod' with different file `/sbin/depmod.modutils', not allowed dpkg: error processing module-init-tools (--configure): subprocess post-installation script returned error exit status 2 Errors were encountered while processing: module-init-tools # dpkg-divert --list|grep depmod diversion of /sbin/depmod to /sbin/depmod.modutils by module-init-tools diversion of /usr/share/man/man8/depmod.8.gz to /usr/share/man/man8/depmod.modutils.8.gz by module-init-tools diversion of /usr/share/man/fr/man8/depmod.8.gz to /usr/share/man/fr/man8/depmod.modutils.8.gz by module-init-tools # ls -l /sbin/depmod* -rwxr-xr-x 1 root root 52800 2008-04-05 04:06 /sbin/depmod -rwxr-xr-x 1 root root 52800 2008-04-05 04:06 /sbin/depmod.modutils # mv /sbin/depmod.modutils /root # mv /sbin/insmod.modutils /root # mv /sbin/update-modules.modutils /root # mv /sbin/modinfo.modutils /root # mv /sbin/lsmod.Lmodutils /root # mv /sbin/rmmod.Lmodutils /root # mv /sbin/modprobe.Lmodutils /root # dpkg --configure module-init-tools Setting up module-init-tools (3.4-1) ... # Greetings -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
I had the same problem while updating from etch to lenny today [UPGRADE] module-init-tools 3.3-pre4-2 - 3.4-1 dpkg failed to configure the package: # dpkg --configure module-init-tools Setting up module-init-tools (3.4-1) ... dpkg-divert: rename involves overwriting `/sbin/depmod' with different file `/sbin/depmod.modutils', not allowed dpkg: error processing module-init-tools (--configure): subprocess post-installation script returned error exit status 2 Errors were encountered while processing: module-init-tools I've found that diverted files was the same as original files: # dpkg-divert --list|grep depmod diversion of /sbin/depmod to /sbin/depmod.modutils by module-init-tools diversion of /usr/share/man/man8/depmod.8.gz to /usr/share/man/man8/depmod.modutils.8.gz by module-init-tools diversion of /usr/share/man/fr/man8/depmod.8.gz to /usr/share/man/fr/man8/depmod.modutils.8.gz by module-init-tools # ls -l /sbin/depmod* -rwxr-xr-x 1 root root 44188 2008-04-05 05:41 /sbin/depmod -rwxr-xr-x 1 root root 44188 2008-04-05 05:41 /sbin/depmod.modutils # diff /sbin/depmod /sbin/depmod.modutils no answer tried to remove diversion: # dpkg-divert --rename --remove /sbin/depmod Removing `diversion of /sbin/depmod to /sbin/depmod.modutils by module-init-tools' dpkg-divert: rename involves overwriting `/sbin/depmod' with different file `/sbin/depmod.modutils', not allowed then i removed depmod.modutils: # mv /sbin/depmod.modutils /root/ # dpkg-divert --rename --remove /sbin/depmod Removing `diversion of /sbin/depmod to /sbin/depmod.modutils by module-init-tools' # dpkg-divert --rename --remove /sbin/depmod No diversion `any diversion of /sbin/depmod', none removed # dpkg --configure module-init-tools Setting up module-init-tools (3.4-1) ... dpkg-divert: rename involves overwriting `/sbin/insmod' with different file `/sbin/insmod.modutils', not allowed dpkg: error processing module-init-tools (--configure): subprocess post-installation script returned error exit status 2 Errors were encountered while processing: module-init-tools same with other files: # mv /sbin/insmod.modutils /root/ # mv /sbin/update-modules.modutils /root/ # mv /sbin/modinfo.modutils /root/ # mv /sbin/lsmod.modutils /root/ # ls -l rmm* -rwxr-xr-x 1 root root 7540 2008-04-05 05:41 rmmod -rwxr-xr-x 1 root root 7540 2008-04-05 05:41 rmmod.Lmodutils lrwxrwxrwx 1 root root 15 2008-07-29 02:34 rmmod.modutils - insmod.modutils # dpkg-divert --list|grep rmmod diversion of /sbin/rmmod to /sbin/rmmod.Lmodutils by module-init-tools diversion of /usr/share/man/man8/rmmod.8.gz to /usr/share/man/man8/rmmod.modutils.8.gz by module-init-tools diversion of /usr/share/man/fr/man8/rmmod.8.gz to /usr/share/man/fr/man8/rmmod.modutils.8.gz by module-init-tools # mv rmmod.Lmodutils /root/ # ls -l modpro* -rwxr-xr-x 1 root root 25124 2008-04-05 05:41 modprobe -rwxr-xr-x 1 root root 25124 2008-04-05 05:41 modprobe.Lmodutils lrwxrwxrwx 1 root root15 2008-07-29 02:34 modprobe.modutils - insmod.modutils # diff modprobe modprobe.Lmodutils # mv modprobe.Lmodutils /root/ # dpkg --configure module-init-tools Setting up module-init-tools (3.4-1) ... # dpkg-reconfigure module-init-tools Best regards, Alexey -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
I had this bug a few days ago, I was upgrading from etch to lenny. I found a solution, you will find my solution on my blog[1]. But that problem caused stopping of the upgrade, during upgrade, a problem like this one shouldn't stop the upgrade, aptitude/apt should upgrade the rest of packages that are not yet upgraded, because module-init-tools is before them. This patch[2] didn't solve the problem. (even if the bash code seems to do the same things I did in my solution...) [1] : http://en.about-gnulinux.info/index.php?post/2009/02/14/The-package-module-init-tools-causes-problem... [2] : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509575#25 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
On Fri, Jan 02, 2009 at 06:25:34PM +0100, Marco d'Itri wrote: On Dec 24, Marc Haber mh+debian-b...@zugschlus.de wrote: The rm/ln code for /sbin/insmod(.modutils) may be a fix for local issue on my system where /sbin/insmod.modutils was a zero bytes file. This looks wrong, and makes me think your problem was system-specific. Wouldn't it still be a good idea to take care of left-over diversions? Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
On Jan 03, Marc Haber mh+debian-b...@zugschlus.de wrote: On Fri, Jan 02, 2009 at 06:25:34PM +0100, Marco d'Itri wrote: On Dec 24, Marc Haber mh+debian-b...@zugschlus.de wrote: The rm/ln code for /sbin/insmod(.modutils) may be a fix for local issue on my system where /sbin/insmod.modutils was a zero bytes file. This looks wrong, and makes me think your problem was system-specific. Wouldn't it still be a good idea to take care of left-over diversions? I'd rather not add more hard to understand code for a problem which appears to affect only your system. -- ciao, Marco signature.asc Description: Digital signature
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
On Sat, Jan 03, 2009 at 04:07:10PM +0100, Marco d'Itri wrote: I'd rather not add more hard to understand code for a problem which appears to affect only your system. *shrug* Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
On Dec 24, Marc Haber mh+debian-b...@zugschlus.de wrote: The rm/ln code for /sbin/insmod(.modutils) may be a fix for local issue on my system where /sbin/insmod.modutils was a zero bytes file. This looks wrong, and makes me think your problem was system-specific. -- ciao, Marco signature.asc Description: Digital signature
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
On Tue, Dec 23, 2008 at 03:34:26PM +0100, Marco d'Itri wrote: On Dec 23, Marc Haber mh+debian-b...@zugschlus.de wrote: I have a test setup for etch = lenny updates and can therefore reproduce the issue to help finding out what exactly is going wrong. Please do, because I have been lost for a long time in the mess of the m-i-t diversions... This code removes all diversions belonging to modutils from the system the hard way and allow module-init-tools to be updated on the test system. I cannot comment on whether it may be suitable for inclusion into the package. Use at your own risk. The rm/ln code for /sbin/insmod(.modutils) may be a fix for local issue on my system where /sbin/insmod.modutils was a zero bytes file. I don't know why dpkg-divert checks whether the file is a hard-link before renaming, but that seemed to be necessary. Greetings Marc #!/bin/bash rm -f /sbin/insmod.modutils ln /sbin/insmod /sbin/insmod.modutils for file in /sbin/depmod /sbin/insmod /sbin/update-modules /sbin/modinfo \ /sbin/kallsyms /sbin/ksyms; do echo dpkg-divert --remove --rename --package module-init-tools --divert $file.modutils $file dpkg-divert --remove --rename --package module-init-tools --divert $file.modutils $file done for file in /sbin/lsmod /sbin/modprobe /sbin/rmmod ; do echo dpkg-divert --remove --rename --package module-init-tools --divert $file.Lmodutils $file dpkg-divert --remove --rename --package module-init-tools --divert $file.Lmodutils $file done for file in /usr/share/man/man8/depmod.8.gz \ /usr/share/man/fr/man8/depmod.8.gz \ /usr/share/man/man8/insmod.8.gz /usr/share/man/fr/man8/insmod.8.gz \ /usr/share/man/man8/update-modules.8.gz \ /usr/share/man/fr/man8/update-modules.8.gz \ /usr/share/man/man8/modinfo.8.gz /usr/share/man/fr/man8/modinfo.8.gz \ /usr/share/man/man8/lsmod.8.gz /usr/share/man/fr/man8/lsmod.8.gz \ /usr/share/man/man8/modprobe.8.gz /usr/share/man/fr/man8/modprobe.8.gz \ /usr/share/man/man8/rmmod.8.gz /usr/share/man/fr/man8/rmmod.8.gz \ /usr/share/man/man5/modules.5.gz /usr/share/man/fr/man5/modules.5.gz; do DIVERTED=$(echo $file | sed 's/\(.*\)\(\.[[:digit:]]\+\.gz\)$/\1.modutils\2/') echo dpkg-divert --remove --rename --package module-init-tools --divert $DIVERTED $file dpkg-divert --remove --rename --package module-init-tools --divert $DIVERTED $file done -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
Package: module-init-tools Version: 3.4-1 Severity: important I have a very old system which has been updated from (at least) woody via sarge to etch. This system still has some diversions in place which have probably originated from updating from modutils to module-init-tools: diversion of /sbin/depmod to /sbin/depmod.modutils by module-init-tools diversion of /usr/share/man/man8/depmod.8.gz to /usr/share/man/man8/depmod.modutils.8.gz by module-init-tools diversion of /usr/share/man/fr/man8/depmod.8.gz to /usr/share/man/fr/man8/depmod.modutils.8.gz by module-init-tools diversion of /sbin/insmod to /sbin/insmod.modutils by module-init-tools diversion of /usr/share/man/man8/insmod.8.gz to /usr/share/man/man8/insmod.modutils.8.gz by module-init-tools diversion of /usr/share/man/fr/man8/insmod.8.gz to /usr/share/man/fr/man8/insmod.modutils.8.gz by module-init-tools diversion of /sbin/update-modules to /sbin/update-modules.modutils by module-init-tools diversion of /usr/share/man/man8/update-modules.8.gz to /usr/share/man/man8/update-modules.modutils.8.gz by module-init-tools diversion of /usr/share/man/fr/man8/update-modules.8.gz to /usr/share/man/fr/man8/update-modules.modutils.8.gz by module-init-tools diversion of /sbin/modinfo to /sbin/modinfo.modutils by module-init-tools diversion of /usr/share/man/man8/modinfo.8.gz to /usr/share/man/man8/modinfo.modutils.8.gz by module-init-tools diversion of /usr/share/man/fr/man8/modinfo.8.gz to /usr/share/man/fr/man8/modinfo.modutils.8.gz by module-init-tools diversion of /sbin/kallsyms to /sbin/kallsyms.modutils by module-init-tools diversion of /sbin/ksyms to /sbin/ksyms.modutils by module-init-tools diversion of /sbin/lsmod to /sbin/lsmod.Lmodutils by module-init-tools diversion of /usr/share/man/man8/lsmod.8.gz to /usr/share/man/man8/lsmod.modutils.8.gz by module-init-tools diversion of /usr/share/man/fr/man8/lsmod.8.gz to /usr/share/man/fr/man8/lsmod.modutils.8.gz by module-init-tools diversion of /sbin/modprobe to /sbin/modprobe.Lmodutils by module-init-tools diversion of /usr/share/man/man8/modprobe.8.gz to /usr/share/man/man8/modprobe.modutils.8.gz by module-init-tools diversion of /usr/share/man/fr/man8/modprobe.8.gz to /usr/share/man/fr/man8/modprobe.modutils.8.gz by module-init-tools diversion of /sbin/rmmod to /sbin/rmmod.Lmodutils by module-init-tools diversion of /usr/share/man/man8/rmmod.8.gz to /usr/share/man/man8/rmmod.modutils.8.gz by module-init-tools diversion of /usr/share/man/fr/man8/rmmod.8.gz to /usr/share/man/fr/man8/rmmod.modutils.8.gz by module-init-tools diversion of /usr/share/man/man5/modules.5.gz to /usr/share/man/man5/modules.modutils.5.gz by module-init-tools diversion of /usr/share/man/fr/man5/modules.5.gz to /usr/share/man/fr/man5/modules.modutils.5.gz by module-init-tools Due to these diversions, the update from etch to lenny, using the procedure laid out in the release notes, fails: Setting up module-init-tools (3.4-1) ... Installing new version of config file /etc/modprobe.d/aliases ... Installing new version of config file /etc/modprobe.d/arch/i386 ... dpkg-divert: rename involves overwriting `/sbin/insmod' with different file `/sbin/insmod.modutils', not allowed dpkg: error processing module-init-tools (--configure): subprocess post-installation script returned error exit status 2 I have a test setup for etch = lenny updates and can therefore reproduce the issue to help finding out what exactly is going wrong. Greetings Marc -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
On Dec 23, Marc Haber mh+debian-b...@zugschlus.de wrote: I have a test setup for etch = lenny updates and can therefore reproduce the issue to help finding out what exactly is going wrong. Please do, because I have been lost for a long time in the mess of the m-i-t diversions... -- ciao, Marco signature.asc Description: Digital signature
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
On Tue, Dec 23, 2008 at 03:34:26PM +0100, Marco d'Itri wrote: On Dec 23, Marc Haber mh+debian-b...@zugschlus.de wrote: I have a test setup for etch = lenny updates and can therefore reproduce the issue to help finding out what exactly is going wrong. Please do, because I have been lost for a long time in the mess of the m-i-t diversions... Do you have any insights about where to find out what's going on here? Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#509575: module-init-tools update etch=lenny fails on old system due to old diversion
On Dec 23, Marc Haber mh+debian-b...@zugschlus.de wrote: Do you have any insights about where to find out what's going on here? Over time all diversions have been removed from the package. For some reason some is left, so I suspect that this happens when you do a straight upgrade from etch. OTOH, nobody else reported this so far. -- ciao, Marco signature.asc Description: Digital signature