package modemmanager 1.4.0-1 failed to install/upgrade: invoke-rc.d fails on missing init.d script

Bug #1447955 reported by Anton Yakutovich
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
modemmanager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This bug is reproduced during upgrade from 14.10 to 15.04.

ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: modemmanager
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
Date: Fri Apr 24 09:00:25 2015
DuplicateSignature: package:modemmanager:1.4.0-1:subprocess installed post-installation script returned error exit status 100
ErrorMessage: subprocess installed post-installation script returned error exit status 100
InstallationDate: Installed on 2014-12-09 (135 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
RelatedPackageVersions:
 dpkg 1.17.25ubuntu1
 apt 1.0.9.7ubuntu4
SourcePackage: modemmanager
Title: package modemmanager 1.4.0-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
UpgradeStatus: Upgraded to vivid on 2015-04-24 (0 days ago)

Revision history for this message
Anton Yakutovich (dr-akulavich) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in modemmanager (Ubuntu):
status: New → Confirmed
Esokrates (esokrarkose)
summary: - package modemmanager 1.4.0-1 failed to install/upgrade: subprocess
- installed post-installation script returned error exit status 100
+ [systemd] package modemmanager 1.4.0-1 failed to install/upgrade:
+ subprocess installed post-installation script returned error exit status
+ 100
Revision history for this message
Esokrates (esokrarkose) wrote : Re: [systemd] package modemmanager 1.4.0-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100

pitti, please have a look, this seems to be related to systemd.
I hit this bug when using debootstrap+chroot (deboostrapping vivid to a new partition, then chrooting into the tree and then installing ubuntu-desktop): When the host system is an upstart system (14.10, fully updated), installing modemmanager works without problems, however if the host is the vivid livecd, then I hit this bug.

Relevant log bits:

Setting up modemmanager (1.4.0-1) ...^M
invoke-rc.d: unknown initscript, /etc/init.d/modemmanager not found.^M
dpkg: error processing package modemmanager (--configure):^M
 subprocess installed post-installation script returned error exit status 100^M
...
Errors were encountered while processing:^M
 modemmanager^M

Full log attached. apt-get was invoked the following way:
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install <args>

Revision history for this message
Esokrates (esokrarkose) wrote :

/var/log/apt/term.log of deboostrap system.

Revision history for this message
Esokrates (esokrarkose) wrote :

/var/log/apt/history.log of deboostrap system.

Revision history for this message
Esokrates (esokrarkose) wrote :

Just retested today. I have a bash script that debootstraps vivid, chroots into it and installs ubuntu-desktop.
From my utopic systeme everything is fine, but when the exact same script is run from the vivid live-cd, it fails with installing modemmanager.

Regarding chroot mounts:

 mount --bind /dev $target/dev
 mount --bind /dev/pts $target/dev/pts
 mount --bind /sys $target/sys
 mount --bind /proc $target/proc

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

This was apparently fixed in vivid's invoke-rc.d, i. e. considering the case that a package only has an upstart job and a systemd unit, but no init.d script. apt-get install modemmanager is fine in vivid, so this invoke-rc.d fix would need to get backported to utopic.

summary: - [systemd] package modemmanager 1.4.0-1 failed to install/upgrade:
- subprocess installed post-installation script returned error exit status
- 100
+ package modemmanager 1.4.0-1 failed to install/upgrade: invoke-rc.d
+ fails on missing init.d script
Revision history for this message
Esokrates (esokrarkose) wrote :

pitti, and how do you explain the strange behavior I observe with my deboostrap install method? NOTE: It works with the utopic host, but not with the vivid one.
As I workaround "touch /etc/init.d/modemmanager" works.

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

Esokrates: When I do this in a chroot with a proper policy-rc.d (to suppress daemon starts, which is a must for doing things in a chroot), I get

Setting up modemmanager (1.4.0-1) ...
invoke-rc.d: unknown initscript, /etc/init.d/modemmanager not found.
invoke-rc.d: policy-rc.d denied execution of start.

and the package installs successfully. So it seems the "modemmanager not found" is a warning, but does not break stuff by itself. I guess what happens is that the postinst tries to actually start modemmanager in your chroot?

Revision history for this message
Esokrates (esokrarkose) wrote :

pitti, awesome as always, thanks, your explanation is right. The missing policy was the problem. Thanks very much!

For people coming here through googleing, that have that problem in a chroot, see https://wiki.debian.org/chroot#Configuration

tags: removed: need-duplicate-check
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.