[Bug 1476010] Re: package nfs-common 1:1.2.8-9ubuntu8.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100

Martin Pitt martin.pitt at ubuntu.com
Fri Aug 28 07:58:41 UTC 2015


Relevant log excerpt:

Unpacking nfs-common (1:1.2.8-9ubuntu8.1) over (1:1.2.8-9ubuntu8) ...
Setting up nfs-common (1:1.2.8-9ubuntu8.1) ...
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
invoke-rc.d: unknown initscript, /etc/init.d/gssd not found.
dpkg: error processing package nfs-common (--configure):
 subprocess installed post-installation script returned error exit status 100

So this wasn't actually a vivid → wily dist-upgrade, but just upgrading
vivid to vivid-updates. Not that it matters much in this case as wily's
package is by and large the same.

I tried to reproduce this on vivid, bot with the default (no gssd) and
with enabling gssd; but the upgrade, while noisy, works:

Setting up nfs-common (1:1.2.8-9ubuntu8.1) ...
invoke-rc.d: gssd.service doesn't exist but the upstart job does. Nothing to start or stop until a systemd or init job is present.
invoke-rc.d: idmapd.service doesn't exist but the upstart job does. Nothing to start or stop until a systemd or init job is present.

https://launchpad.net/ubuntu/+source/sysvinit/2.88dsf-53.2ubuntu4 was
supposed to fix this. But the original reporter has 2.88dsf-53.2ubuntu12
installed already, so that's not it.

So I can't yet write a working test case for an SRU. Timothy, can you
still reproduce this (try "sudo apt-get install --reinstall nfs-
common")? If so, can you run these commands to create the naming
compatibility symlinks:

   sudo ln -s rpc-gssd.service /lib/systemd/system/gssd.service
   sudo ln -s nfs-idmapd.service /lib/systemd/system/idmapd.service

and verify that this works now? After that, if you can still reproduce
the install error without the symlinks I'd like to ask you some further
questions.

> try-restart' is a deviation from the established policy that services
should be started on upgrade *even if they were not running before*

try-restart is only done for dh_systemd_start, which handles all units
which are not "the main .service" (which is usually accompanied by an
init.d script). I. e. timers, .paths, auxiliary services which might be
disabled on purpose, etc. It would be dangerous to just restart them
all. In this particular case gssd should be handled by the
dh_installinit generated snippet, which is just lacking the naming
symlink as you already pointed out.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1476010

Title:
  package nfs-common 1:1.2.8-9ubuntu8.1 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 100

Status in nfs-utils package in Ubuntu:
  Triaged

Bug description:
  Error occurred when upgrading to Wily

  ProblemType: Package
  DistroRelease: Ubuntu 15.10
  Package: nfs-common 1:1.2.8-9ubuntu8.1
  ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
  Uname: Linux 3.19.0-15-generic x86_64
  ApportVersion: 2.18-0ubuntu2
  Architecture: amd64
  Date: Sun Jul 19 12:47:15 2015
  DuplicateSignature: package:nfs-common:1:1.2.8-9ubuntu8.1:subprocess installed post-installation script returned error exit status 100
  ErrorMessage: subprocess installed post-installation script returned error exit status 100
  RelatedPackageVersions:
   dpkg 1.17.25ubuntu1
   apt  1.0.9.10ubuntu1
  SourcePackage: nfs-utils
  Title: package nfs-common 1:1.2.8-9ubuntu8.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
  UpgradeStatus: Upgraded to wily on 2015-07-19 (0 days ago)
  upstart.statd-mounting.override: manual
  upstart.statd.override: manual

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1476010/+subscriptions



More information about the foundations-bugs mailing list