apt-get dist-upgrade fails to upgrade udev in lxc container

Bug #936981 reported by James Hunt
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ sudo apt-get update && sudo apt-get -y dist-upgrade
    :
    :
Unpacking replacement libglib2.0-0 ...
Preparing to replace udev 175-0ubuntu4 (using .../udev_175-0ubuntu5_i386.deb) ...
Adding 'diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev'
dpkg: unrecoverable fatal error, aborting:
 failed to fstat previous diversions file: No such file or directory
E: Sub-process /usr/bin/dpkg returned an error code (2)
james@precise:~$ ls -al /sbin/udevadm*
-rwxr-xr-x 1 root root 396 Feb 20 14:07 /sbin/udevadm
-rwxr-xr-x 1 root root 169324 Feb 6 08:22 /sbin/udevadm.upgrade
$

Revision history for this message
Stéphane Graber (stgraber) wrote :

Could it be that this container already had a udev upgrade failure in the past, likely caused by the bind mounts we used to have in /dev?

Running "dpkg --configure -a" and then "apt-get dist-upgrade" will most likely fix your container though (if you didn't do it already).

I'm also subscribing Serge as this might also have been caused by apparmor.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Yes I'm 99.5% certain that this is a dup of the other apparmor bugs

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.