package lxc 1.1.4-0ubuntu0.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1504496 reported by Nick Moffitt
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
High
Unassigned
Vivid
Fix Released
Undecided
Unassigned
Wily
Fix Released
Undecided
Unassigned

Bug Description

A dist-upgrade failed in the maintainer scripts while trying to restart the lxc networking, I think:

Reading package lists... Done
The following NEW packages will be installed:
  linux-image-3.19.0-31-generic{a} linux-image-extra-3.19.0-31-generic{a}
  linux-signed-image-3.19.0-31-generic{a}
The following packages will be upgraded:
  juju juju-core juju-local liblxc1 linux-image-generic linux-libc-dev linux-signed-image-generic
  lxc lxc-templates mutt python3-lxc
The following packages are RECOMMENDED but will NOT be installed:
  citadel-mta courier-mta dma dma:i386 esmtp-run exim4-daemon-heavy exim4-daemon-light
  lsb-invalid-mta masqmail msmtp-mta nullmailer opensmtpd postfix qmail-run sendmail-bin ssmtp
  xmail
11 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/90.5 MB of archives. After unpacking 259 MB will be used.
Do you want to continue? [Y/n/?]
(Reading database ... 357199 files and directories currently installed.)
Preparing to unpack .../python3-lxc_1.1.4-0ubuntu0.1_amd64.deb ...
Unpacking python3-lxc (1.1.4-0ubuntu0.1) over (1.1.2-0ubuntu3.2) ...
Preparing to unpack .../lxc-templates_1.1.4-0ubuntu0.1_amd64.deb ...
Unpacking lxc-templates (1.1.4-0ubuntu0.1) over (1.1.2-0ubuntu3.2) ...
Preparing to unpack .../liblxc1_1.1.4-0ubuntu0.1_amd64.deb ...
Unpacking liblxc1 (1.1.4-0ubuntu0.1) over (1.1.2-0ubuntu3.2) ...
Preparing to unpack .../lxc_1.1.4-0ubuntu0.1_amd64.deb ...
Unpacking lxc (1.1.4-0ubuntu0.1) over (1.1.2-0ubuntu3.2) ...
Selecting previously unselected package linux-image-3.19.0-31-generic.
Preparing to unpack .../linux-image-3.19.0-31-generic_3.19.0-31.36_amd64.deb ...
Done.
Unpacking linux-image-3.19.0-31-generic (3.19.0-31.36) ...
Selecting previously unselected package linux-image-extra-3.19.0-31-generic.
Preparing to unpack .../linux-image-extra-3.19.0-31-generic_3.19.0-31.36_amd64.deb ...
Unpacking linux-image-extra-3.19.0-31-generic (3.19.0-31.36) ...
Preparing to unpack .../linux-image-generic_3.19.0.31.30_amd64.deb ...
Unpacking linux-image-generic (3.19.0.31.30) over (3.19.0.30.29) ...
Preparing to unpack .../linux-libc-dev_3.19.0-31.36_amd64.deb ...
Unpacking linux-libc-dev:amd64 (3.19.0-31.36) over (3.19.0-30.34) ...
Selecting previously unselected package linux-signed-image-3.19.0-31-generic.
Preparing to unpack .../linux-signed-image-3.19.0-31-generic_3.19.0-31.36_amd64.deb ...
Unpacking linux-signed-image-3.19.0-31-generic (3.19.0-31.36) ...
Preparing to unpack .../linux-signed-image-generic_3.19.0.31.30_amd64.deb ...
Unpacking linux-signed-image-generic (3.19.0.31.30) over (3.19.0.30.29) ...
Preparing to unpack .../mutt_1.5.23-3ubuntu1_amd64.deb ...
Unpacking mutt (1.5.23-3ubuntu1) over (1.5.23-3) ...
Preparing to unpack .../juju-core_1.24.6-0ubuntu1~15.04.1_amd64.deb ...
Unpacking juju-core (1.24.6-0ubuntu1~15.04.1) over (1.23.2-0ubuntu1~14.10.1~juju1) ...
Preparing to unpack .../juju_1.24.6-0ubuntu1~15.04.1_all.deb ...
Unpacking juju (1.24.6-0ubuntu1~15.04.1) over (1.23.2-0ubuntu1~14.10.1~juju1) ...
Preparing to unpack .../juju-local_1.24.6-0ubuntu1~15.04.1_all.deb ...
Unpacking juju-local (1.24.6-0ubuntu1~15.04.1) over (1.23.2-0ubuntu1~14.10.1~juju1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for doc-base (0.10.6) ...
Processing 1 changed doc-base file...
Registering documents with scrollkeeper...
Processing triggers for gnome-menus (3.10.1-0ubuntu5) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for bamfdaemon (0.5.1+15.04.20150202-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.58ubuntu1) ...
Setting up liblxc1 (1.1.4-0ubuntu0.1) ...
Setting up python3-lxc (1.1.4-0ubuntu0.1) ...
Setting up lxc (1.1.4-0ubuntu0.1) ...
Installing new version of config file /etc/apparmor.d/lxc/lxc-default-with-nesting ...
Installing new version of config file /etc/bash_completion.d/lxc ...
Installing new version of config file /etc/init/lxc.conf ...
Job for lxc-net.service failed. See "systemctl status lxc-net.service" and "journalctl -xe" for details.
invoke-rc.d: initscript lxc-net, action "start" failed.
dpkg: error processing package lxc (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of lxc-templates:
 lxc-templates depends on lxc (>= 0.8.0~rc1-4ubuntu43); however:
  Package lxc is not configured yet.

dpkg: error processing package lxc-templates (--configure):
 dependency problems - leaving unconfigured
Setting up linux-image-3.19.0-31-generic (3.19.0-31.36) ...
No apport report written because the error message indicates it's a follow-up error from a previous failure.
      Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.19.0-31-generic
Found initrd image: /boot/initrd.img-3.19.0-31-generic
Found linux image: /boot/vmlinuz-3.19.0-30-generic
Found initrd image: /boot/initrd.img-3.19.0-30-generic
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-image-extra-3.19.0-31-generic (3.19.0-31.36) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.19.0-31-generic /boot/vmlinuz-3.19.0-31-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.19.0-31-generic
Found initrd image: /boot/initrd.img-3.19.0-31-generic
Found linux image: /boot/vmlinuz-3.19.0-30-generic
Found initrd image: /boot/initrd.img-3.19.0-30-generic
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-image-generic (3.19.0.31.30) ...
Setting up linux-libc-dev:amd64 (3.19.0-31.36) ...
Setting up linux-signed-image-3.19.0-31-generic (3.19.0-31.36) ...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.19.0-31-generic
Found initrd image: /boot/initrd.img-3.19.0-31-generic
Found linux image: /boot/vmlinuz-3.19.0-30-generic
Found initrd image: /boot/initrd.img-3.19.0-30-generic
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-signed-image-generic (3.19.0.31.30) ...
Setting up mutt (1.5.23-3ubuntu1) ...
Setting up juju-core (1.24.6-0ubuntu1~15.04.1) ...
update-alternatives: using /usr/lib/juju-1.24.6/bin/juju to provide /usr/bin/juju (juju) in auto mode
Setting up juju (1.24.6-0ubuntu1~15.04.1) ...
dpkg: dependency problems prevent configuration of juju-local:
 juju-local depends on lxc (>= 1.0.0~alpha1-0ubuntu14); however:
  Package lxc is not configured yet.
 juju-local depends on lxc-templates; however:
  Package lxc-templates is not configured yet.

dpkg: error processing package juju-local (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
      Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 lxc
 lxc-templates
 juju-local
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package. Trying to recover:
Setting up lxc (1.1.4-0ubuntu0.1) ...
Job for lxc-net.service failed. See "systemctl status lxc-net.service" and "journalctl -xe" for details.
invoke-rc.d: initscript lxc-net, action "start" failed.
dpkg: error processing package lxc (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of lxc-templates:
 lxc-templates depends on lxc (>= 0.8.0~rc1-4ubuntu43); however:
  Package lxc is not configured yet.

dpkg: error processing package lxc-templates (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of juju-local:
 juju-local depends on lxc (>= 1.0.0~alpha1-0ubuntu14); however:
  Package lxc is not configured yet.
 juju-local depends on lxc-templates; however:
  Package lxc-templates is not configured yet.

dpkg: error processing package juju-local (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 lxc
 lxc-templates
 juju-local

Current status: 0 updates [-11].

ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: lxc 1.1.4-0ubuntu0.1
ProcVersionSignature: Ubuntu 3.19.0-30.34-generic 3.19.8-ckt6
Uname: Linux 3.19.0-30-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.5
Architecture: amd64
Date: Fri Oct 9 11:56:01 2015
DuplicateSignature: package:lxc:1.1.4-0ubuntu0.1:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2014-05-29 (497 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcCmdline: BOOT_IMAGE=/vmlinuz-3.19.0-30-generic.efi.signed root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: lxc
Title: package lxc 1.1.4-0ubuntu0.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to vivid on 2015-05-05 (156 days ago)
defaults.conf:
 lxc.network.type = veth
 lxc.network.link = lxcbr0
 lxc.network.flags = up
 lxc.network.hwaddr = 00:16:3e:xx:xx:xx

Revision history for this message
Nick Moffitt (nick-moffitt) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Stéphane Graber (stgraber) wrote :

Hi,

What does manually calling: "sudo /usr/lib/x864_64-linux-gnu/lxc/lxc-net start" get you?

Revision history for this message
Stuart Bishop (stub) wrote :

Is this Bug #1490110 ?

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

Maybe, it's kinda hard to tell as the needed information isn't present in either bug report.

Revision history for this message
Nick Moffitt (nick-moffitt) wrote :

I was hitting problems with lxc on just normal package upgrades in vivid earlier, but I was able to dpkg --configure -a this problem away and finish out the release upgrade by hand (apt-get dist-upgrade (noop), apt-get autoremove, reboot)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lxc (Ubuntu):
status: New → Confirmed
Changed in lxc (Ubuntu):
importance: Undecided → High
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

fwiw i don't think this is bug 1490110 because the signature is different - there is complaint about the sysv job not being there.

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

Actually the most telling sign in the logs here is

Oct 09 11:56:42 quelbo lxc-net[23366]: lxc-net is already running

If someone can reproduce this again, please attach the same information Nick had assigned in addition to 'ifconfig -a' and 'systemctl -u lxc-net' output.

Changed in lxc (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

(marking incomplete as we need more information to debug, but we've lost the reproducer)

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

This may be related to the lxc-net ordering issue somehow. 1.1.5 does contain a change in that unit so I'll tentatively mark it as fixed by that upload, let me know if this happens again and we'll dig deeper.

Changed in lxc (Ubuntu):
status: Incomplete → In Progress
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Nick, or anyone else affected,

Accepted lxc into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lxc/1.1.5-0ubuntu0.15.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Chris J Arges (arges) wrote :

Hello Nick, or anyone else affected,

Accepted lxc into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lxc/1.1.5-0ubuntu0.15.04.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in lxc (Ubuntu Vivid):
status: New → Fix Committed
Changed in lxc (Ubuntu Wily):
status: New → Fix Committed
Changed in lxc (Ubuntu):
status: In Progress → Fix Released
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 1.1.5-0ubuntu0.15.04.3

---------------
lxc (1.1.5-0ubuntu0.15.04.3) vivid-proposed; urgency=medium

  * Cherry-pick from upstream:
    - Fix preserve_ns to work on < 3.8 kernels. (LP: #1516971)
    - Fix process title rewrite to not mangle the environment. (LP: #1517107)

lxc (1.1.5-0ubuntu0.15.04.2) vivid-proposed; urgency=medium

  * Cherry-pick from upstream:
    - Fix ubuntu-cloud template to detect compression algorithm instead
      of hardcoding xz. Also update list of supported releases and use trusty
      as the fallback release. (LP: #1515463)
  * Update lxc-tests description to make it clear that this package is
    meant to be used by developers and by automated testing.

lxc (1.1.5-0ubuntu0.15.04.1) vivid-proposed; urgency=medium

  * New upstream bugfix release (MRE) (1.1.5)
    (LP: #1497420, LP: #1436723, LP: #1441068, LP: #1504496,
     LP: #1466458, LP: #1510619)
  * Drop proxy detection from the autopkgtest exercise script.

 -- Stéphane Graber <email address hidden> Wed, 18 Nov 2015 13:41:23 -0500

Changed in lxc (Ubuntu Vivid):
status: Fix Committed → Fix Released
Revision history for this message
Stéphane Graber (stgraber) wrote : Update Released

The verification of the Stable Release Update for lxc has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in lxc (Ubuntu Wily):
status: Fix Committed → Fix Released
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.