package ofono 1.17.bzr6904+15.10.20150928.1-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| ofono (Ubuntu) |
High
|
Martin Pitt | |||
| Wily |
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+
ProcVersionSign
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:
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)
RelatedPackageV
dpkg 1.18.2ubuntu4
apt 1.0.9.10ubuntu7
SourcePackage: ofono
Title: package ofono 1.17.bzr6904+
UpgradeStatus: Upgraded to wily on 2015-10-04 (0 days ago)
| Josef Andersson (northar) wrote : | #1 |
| tags: | removed: need-duplicate-check |
| 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) |
| Martin Pitt (pitti) wrote : | #3 |
I tried this in a VM and cannot reproduce this. an you please give me the output of
sudo sh -x /usr/sbin/
on your system? Thanks!
| Changed in ofono (Ubuntu Wily): | |
| status: | Confirmed → Incomplete |
| Josef Andersson (northar) wrote : | #4 |
Output from terminal, from sudo sh -x /usr/sbin/
+ RUNLEVELHELPER=
+ POLICYHELPER=
+ INITDPREFIX=
+ 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.
+ SLINK=
+ xargs
+ ls -d -Q /etc/rc5.
+ KLINK=
+ xargs
+ ls -d -Q /etc/rcS.
+ 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=masked ]
+ _executable=1
+ [ 1 = 1 ]
+ test x = x
+ test x = xquery
+ querypolicy
+ policyaction=start
+ test x = x101
+ test x/usr/sbin/
+ test -x /usr/sbin/
+ test x = x
+ RC=104
+ return
+ test x = xquery
+ [ -n ]
+ [ 0 != 0 ]
+ clean_ldpreload libeatmydata.so
+ local name=libeatmyda
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
| Josef Andersson (northar) wrote : | #5 |
Doing a sudo apt-get install --reinstall ofono
worked fine for me earlier.
| Martin Pitt (pitti) wrote : | #6 |
> 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.
| Josef Andersson (northar) wrote : | #7 |
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.
In my case I got the error by simply creating a vivid chroot and then installing ofono, it was not even a release upgrade.
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.
| Martin Pitt (pitti) wrote : | #10 |
Josef, were you running this in a chroot as well, or was this your actual system?
| Vyacheslav Sedov (schematronic) wrote : | #11 |
as early bird got same problem during upgrade from 15.04 to 15.10 - maybe this can help
$ sudo sh -x /usr/sbin/
+ RUNLEVELHELPER=
+ POLICYHELPER=
+ INITDPREFIX=
+ 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.
+ SLINK=
+ xargs
+ ls -d -Q /etc/rc5.
+ KLINK=
+ xargs
+ ls -d -Q /etc/rcS.
+ 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=masked ]
+ _executable=1
+ [ 1 = 1 ]
+ test x = x
+ test x = xquery
+ querypolicy
+ policyaction=start
+ test x = x101
+ test x/usr/sbin/
+ test -x /usr/sbin/
+ test x = x
+ RC=104
+ return
+ test x = xquery
+ [ -n ]
+ [ 0 != 0 ]
+ clean_ldpreload libeatmydata.so
+ local name=libeatmyda
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


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.