package ofono 1.17.bzr6904+15.10.20150928.1-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100

Bug #1502536 reported by Josef Andersson
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ofono (Ubuntu)
Incomplete
High
Martin Pitt
Wily
Incomplete
High
Martin Pitt

Bug Description

Got this while upgrading from 15.04 to 15.10

ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: ofono 1.17.bzr6904+15.10.20150928.1-0ubuntu1
ProcVersionSignature: Ubuntu 4.2.0-12.14-generic 4.2.1
Uname: Linux 4.2.0-12-generic x86_64
ApportVersion: 2.19-0ubuntu1
Architecture: amd64
Date: Sun Oct 4 02:38:14 2015
DuplicateSignature: package:ofono:1.17.bzr6904+15.10.20150928.1-0ubuntu1:subprocess installed post-installation script returned error exit status 100
ErrorMessage: subprocess installed post-installation script returned error exit status 100
InstallationDate: Installed on 2013-04-09 (907 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130409)
RelatedPackageVersions:
 dpkg 1.18.2ubuntu4
 apt 1.0.9.10ubuntu7
SourcePackage: ofono
Title: package ofono 1.17.bzr6904+15.10.20150928.1-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
UpgradeStatus: Upgraded to wily on 2015-10-04 (0 days ago)

Revision history for this message
Josef Andersson (northar) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

The error happens when "invoke-rc.d ofono start" is executed:

invoke-rc.d: unknown initscript, /etc/init.d/ofono not found.

The ofono.postinst script is

http://paste.ubuntu.com/12705917/

being line 31 the offending one. It seems to be some issue related to the systemd transition.

Changed in ofono (Ubuntu):
status: New → Confirmed
Changed in ofono (Ubuntu Wily):
importance: Undecided → High
Changed in ofono (Ubuntu Wily):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

I tried this in a VM and cannot reproduce this. an you please give me the output of

   sudo sh -x /usr/sbin/invoke-rc.d ofono start

on your system? Thanks!

Changed in ofono (Ubuntu Wily):
status: Confirmed → Incomplete
Revision history for this message
Josef Andersson (northar) wrote :

Output from terminal, from sudo sh -x /usr/sbin/invoke-rc.d ofono start:

+ RUNLEVELHELPER=/sbin/runlevel
+ POLICYHELPER=/usr/sbin/policy-rc.d
+ INITDPREFIX=/etc/init.d/
+ RCDPREFIX=/etc/rc
+ BEQUIET=
+ MODE=
+ ACTION=
+ FALLBACK=
+ NOFALLBACK=
+ FORCE=
+ RETRY=
+ RETURNFAILURE=
+ RC=
+ is_upstart=
+ is_systemd=
+ set +e
+ test 2 -eq 0
+ state=I
+ test 2 -gt 0
+ test I != III
+ verifyparameter ofono
+ test 1 -eq 0
+ test 1 -ne 1
+ return
+ INITSCRIPTID=ofono
+ state=II
+ shift
+ test 1 -gt 0
+ test II != III
+ verifyparameter start
+ test 1 -eq 0
+ test 1 -ne 1
+ return
+ ACTION=start
+ state=III
+ shift
+ test 0 -gt 0
+ test III != III
+ unset UPSTART_SESSION
+ which initctl
+ + grepinitctl -q upstart
 version
+ test -d /run/systemd/system
+ is_systemd=1
+ UNIT=ofono.service
+ + /sbin/runlevel
sed s/.*\ //
+ RL=5
+ test ! 0
+ test x5 = x0
+ test x5 = x6
+ test x5 = x0
+ test x5 = x6
+ test x5 != x
+ xargs
+ ls -d -Q /etc/rc5.d/S[0-9][0-9]ofono
+ SLINK=
+ xargs
+ ls -d -Q /etc/rc5.d/K[0-9][0-9]ofono
+ KLINK=
+ xargs
+ ls -d -Q /etc/rcS.d/S[0-9][0-9]ofono
+ SSLINK=
+ verifyrclink
+ doexit=
+ test 0 -gt 0
+ test x != x
+ return 0
+ RC=
+ testexec
+ test 0 -gt 0
+ return 1
+ testexec
+ test 0 -gt 0
+ return 1
+ testexec
+ test 0 -gt 0
+ return 1
+ _executable=
+ [ -n ]
+ [ -n 1 ]
+ systemctl -p LoadState show ofono.service
+ _state=LoadState=loaded
+ [ LoadState=loaded != LoadState=masked ]
+ _executable=1
+ [ 1 = 1 ]
+ test x = x
+ test x = xquery
+ querypolicy
+ policyaction=start
+ test x = x101
+ test x/usr/sbin/policy-rc.d != x
+ test -x /usr/sbin/policy-rc.d
+ test x = x
+ RC=104
+ return
+ test x = xquery
+ [ -n ]
+ [ 0 != 0 ]
+ clean_ldpreload libeatmydata.so
+ local name=libeatmydata.so oifs=
 found=0 tok= nval= delim=
+ [ = ]
+ IFS=
+ IFS=

+ [ 0 = 1 ]
+ return 0
+ test x != x
+ test 104 -eq 104
+ [ -n ]
+ [ -n 1 ]
+ RC=102
+ setechoactions start
+ test 1 -gt 1
+ echoaction=
+ test ! -z start
+ getnextaction start
+ saction=start
+ shift
+ ACTION=
+ test ! -z
+ [ -n ]
+ [ -n 1 ]
+ [ -n ]
+ systemctl is-system-running
+ OUT=degraded
+ [ degraded != degraded ]
+ systemctl --quiet is-enabled ofono.service
+ ERR=
+ systemctl start ofono.service
+ exit 0

Revision history for this message
Josef Andersson (northar) wrote :

Doing a sudo apt-get install --reinstall ofono
worked fine for me earlier.

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

> Doing a sudo apt-get install --reinstall ofono worked fine for me earlier.

Ah, then you can't reproduce it either? The set -x output indeed looks okay.

Revision history for this message
Josef Andersson (northar) wrote :

No, not as of now. This was during the upgrade to 15.10 and now, after doing the --reinstall the package seems ok for me.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

In my case I got the error by simply creating a vivid chroot and then installing ofono, it was not even a release upgrade.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 1502536] Re: package ofono 1.17.bzr6904+15.10.20150928.1-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100

Alfonso Sanchez-Beato [2015-10-16 9:31 -0000]:
> In my case I got the error by simply creating a vivid chroot and then
> installing ofono, it was not even a release upgrade.

Ah, but you created a chroot without a policy-rc.d to not start
services from postinsts? That's much clearer then. You simply can't do
this in a chroot, and mk-sbuild and friends auto-install such a
policy-rc.d.

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

Josef, were you running this in a chroot as well, or was this your actual system?

Revision history for this message
Vyacheslav Sedov (schematronic) wrote :

as early bird got same problem during upgrade from 15.04 to 15.10 - maybe this can help

$ sudo sh -x /usr/sbin/invoke-rc.d ofono start

+ RUNLEVELHELPER=/sbin/runlevel
+ POLICYHELPER=/usr/sbin/policy-rc.d
+ INITDPREFIX=/etc/init.d/
+ RCDPREFIX=/etc/rc
+ BEQUIET=
+ MODE=
+ ACTION=
+ FALLBACK=
+ NOFALLBACK=
+ FORCE=
+ RETRY=
+ RETURNFAILURE=
+ RC=
+ is_upstart=
+ is_systemd=
+ set +e
+ test 2 -eq 0
+ state=I
+ test 2 -gt 0
+ test I != III
+ verifyparameter ofono
+ test 1 -eq 0
+ test 1 -ne 1
+ return
+ INITSCRIPTID=ofono
+ state=II
+ shift
+ test 1 -gt 0
+ test II != III
+ verifyparameter start
+ test 1 -eq 0
+ test 1 -ne 1
+ return
+ ACTION=start
+ state=III
+ shift
+ test 0 -gt 0
+ test III != III
+ unset UPSTART_SESSION
+ which initctl
+ initctl version
+ grep -q upstart
+ test -d /run/systemd/system
+ is_systemd=1
+ UNIT=ofono.service
+ /sbin/runlevel
+ sed s/.*\ //
+ RL=5
+ test ! 0
+ test x5 = x0
+ test x5 = x6
+ test x5 = x0
+ test x5 = x6
+ test x5 != x
+ xargs
+ ls -d -Q /etc/rc5.d/S[0-9][0-9]ofono
+ SLINK=
+ xargs
+ ls -d -Q /etc/rc5.d/K[0-9][0-9]ofono
+ KLINK=
+ xargs
+ ls -d -Q /etc/rcS.d/S[0-9][0-9]ofono
+ SSLINK=
+ verifyrclink
+ doexit=
+ test 0 -gt 0
+ test x != x
+ return 0
+ RC=
+ testexec
+ test 0 -gt 0
+ return 1
+ testexec
+ test 0 -gt 0
+ return 1
+ testexec
+ test 0 -gt 0
+ return 1
+ _executable=
+ [ -n ]
+ [ -n 1 ]
+ systemctl -p LoadState show ofono.service
+ _state=LoadState=loaded
+ [ LoadState=loaded != LoadState=masked ]
+ _executable=1
+ [ 1 = 1 ]
+ test x = x
+ test x = xquery
+ querypolicy
+ policyaction=start
+ test x = x101
+ test x/usr/sbin/policy-rc.d != x
+ test -x /usr/sbin/policy-rc.d
+ test x = x
+ RC=104
+ return
+ test x = xquery
+ [ -n ]
+ [ 0 != 0 ]
+ clean_ldpreload libeatmydata.so
+ local name=libeatmydata.so oifs=
 found=0 tok= nval= delim=
+ [ = ]
+ IFS=
+ IFS=

+ [ 0 = 1 ]
+ return 0
+ test x != x
+ test 104 -eq 104
+ [ -n ]
+ [ -n 1 ]
+ RC=102
+ setechoactions start
+ test 1 -gt 1
+ echoaction=
+ test ! -z start
+ getnextaction start
+ saction=start
+ shift
+ ACTION=
+ test ! -z
+ [ -n ]
+ [ -n 1 ]
+ [ -n ]
+ systemctl is-system-running
+ OUT=running
+ systemctl --quiet is-enabled ofono.service
+ ERR=
+ systemctl start ofono.service
+ exit 0

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.