Failed upgrade to udev

Bug #727633 reported by Jonathan Lange
10
This bug affects 2 people
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_166-0ubuntu3_amd64.deb) ...
dpkg-divert: error: `diversion of /sbin/udevadm to /sbin/udevadm.upgrade by udev' clashes with `local diversion of /sbin/udevadm to /sbin/udevadm.upgrade'
dpkg: error processing /var/cache/apt/archives/udev_166-0ubuntu3_amd64.deb (--unpack):
 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.upgrade by udev'
  found `local diversion of /sbin/udevadm to /sbin/udevadm.upgrade'
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/udev_166-0ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Jonathan Lange (jml) wrote :
Revision history for this message
Jonathan Lange (jml) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.