package unity8-lxc (not installed) failed to install/upgrade: subprocess installed post-removal script returned error exit status 127

Bug #1516394 reported by Nur Sholihin
58
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Unity8 Desktop Preview in LXC
Fix Committed
High
Christopher Townsend
unity8-lxc (Ubuntu)
Fix Released
High
Christopher Townsend

Bug Description

when i installed it, it failed to load me to the desktop. and when i uninstalled it, i got this bugs.

ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: unity8-lxc (not installed)
ProcVersionSignature: Ubuntu 4.2.0-18.22-generic 4.2.3
Uname: Linux 4.2.0-18-generic x86_64
ApportVersion: 2.19.1-0ubuntu4
AptOrdering:
 unity8-lxc: Purge
 NULL: ConfigurePending
Architecture: amd64
Date: Sun Nov 15 23:00:28 2015
DpkgTerminalLog:
 Removing unity8-lxc (1.0.4+15.10.20150610-0ubuntu1) ...
 Purging configuration files for unity8-lxc (1.0.4+15.10.20150610-0ubuntu1) ...
 /var/lib/dpkg/info/unity8-lxc.postrm: 9: /var/lib/dpkg/info/unity8-lxc.postrm: lxc-destroy: not found
 dpkg: error processing package unity8-lxc (--purge):
  subprocess installed post-removal script returned error exit status 127
DuplicateSignature: package:unity8-lxc:(not installed):subprocess installed post-removal script returned error exit status 127
ErrorMessage: subprocess installed post-removal script returned error exit status 127
InstallationDate: Installed on 2014-01-24 (660 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
RelatedPackageVersions:
 dpkg 1.18.2ubuntu5
 apt 1.0.10.2ubuntu1
SourcePackage: unity8-lxc
Title: package unity8-lxc (not installed) failed to install/upgrade: subprocess installed post-removal script returned error exit status 127
UpgradeStatus: Upgraded to wily on 2015-10-22 (23 days ago)

Related branches

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

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

Changed in unity8-lxc (Ubuntu):
status: New → Confirmed
Changed in unity8-lxc (Ubuntu):
importance: Undecided → Medium
Changed in unity8-preview-lxc:
status: New → Confirmed
tags: removed: need-duplicate-check
Revision history for this message
RoundDuckMan (roundduckman2) wrote :

I found out if you remove the lxc folder, or probably at least unity8-lxc's folder, you can then correctly purge unity8-lxc. Hopefully a good workaround until this bug is patched...

Revision history for this message
Christopher Townsend (townsend) wrote :

Hi,

Thanks for entering this bug report. Looks like I didn't take into account that --purge will remove lxc/lxc1 first and remove lxc-destroy first before the unity8-lxc post-rm script is called which uses lxc-destroy.

Need to take care of this case.

Changed in unity8-preview-lxc:
status: Confirmed → Triaged
Changed in unity8-lxc (Ubuntu):
status: Confirmed → Triaged
Changed in unity8-preview-lxc:
importance: Undecided → High
Changed in unity8-lxc (Ubuntu):
importance: Medium → High
Changed in unity8-preview-lxc:
assignee: nobody → Christopher Townsend (townsend)
Changed in unity8-lxc (Ubuntu):
assignee: nobody → Christopher Townsend (townsend)
Changed in unity8-preview-lxc:
status: Triaged → In Progress
Changed in unity8-preview-lxc:
status: In Progress → Fix Committed
Revision history for this message
cosy (cosy2) wrote :

for anyone reading this the lxc folder is on /var/lib and you need sudo so starting nautilus whit sudo will do the trick then go to /var/lib and remove the LXC folder

Revision history for this message
Amr (amr-elghobary) wrote :

This is was the ouput:
(Reading database ... 360310 files and directories currently installed.)
Removing unity8-lxc (1.0.5+16.04.20151027-0ubuntu1) ...
Purging configuration files for unity8-lxc (1.0.5+16.04.20151027-0ubuntu1) ...
lxc-destroy: parse.c: lxc_file_for_each_line: 57 Failed to parse config: lxc.include = /usr/share/unity8-lxc/unity8-lxc.conf
System error loading container
dpkg: error processing package unity8-lxc (--purge):
 subprocess installed post-removal script returned error exit status 1
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 unity8-lxc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Mirosław Walczak (miras199002) wrote :

sudo apt-get purge unity 8-lxc

Reading package lists ... Done
Building dependency tree
Reading state information ... Done
The following packages were automatically installed and are no longer required: bridge-utils cloud-image-utils debootstrap distro-info libaio1 libboost-random1.58.0 libiscsi2 liblxc1 libpam-cgfs librados2 librbd1 lxc-common lxc-templates lxc1 lxcfs python3-lxc qemu- block-extra qemu-utils uidmap
To remove them, use the "sudo apt autoremove."
The following packages will be REMOVED: unity8-lxc *
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation will be released 49.2 kB disk space.
Continue? [Y / n]
(Reading database ... 236079 files and directories currently installed.)
Removing package unity8-lxc (1.0.5 + 16.04.20151027-0ubuntu1) ...
Cleaning of configuration files package unity8-lxc (1.0.5 + 16.04.20151027-0ubuntu1) ...
lxc-destroy: parse.c: lxc_file_for_each_line: 57 Failed to parse config: lxc.include = /usr/share/unity8-lxc/unity8-lxc.conf
System error loading container
dpkg: error processing package unity8-lxc (purge): subprocess installed post-removal script returned error code 1
Processing triggers package man-db (2.7.5-1) ...
Errors were encountered while processing: unity8-lxc
E: Sub-process / usr / bin / dpkg returned an error code (1)

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

This bug was fixed in the package unity8-lxc - 1.0.5+16.04.20160407-0ubuntu1

---------------
unity8-lxc (1.0.5+16.04.20160407-0ubuntu1) xenial; urgency=medium

  [ Chris Townsend ]
  * Move the postrm script to prerm script as we need to use lxc-destroy
    before packages and files are purged. (LP: #1549105, #1516394)

 -- Christopher Townsend <email address hidden> Thu, 07 Apr 2016 14:36:00 +0000

Changed in unity8-lxc (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.