Failure trying to purge policycoreutils
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
policycoreutils (Debian) |
Fix Released
|
Unknown
|
|||
policycoreutils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Precise SRU Justification]
policycoreutils fails to purge with the following error:
Purging configuration files for policycoreutils ...
update-rc.d: /etc/init.
dpkg: error processing policycoreutils (--purge):
subprocess installed post-removal script returned error exit status 1
Fixing this bug is blocked on Bug #935368, since otherwise the package will not rebuild in precise, so the debdiff includes a fix.
[Fix]
Update debian/
For Bug #935368, _GNU_SOURCE needed to be defined earlier in sandbox/seunshare.c and the path to libsetpol.a had to be updated to the current multiarch path. Both fixes adapted from the version in quantal.
[Regression Potential]
The regression potential should be minor since the only source file touched, sandbox/
[Test Case]
Install policycoreutils and then run: sudo apt-get purge policycoreutils;
For Bug #935368 attempt to rebuild the policycoreutils 2.1.0-3ubuntu1 in precise.
=======
I tested out selinux because I was going to run a somewhat untrusted piece of code (which I ended up running elsewhere anyway), so I decided to purge selinux and all the packages that came with it. When it tried to purge policycoreutils it failed
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: policycoreutils (not installed)
ProcVersionSign
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Sun May 27 17:42:56 2012
ErrorMessage: subprocess installed post-removal script returned error exit status 1
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: policycoreutils
Title: package policycoreutils (not installed) failed to install/upgrade: subprocess installed post-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
Changed in policycoreutils (Debian): | |
status: | Unknown → New |
Changed in policycoreutils (Debian): | |
status: | New → Fix Released |
description: | updated |
Related debian bug report: http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 660345
Seems like 2.1.10-5 contains a fix, although the fix is to completely rewrite the maintainer scripts, so not exactly something easy to add to the precise package.
Though, looking at debian/ policycoreutils .postrm, the purge section has:
update-rc.d policycoreutils defaults >/dev/null
plus three other similar lines. That should be:
update-rc.d policycoreutils remove >/dev/null
right? The change seems to fix it here on purge. I can update the package if that is the right sort of thing to do to fix it.