package lxc 0.7.5-3ubuntu20 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #929514 reported by John O'Brien
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I had lxc configured for bridging already and it failed when trying to update /etc/network/interfaces...

Also, I had to manually stop lxc and run the update. It would fail if I left it up.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu20
ProcVersionSignature: Ubuntu 3.2.0-15.24-generic 3.2.5
Uname: Linux 3.2.0-15-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.91-0ubuntu1
AptOrdering: lxc: Configure
Architecture: amd64
Date: Thu Feb 9 07:01:02 2012
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: lxc
Title: package lxc 0.7.5-3ubuntu20 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
John O'Brien (jdobrien) wrote :
Revision history for this message
John O'Brien (jdobrien) wrote :

Note this was on Precise... not Ubuntu 11.10 "Oneiric Ocelot"

tags: removed: need-duplicate-check
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug. In part it appears to be a dup of bug 929382. However, the dpkg log shows that brctl addbr lxcbr0 failed because lxcbr0 already existed. Had you created lxcbr0 by hand? If so, then the lxc init script should simply detect that and quietly exit (without destroying it). If not, then there is a question of why the /etc/init.d/lxc did not destroy lxcbr0 when it was stopped at the start of the package update.

Changed in lxc (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.7.5-3ubuntu22

---------------
lxc (0.7.5-3ubuntu22) precise; urgency=low

  * debian/lxc.init:
    - at setup_lxc_bridge, return early if ${LXC_BRIDGE) already exists.
      (LP: #929514)
    - switch 'ip link show' and 'brctl show' checks for /sys/class/net lookups.
    - try to prevent destroying host network setup if /etc/default/lxc is
      bad. Set defaults for lxc network variables if unset.
    - don't pass along variables as arguments if not needed.
 -- Serge Hallyn <email address hidden> Thu, 09 Feb 2012 10:22:20 -0600

Changed in lxc (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
John O'Brien (jdobrien) wrote : Re: [Bug 929514] Re: package lxc 0.7.5-3ubuntu20 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

On Thu, Feb 9, 2012 at 9:58 AM, Serge Hallyn <email address hidden> wrote:
> Thanks for reporting this bug.  In part it appears to be a dup of bug
> 929382.  However, the dpkg log shows that brctl addbr lxcbr0 failed
> because lxcbr0 already existed.  Had you created lxcbr0 by hand?  If so,
> then the lxc init script should simply detect that and quietly exit
> (without destroying it).  If not, then there is a question of why the
> /etc/init.d/lxc did not destroy lxcbr0 when it was stopped at the start
> of the package update.
>

Yes I create a manual bridge with static IPs.
On thing to note is that it did not stop LXC properly during the
update. I had to stop it manually and run the update again.

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.