apt-get dist-upgrade fails to upgrade udev in lxc container
Bug #936981 reported by
James Hunt
This bug report is a duplicate of:
Bug #969299: Don't require use of mediate_deleted with LXC (was: apparmor prevents dpkg-divert and localedef from working in a container).
Edit
Remove
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_
Adding 'diversion of /sbin/udevadm to /sbin/udevadm.
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.
$
To post a comment you must log in.
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.