packages with only upstart+systemd without sysvinit fail to upgrade with do-release-upgrade: upgrade tarballs ship obsolete invoke-rc.d
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | ubuntu-release-upgrader (Ubuntu) |
High
|
Martin Pitt | ||
| | Wily |
High
|
Martin Pitt | ||
| | Xenial |
High
|
Martin Pitt | ||
Bug Description
After upgrade to 15.10
SRU TEST CASE:
- Take a vivid schroot, cloud image, container or similar
- Install ofono, lxc, or nfs-common
- Run "do-release-upgrade -d"
- With current tarball this fails with something like
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/
invoke-rc.d: unknown initscript, /etc/init.d/lxc not found.
- With fixed upgrade tarball the upgrade should succeed.
ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: nfs-common 1:1.2.8-9ubuntu10
ProcVersionSign
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu2
Architecture: amd64
Date: Sun Oct 11 04:41:20 2015
ErrorMessage: подпроцесс установлен сценарий post-installation возвратил код ошибки 100
InstallationDate: Installed on 2009-11-30 (2140 days ago)
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027.1)
RelatedPackageV
dpkg 1.18.2ubuntu4
apt 1.0.10.2ubuntu1
SourcePackage: nfs-utils
Title: package nfs-common 1:1.2.8-9ubuntu10 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 100
UpgradeStatus: Upgraded to wily on 2015-10-11 (0 days ago)
Related branches
- Oded Arbel: Pending requested 2015-08-02
-
Diff: 61335 lines (+15712/-10204) (has conflicts)138 files modifiedDistUpgrade/DistUpgradeCache.py (+1/-1)
DistUpgrade/DistUpgradeController.py (+7/-1)
DistUpgrade/DistUpgradeFetcherKDE.py (+7/-2)
DistUpgrade/DistUpgradeVersion.py (+1/-1)
DistUpgrade/DistUpgradeViewGtk3.py (+1/-1)
DistUpgrade/build-tarball.sh (+3/-3)
DistUpgrade/imported/invoke-rc.d (+124/-7)
data/DistUpgrade.cfg (+19/-5)
data/mirrors.cfg (+28/-10)
data/removal_blacklist.cfg (+4/-1)
debian/changelog (+111/-0)
debian/control (+1/-1)
po/af.po (+83/-83)
po/am.po (+83/-83)
po/an.po (+85/-85)
po/ar.po (+81/-81)
po/ast.po (+87/-84)
po/az.po (+85/-85)
po/be.po (+184/-100)
po/bg.po (+81/-81)
po/bn.po (+81/-81)
po/bo.po (+81/-81)
po/br.po (+82/-82)
po/bs.po (+85/-82)
po/ca.po (+85/-82)
po/ca@valencia.po (+81/-81)
po/ce.po (+85/-85)
po/ceb.po (+85/-85)
po/ckb.po (+85/-85)
po/crh.po (+81/-81)
po/cs.po (+81/-81)
po/csb.po (+81/-81)
po/cv.po (+85/-85)
po/cy.po (+81/-81)
po/da.po (+88/-85)
po/de.po (+85/-82)
po/dv.po (+85/-85)
po/el.po (+87/-84)
po/en_AU.po (+141/-138)
po/en_CA.po (+137/-137)
po/en_GB.po (+129/-126)
po/eo.po (+81/-81)
po/es.po (+85/-82)
po/et.po (+81/-81)
po/eu.po (+85/-82)
po/fa.po (+85/-85)
po/fi.po (+85/-82)
po/fil.po (+83/-83)
po/fo.po (+83/-83)
po/fr.po (+85/-82)
po/fr_CA.po (+87/-84)
po/fur.po (+83/-83)
po/fy.po (+85/-85)
po/ga.po (+85/-85)
po/gd.po (+83/-83)
po/gl.po (+94/-91)
po/gu.po (+85/-85)
po/gv.po (+85/-85)
po/he.po (+85/-85)
po/hi.po (+81/-81)
po/hr.po (+85/-82)
po/hu.po (+85/-82)
po/hy.po (+85/-85)
po/ia.po (+1633/-0)
po/id.po (+87/-84)
po/is.po (+84/-84)
po/it.po (+88/-85)
po/ja.po (+88/-85)
po/jv.po (+85/-85)
po/ka.po (+83/-83)
po/kk.po (+81/-81)
po/km.po (+85/-82)
po/kn.po (+85/-85)
po/ko.po (+85/-82)
po/ku.po (+83/-83)
po/ky.po (+85/-85)
po/lb.po (+85/-85)
po/lo.po (+85/-85)
po/lt.po (+81/-81)
po/lv.po (+88/-85)
po/mhr.po (+85/-85)
po/mk.po (+83/-83)
po/ml.po (+85/-85)
po/mn.po (+85/-85)
po/mr.po (+85/-85)
po/ms.po (+87/-84)
po/mus.po (+85/-85)
po/my.po (+85/-85)
po/nb.po (+85/-82)
po/nds.po (+85/-85)
po/ne.po (+85/-85)
po/nl.po (+103/-93)
po/nn.po (+81/-81)
po/oc.po (+66/-63)
po/om.po (+1633/-0)
po/pa.po (+83/-83)
po/pam.po (+1633/-0)
po/pl.po (+87/-84)
po/ps.po (+85/-85)
po/pt.po (+88/-85)
po/pt_BR.po (+88/-85)
po/qu.po (+85/-85)
po/ro.po (+88/-85)
po/ru.po (+85/-82)
po/rw.po (+85/-85)
po/sc.po (+85/-85)
po/sco.po (+85/-85)
po/sd.po (+85/-85)
po/se.po (+83/-83)
po/shn.po (+85/-85)
po/si.po (+83/-83)
po/sk.po (+81/-81)
po/sl.po (+66/-63)
po/sq.po (+87/-84)
po/sr.po (+81/-81)
po/sv.po (+86/-83)
po/szl.po (+64/-64)
po/ta.po (+83/-83)
po/ta_LK.po (+85/-85)
po/te.po (+83/-83)
po/tg.po (+87/-84)
po/th.po (+81/-81)
po/tl.po (+83/-83)
po/tr.po (+85/-82)
po/ubuntu-release-upgrader.pot (+104/-104)
po/ug.po (+87/-84)
po/uk.po (+85/-82)
po/ur.po (+85/-85)
po/uz.po (+85/-85)
po/vi.po (+81/-81)
po/xh.po (+85/-85)
po/zh_CN.po (+85/-85)
po/zh_HK.po (+81/-81)
po/zh_TW.po (+87/-84)
po/zu.po (+85/-85)
tests/test_apport_crash.py (+2/-2)
utils/demoted.cfg (+126/-1)
utils/demotions.py (+12/-10)
| Pavel-II (dzy4) wrote : | #1 |
| Changed in nfs-utils (Ubuntu): | |
| status: | New → Incomplete |
| Pavel-II (dzy4) wrote : | #3 |
ErrorMessage: подпроцесс установлен сценарий post-installation возвратил код ошибки 100
and
подпроцесс установлен сценарий post-installation возвратил код ошибки 100
The bottom line is that the installation process (subprocess post-installation) was completed with an error code 100
| Changed in nfs-utils (Ubuntu): | |
| status: | Incomplete → New |
| Steve Langasek (vorlon) wrote : | #4 |
The full error in the log is:
Настраивается пакет nfs-common (1:1.2.8-9ubuntu10) …
initctl: Не удается подключиться к Upstart: Failed to connect to socket /com/ubuntu/
invoke-rc.d: unknown initscript, /etc/init.d/gssd not found.
dpkg: ошибка при обработке пакета nfs-common (--configure):
подпроцесс установлен сценарий post-installation возвратил код ошибки 100
This is supposed to have been fixed in the upload of nfs-utils 1:1.2.8-9ubuntu10, which is the exact version you're installing; invoke-rc.d is not supposed to fail in this case.
Martin, can you take a look at this and see if we need to be adding a versioned dependency on sysv-rc for such cases?
| Changed in nfs-utils (Ubuntu): | |
| assignee: | nobody → Martin Pitt (pitti) |
| status: | New → Triaged |
| Martin Pitt (pitti) wrote : | #5 |
A versioned dep can't explain this fully, as in the upgrade log wily's sysv-rc gets installed and configured much earlier than nfs-common.
I tried to reproduce this in a VM, but no luck so far. I tried with (touch /etc/krb5.keytab) and without (default) running gssd.
sudo apt install -y rpcbind nfs-common
sudo touch /etc/krb5.keytab
sudo systemctl start rpc-gssd # or reboot
echo 'deb http://
sudo apt update
# same order as in reported log
sudo apt install -y sysv-rc initscripts systemd systemd-sysv
sudo apt install -y rpcbind nfs-common
# alternatively:
sudo apt full-upgrade
I also tried with installing/
I never see these messages:
insserv: warning: current start runlevel(s) (2 3 4 5 S) of script `rpcbind' overrides LSB defaults (S).
initctl: Не удается подключиться к Upstart: Failed to connect to socket /com/ubuntu/
invoke-rc.d: unknown initscript, /etc/init.d/gssd not found.
so something in your install is different from my fresh vivid install.
@rich: Can you please tell me more about the history of this system? I. e. which version did you originally install (looks like Ubuntu 9.10?), which upgrades did you do, etc.?
| Martin Pitt (pitti) wrote : | #6 |
Tried again from trusty:
sudo apt install -y rpcbind nfs-common
sudo sed -i '/NEED_GSSD/ s/=/=yes/' /etc/default/
sudo initctl start gssd
echo 'deb http://
sudo apt update
sudo apt -y full-upgrade
sudo touch /etc/krb5.keytab # to enable gssd
sudo reboot
echo 'deb http://
sudo apt update
sudo apt -y full-upgrade
This still works fine, and I still don't get all these error messages.
@rich: Can you please copy&paste the output of these commands:
md5sum `which invoke-rc.d`
sudo sh -x /usr/sbin/
sudo apt-get install --reinstall nfs-common
Thanks!
| Changed in nfs-utils (Ubuntu): | |
| status: | Triaged → Incomplete |
| Pavel-II (dzy4) wrote : | #7 |
Full log translation:
Configures the package nfs-common (1:1.2.8-9ubuntu10) …
initctl: Cannot connect to Upstart: Failed to connect to socket /com/ubuntu/
Connection refused invoke-rc.d: unknown initscript, /etc/init.d/gssd not found.
dpkg: an error processing package nfs-common (--configure):
subprocess installed scenario post-installation return error code 100
@Martin Pitt (pitti):
md5sum `which invoke-rc.d` : d6ecd6a53a96b6d
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 gssd
+ test 1 -eq 0
+ test 1 -ne 1
+ return
+ INITSCRIPTID=gssd
+ state=II
+ shift
+ test 1 -gt 0
+ test II != III
+ verifyparameter restart
+ test 1 -eq 0
+ test 1 -ne 1
+ return
+ ACTION=restart
+ state=III
+ shift
+ test 0 -gt 0
+ test III != III
+ unset UPSTART_SESSION
+ which initctl
+ grep -q upstart
+ initctl version
+ test -d /run/systemd/system
+ is_systemd=1
+ UNIT=gssd.service
+ sed s/.*\ //
+ /sbin/runlevel
+ 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 gssd.service
+ _state=
+ [ LoadState=loaded != LoadState=masked ]
+ _executable=1
+ [ 1 = 1 ]
+ test x = x
+ test x = xquery
+ querypolicy
+ policyaction=
+ 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 restart
+ test 1 -gt 1
+ echoaction=
+ test ! -z restart
+ getnextaction restart
+ saction=restart
+ shift
+ ACTION=
+ test ! -z
+ [ -n ]
+ [ -n 1 ]
+ [ -n ]
+ systemctl is-system-running
+ OUT=degraded
+ [ degraded != degraded ]
+ systemctl --quiet is-enabled gssd.service
+ ERR=
+ systemctl restart gssd.service
+ exit 0
Reading package lists… Done
Building dependency tree
Reading state information… Done
update 0, install 0 new packages, reinstall 1 reinstall, mark for delete 0 packages, and 11 packages not upgrade.
Need to upload 0 B/185 kB archives.
After this operation, the volume of the occupied disk space will be 0 B.
(Read database … at the moment installes 591005 files and directories.)
Prepare to unpack …/nfs-common_
Unpack nfs-common (1:1.2.8-9ubuntu10) to replace (1:1....
| Martin Pitt (pitti) wrote : | #8 |
OK, thanks. That looks like it's supposed to. So I don't yet know how to reproduce this.
I looked at /usr/sbin/
| Changed in nfs-utils (Ubuntu): | |
| status: | Incomplete → New |
| Launchpad Janitor (janitor) wrote : | #9 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in nfs-utils (Ubuntu): | |
| status: | New → Confirmed |
| Brian Murray (brian-murray) wrote : | #10 |
There is an errors bucket corresponding to this issue here:
https:/
| Changed in nfs-utils (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Vincent Ladeuil (vila) wrote : | #11 |
/var/log/
| Vincent Ladeuil (vila) wrote : | #12 |
| Steve Langasek (vorlon) wrote : | #13 |
there are multiple reports of this issue. marking as high-priority.
| Changed in nfs-utils (Ubuntu): | |
| importance: | Undecided → High |
| Martin Pitt (pitti) wrote : | #14 |
bug 1502536 for ofono and bug 1490110 for lxc are essentially the same -- this affects packages which have upstart jobs and systemd units, but not sysv init script. Duplicating and generalizing.
| summary: |
- package nfs-common 1:1.2.8-9ubuntu10 failed to install/upgrade: - подпроцесс установлен сценарий post-installation возвратил код ошибки + packages with only upstart+systemd without sysvinit fail to upgrade: + subprocess installed post-installation script returned error exit status 100 |
| affects: | nfs-utils (Ubuntu) → sysvinit (Ubuntu) |
| Launchpad Janitor (janitor) wrote : Re: packages with only upstart+systemd without sysvinit fail to upgrade: subprocess installed post-installation script returned error exit status 100 | #15 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Martin Pitt (pitti) wrote : | #16 |
Ah, I can finally reproduce this! It seems the crucial difference is using do-release-upgrade; with apt-get or apt it always works fine.
I start from a slightly minimized vivid cloud image.
sudo apt-get install -y ubuntu-
sudo do-release-upgrade -d
(using "lxc juju-local" instead of "ofono" as in bug 1490110 works too).
This even works in a schroot with policy-rc.d (which is much faster as it doesn't have to dist-upgrade the kernel etc). The upgrade doesn't fail, but one still sees
Setting up ofono (1.17.bzr6904+
Installing new version of config file /etc/dbus-
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/
invoke-rc.d: unknown initscript, /etc/init.d/ofono not found.
invoke-rc.d: policy-rc.d denied execution of start.
| Changed in sysvinit (Ubuntu Wily): | |
| status: | Incomplete → In Progress |
| Martin Pitt (pitti) wrote : | #17 |
This is actually a bug in ubuntu-
| affects: | sysvinit (Ubuntu Wily) → ubuntu-release-upgrader (Ubuntu Wily) |
| summary: |
- packages with only upstart+systemd without sysvinit fail to upgrade: - subprocess installed post-installation script returned error exit status - 100 + packages with only upstart+systemd without sysvinit fail to upgrade with + do-release-upgrade: upgrade tarballs ship obsolete invoke-rc.d |
| Martin Pitt (pitti) wrote : | #18 |
I'm afraid I don't know the first thing about how these upgrade tarballs are constructed and how we can update them to the current sysvinit. Michael, Brian, any idea?
| Changed in ubuntu-release-upgrader (Ubuntu Wily): | |
| assignee: | Martin Pitt (pitti) → Michael Vogt (mvo) |
| Changed in ubuntu-release-upgrader (Ubuntu Wily): | |
| assignee: | Michael Vogt (mvo) → Martin Pitt (pitti) |
| Martin Pitt (pitti) wrote : | #19 |
Fixed the copy for release-upgrader tarballs: http://
| description: | updated |
| Martin Pitt (pitti) wrote : | #20 |
For the record: to test this while it's in proposed, change /etc/update-
| Changed in ubuntu-release-upgrader (Ubuntu Wily): | |
| status: | In Progress → Fix Committed |
| Ubuntu QA Website (ubuntuqa) wrote : | #21 |
This bug has been reported on the Ubuntu ISO testing tracker.
A list of all reports related to this bug can be found here:
http://
| tags: | added: iso-testing |
| Brian Murray (brian-murray) wrote : | #22 |
It's also possible to test this by downloading the proposed version of the release upgrader tarball, extracting it and then running the wily script to run the upgrade process. The proposed version will be available here:
http://
| Brian Murray (brian-murray) wrote : | #23 |
I've tested an upgrade from vivid to wily using the release upgrader from -proposed as I mentioned and see the following in my /var/log/
Setting up lxc (1.1.4-0ubuntu1) ...^M
Installing new version of config file /etc/apparmor.
Installing new version of config file /etc/bash_
Installing new version of config file /etc/init/lxc.conf ...^M
Setting up lxc dnsmasq configuration.^M
Setting up lxc-templates (1.1.4-0ubuntu1) ...^M
So this looks good to me, thanks!
| Martin Pitt (pitti) wrote : | #24 |
I also did a test dist-upgrade with the proposed upgrade tarball, with ofono and lxc, and it worked just fine now. Marking verified.
| tags: | added: verification-done |
| Iain Lane (laney) wrote : Update Released | #25 |
The verification of the Stable Release Update for ubuntu-
| Launchpad Janitor (janitor) wrote : | #26 |
This bug was fixed in the package ubuntu-
---------------
ubuntu-
[ Brian Murray ]
* data/DistUpgrad
considered for removal. (LP: #1508539)
[ Martin Pitt ]
* DistUpgrade/
support, to fix upgrade failures of packages which only ship upstart and
systemd units, but no SysV init script (like lxc, ofono, or nfs-common).
(LP: #1504897)
-- Martin Pitt <email address hidden> Wed, 21 Oct 2015 23:40:22 +0200
| Changed in ubuntu-release-upgrader (Ubuntu Wily): | |
| status: | Fix Committed → Fix Released |
| Martin Pitt (pitti) wrote : | #27 |
http://
| Launchpad Janitor (janitor) wrote : | #28 |
This bug was fixed in the package ubuntu-
---------------
ubuntu-
[ Barry Warsaw ]
* Don't try to import janitor and NvidiaDetector in a package relative
to this one, to avoid the possibility of dangling symlinks when the
packages actually containing these modules is not installed.
(LP: #1485093)
* debian/
[ Brian Murray ]
* DistUpgrade/
DistUpgrade
data/
data/
data/
pre-build.sh:
- updated for 15.10->16.04
* DistUpgrade/
metapackage is installed after the release upgrade. (LP: #1509305)
[ Michael Vogt ]
* DistUpgrade/
a test for it.
-- Brian Murray <email address hidden> Tue, 27 Oct 2015 13:45:19 -0700
| Changed in ubuntu-release-upgrader (Ubuntu Xenial): | |
| status: | Fix Committed → Fix Released |


Thank you for taking the time to report this issue and helping to make Ubuntu better. We noticed that some of the sentences in this bug report are not in English. If they were translated to English they would be more understandable to triagers. Could you please translate them?