[systemd]Please add a sysv init script to satisfy init system transition.

Bug #1322296 reported by dino99
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
click-apparmor (Ubuntu)
Fix Released
Undecided
Marc Deslauriers

Bug Description

Failed to upgrade: broken dependency

System booted with 'systemd'

(synaptic:6215): GLib-CRITICAL **: g_child_watch_add_full: assertion 'pid > 0' failed
(Reading database ... 204165 files and directories currently installed.)
Preparing to unpack .../apparmor-easyprof-ubuntu_1.2.0_all.deb ...
Unpacking apparmor-easyprof-ubuntu (1.2.0) over (1.1.18) ...
Preparing to unpack .../click-apparmor_0.2.4_i386.deb ...
Failed to issue method call: Unit click-apparmor.service not loaded.
invoke-rc.d: initscript click-apparmor, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to issue method call: Unit click-apparmor.service not loaded.
invoke-rc.d: initscript click-apparmor, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/click-apparmor_0.2.4_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
Failed to issue method call: Unit click-apparmor.service failed to load: No such file or directory. See system logs and 'systemctl status click-apparmor.service' for details.
invoke-rc.d: initscript click-apparmor, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 6
Preparing to unpack .../python3-apparmor-click_0.2.4_all.deb ...
Unpacking python3-apparmor-click (0.2.4) over (0.2.2) ...
Errors were encountered while processing:
 /var/cache/apt/archives/click-apparmor_0.2.4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up apparmor-easyprof-ubuntu (1.2.0) ...
(may take a while)
dpkg: dependency problems prevent configuration of click-apparmor:
 click-apparmor depends on python3-apparmor-click (= 0.2.2); however:
  Version of python3-apparmor-click on system is 0.2.4.

dpkg: error processing package click-apparmor (--configure):
 dependency problems - leaving unconfigured
Setting up python3-apparmor-click (0.2.4) ...
Errors were encountered while processing:
 click-apparmor

ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: click-apparmor 0.2.2
ProcVersionSignature: Ubuntu 3.15.0-1.5-generic 3.15.0-rc5
Uname: Linux 3.15.0-1-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.14.2-0ubuntu4
Architecture: i386
Date: Thu May 22 19:49:09 2014
DuplicateSignature: package:click-apparmor:0.2.2:subprocess new pre-removal script returned error exit status 5
ErrorMessage: subprocess new pre-removal script returned error exit status 5
SourcePackage: click-apparmor
Title: package click-apparmor 0.2.2 failed to install/upgrade: subprocess new pre-removal script returned error exit status 5
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dino99 (9d9) wrote :
summary: - package click-apparmor 0.2.2 failed to install/upgrade: subprocess new
- pre-removal script returned error exit status 5
+ click-apparmor 0.2.2 failed to upgrade: subprocess new pre-removal
+ script returned error exit status 5
Revision history for this message
dino99 (9d9) wrote : Re: click-apparmor 0.2.2 failed to upgrade: subprocess new pre-removal script returned error exit status 5

Got the package upgraded after running that 2 terminal commands:

 sudo rm /var/lib/dpkg/info/click-apparmor.prerm
[sudo] password for oem:

sudo dpkg --remove --force-remove-reinstreq click-apparmor
dpkg: dependency problems prevent removal of click-apparmor:
 upstart-app-launch depends on click-apparmor.

dpkg: error processing package click-apparmor (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 click-apparmor

so the process still needs a fix.

dino99 (9d9)
tags: added: systemd-boot
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in click-apparmor (Ubuntu):
status: New → Confirmed
Revision history for this message
N1ck 7h0m4d4k15 (nicktux) wrote :

This package has the same error as nvidia-prime (bug #1312255) , I think it needs a repack. Also a click-apparmor.service should be created (?)

Preparing to unpack .../click-apparmor_0.2.4_amd64.deb ...
Failed to issue method call: Unit click-apparmor.service not loaded.
invoke-rc.d: initscript click-apparmor, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to issue method call: Unit click-apparmor.service not loaded.
invoke-rc.d: initscript click-apparmor, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/click-apparmor_0.2.4_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
Failed to issue method call: Unit click-apparmor.service failed to load: No such file or directory. See system logs and 'systemctl status click-apparmor.service' for details.
invoke-rc.d: initscript click-apparmor, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 6

sudo systemctl status click-apparmor.service

click-apparmor.service
   Loaded: error (Reason: No such file or directory)
   Active: inactive (dead)

summary: - click-apparmor 0.2.2 failed to upgrade: subprocess new pre-removal
- script returned error exit status 5
+ [systemd]click-apparmor 0.2.2 failed to upgrade: subprocess new pre-
+ removal script returned error exit status 5
Changed in click-apparmor (Ubuntu):
assignee: nobody → Marc Deslauriers (mdeslaur)
Revision history for this message
dino99 (9d9) wrote : Re: [systemd]click-apparmor 0.2.2 failed to upgrade: subprocess new pre-removal script returned error exit status 5

Thanks for the fix with click-apparmor; that did it, but now get the same issue with procps.

E: procps: subprocess installed post-installation script returned error exit status 1

Setting up apparmor-easyprof-ubuntu (1.2.3) ...
(may take a while)
Errors were encountered while processing:
 procps
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up procps (1:3.3.9-1ubuntu4) ...
update-rc.d: error: unable to read /etc/init.d/procps-instance
dpkg: error processing package procps (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 procps

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

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

Changed in procps (Ubuntu):
status: New → Confirmed
dino99 (9d9)
affects: procps → procps (Ubuntu)
summary: - [systemd]click-apparmor 0.2.2 failed to upgrade: subprocess new pre-
- removal script returned error exit status 5
+ [systemd]Please add a sysv init script to satisfy init system
+ transition.
Revision history for this message
Seth Arnold (seth-arnold) wrote :

dino99, 1:3.3.9-1ubuntu4 was deleted from the -proposed pocket -- https://launchpad.net/ubuntu/+source/procps/+publishinghistory -- are you running -proposed yourself? I believe the -proposed pocket for the devel release isn't for humans to run.

Thanks

Revision history for this message
Martin Pitt (pitti) wrote :

The procps breakage never reached utopic, and the current utopic package is fine. It has a proper init.d script and upstart scripts.

Keeping the task as it might still be nice to provide systemd units for that, but until then it'll just use the init.d script.

Changed in procps (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
dino99 (9d9) wrote :

hi Seth,

only see your post now, but i've found something wrong into /var/cache/apt/archives:

the procps package name was badly writen, like procps_1%3a3.3.9 .... for 3

so i've downloaded a fresh procps from utopic archive, forced removal of the installed one, following the commands from post #2, then use dpkg to install the new one; and all goes fine.

Checking for possible package upgrade, i got one and that time the procps error is gone. So i remove procps from the bug list.

no longer affects: procps (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package click-apparmor - 0.2.5

---------------
click-apparmor (0.2.5) utopic; urgency=medium

  * debian/click-apparmor.init: add a sysv init script to satisfy init
    system transition. (LP: #1322296)
 -- Marc Deslauriers <email address hidden> Thu, 29 May 2014 16:56:05 +0200

Changed in click-apparmor (Ubuntu):
status: Confirmed → 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.