[hardy alpha 5] package cupsys 1.3.5-2ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 2

Bug #195661 reported by Christer Edwards on 2008-02-26
18
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: cupsys

attempting to install the suggested upgrades I get this error:

Setting up cupsys (1.3.5-2ubuntu1) ...
Unable to find apparmor_parser, installation problem?: Failed.
invoke-rc.d: initscript apparmor, action "force-reload" failed.
 * Starting Common Unix Printing System: cupsd start-stop-daemon: Unable to start /usr/sbin/cupsd: Permission denied (Permission denied)
invoke-rc.d: initscript cupsys, action "start" failed.
dpkg: error processing cupsys (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 cupsys
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up cupsys (1.3.5-2ubuntu1) ...
Unable to find apparmor_parser, installation problem?: Failed.
invoke-rc.d: initscript apparmor, action "force-reload" failed.
 * Starting Common Unix Printing System: cupsd start-stop-daemon: Unable to start /usr/sbin/cupsd: Permission denied (Permission denied)
invoke-rc.d: initscript cupsys, action "start" failed.
dpkg: error processing cupsys (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 cupsys

I have removed AppArmour for SELinux (available via the ubuntu-hardened PPA).

ProblemType: Package
Architecture: i386
Date: Mon Feb 25 21:29:27 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess post-installation script returned error exit status 2
Package: cupsys 1.3.5-2ubuntu1
PackageArchitecture: i386
SourcePackage: cupsys
Title: package cupsys 1.3.5-2ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 2
Uname: Linux 2.6.24-8-generic i686

pokkets (pokkets1) wrote :

I tried to upgrade from a gutsy system to hardy alpha 5 and had a similar problem with cupsys 1.3.6-1ubuntu1 with kernel 2.6.24-10-generic. It couldn't find apparmor_parser, and failed.to configure In turn a lot of other dependencies failed. The upgrade failed, and suggested I return my system to it's original state, but I put it on a USB Boot in case I worked out how to stabilize it later Because I was going to try and install an ndiswrapper for the new kernel I started off with an apt-get install build-essential, While build-essential was already installed It gave me a good summary of the packages that failed to configure I'll attach it. I've posted it to an upgrade bug that was invalidated because I have a Ubuntu Ultimate system, but this time I can be more specific.

i still regularly get this issue with any update of cups. I was assuming it was related to my addition of SELinux / removal of apparmor?

pokkets (pokkets1) wrote :

I haven't been sure if it was the upgrade as much as the number of applications I have loaded on my system. I decided to try and load as much as I could onto my system , because I intend to upgrade my laptop, to a dual core, before I installed a system permanently on the new laptop. I now know I 'experiment' to much to have a permanent stable system. but being new to linux and ubuntu I wanted to learn as much as quickly as possible. The 'hard way' can make learning both necessary, and memorable. I hadn't done anything with apparmor, or tried to install SELinux - yet. I haven't been able to connect with wireless, in hardy, but I got another automatic dist-upgrade from alpha5-6 using ethernet. Cupsys still seem to fail for the same reason. I have some kde programs, and unauthenticated packages, but in var/log/dist-upgrade/apt.log the packages seemed to be ones that depended on cupsys, not the reverse. I have a hardya6 alternate CD, and a copy of gutsy I'm building with a similar application load in an effort to try and solve the problem by elimination. I only have Windows at all, for the sake of a canon printer. The main system I use is still the pre upgrade Gutsy I had in a root tar file. I haven't been switching between systems too often, because I've been foldingathome,(I discovered that when I went looking for a solution to my clock or server failing.) and begrudge the hour or few getting nowhere.
I know here is a difference between kubuntu and ubuntu upgrades. but not how it would it affect automatic upgrades on xclient-script alternate or any other upgrades.
I'm spending too much space writing what I don't know. I'll update if I learn anything constructive.

pokkets (pokkets1) wrote :

I did an upgrade to kernel 2.6.24-12, the cupsys seems to have installed I used a an alternate Alpha6 Mar14 to supplement the download. I didn't check to see if the version changed There were other packages that still failed to load, but they are other bugs

tgelter (timothy-gelter) wrote :

Like Christer, I found this thread after experiencing the same problem updating CUPS after making the switch from apparmor to selinux.

Xake (xake-rymdraket) wrote :

The problem is SELinux, see bug 202983 for a better description (dpkg --configure tries to restart cupsd wich fails if cups is in enforce-mode due to SELinux protection).
Please fix.

Here is the real error:

$ dmesg
[ 2695.827471] audit(1206960648.256:11): security_compute_sid: invalid context unconfined_u:system_r:cupsd_t for scontext=unconfined_u:unconfined_r:unconfined_t tcontext=system_u:object_r:cupsd_exec_t tclass=process

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers