package lxc 0.7.5-3ubuntu60 failed to install/upgrade: unable to install new version of `/usr/lib/lxc/liblxc.so.0.7.5': Device or resource busy

Bug #1033412 reported by James Chapman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Had been using lxc on a laptop. Nothing unusual - basic LXC experiments, created and removed several containers. Suspended and resumed the laptop at least 5 times between last using lxc and the lxc upgrade.

Perhaps one or more containers is still active?

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu60
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic i686
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
Date: Mon Aug 6 07:36:58 2012
DuplicateSignature:
 Unpacking replacement lxc ...
 dpkg: error processing /var/cache/apt/archives/lxc_0.7.5-3ubuntu62_i386.deb (--unpack):
  unable to install new version of `/usr/lib/lxc/liblxc.so.0.7.5': Device or resource busy
ErrorMessage: unable to install new version of `/usr/lib/lxc/liblxc.so.0.7.5': Device or resource busy
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427)
KernLog:

ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-3.2.0-26-generic root=UUID=c79e173c-905b-40a0-b2d3-c31b8581027d ro quiet splash vt.handoff=7
SourcePackage: lxc
Title: package lxc 0.7.5-3ubuntu60 failed to install/upgrade: unable to install new version of `/usr/lib/lxc/liblxc.so.0.7.5': Device or resource busy
UpgradeStatus: Upgraded to precise on 2012-07-15 (21 days ago)
lxcsyslog:

Revision history for this message
James Chapman (jameschapman) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Stéphane Graber (stgraber) wrote :

Moving the bug to dpkg as lxc isn't doing anything weird that'd explain this.
Replacing a file currently in use is perfectly possible on Linux and shouldn't cause that error.

affects: lxc (Ubuntu) → dpkg (Ubuntu)
Revision history for this message
Adam Conrad (adconrad) wrote :

07:27 < infinity> stgraber: That's not a dpkg bug, can I bounce it back? :P
07:28 < infinity> stgraber: dpkg is trying to write to the file and failing, it's not up to dpkg to
                  ensure the world is writable.
07:28 < infinity> stgraber: I'd assume this is either lxc userspace being wonky, or some strange
                  kernel issue, perhaps relating to repeated suspends with active containers?

affects: dpkg (Ubuntu) → lxc (Ubuntu)
Revision history for this message
Stéphane Graber (stgraber) wrote :

Please attach:
 - ls -l /usr/lib/lxc/liblxc.so.0.7.5
 - sudo lsof -n

Changed in lxc (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for lxc (Ubuntu) because there has been no activity for 60 days.]

Changed in lxc (Ubuntu):
status: Incomplete → Expired
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.