Failed upgrade to udev
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udev (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: udev
Description: Ubuntu Natty (development branch)
Release: 11.04
$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
udev
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
49 not fully installed or removed.
Need to get 0 B/416 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ...
dpkg: warning: files list file for package `libstdc++5:i386' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `palm-novacom:i386' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `palm-sdk:i386' missing, assuming package has no files currently installed.
(Reading database ... 512881 files and directories currently installed.)
Preparing to replace udev 166-0ubuntu2 (using .../udev_
dpkg-divert: error: `diversion of /sbin/udevadm to /sbin/udevadm.
dpkg: error processing /var/cache/
subprocess new pre-installation script returned error exit status 2
dpkg-divert: error: mismatch on package
when removing `diversion of /sbin/udevadm to /sbin/udevadm.
found `local diversion of /sbin/udevadm to /sbin/udevadm.
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 2
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is the very bug that the 0ubuntu3 version fixed, i. e. bug 727211. But if you already had the older version installed (< 0ubuntu3) _and_ already got the new dpkg which introduced this behaviour change (which was true for a time window of about 12 hours), then you are in a situation which is hard to recover from, until the dpkg side of bug 727211 is fixed (already done in trunk).
For now, can you please do
sudo dpkg-divert --local --rename --divert /sbin/udevadm. upgrade --remove /sbin/udevadm
sudo apt-get -f install
? This should clean up.