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 root    15 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

Reply via email to