won't install in livecd, fails to configure

Bug #977847 reported by John Gilmore
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rpcbind (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I wanted to mount an NFS disk in the LiveCD, so I tried a mount command; that didn't work. Turned out that the NFS support isn't even in the livecd, so I had to "apt-get install
nfs-common". This failed, even immediately after "apt-get update":

# apt-get install nfs-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libgssglue1 libnfsidmap2 libtirpc1 rpcbind
The following NEW packages will be installed:
  libgssglue1 libnfsidmap2 libtirpc1 nfs-common rpcbind
0 upgraded, 5 newly installed, 0 to remove and 516 not upgraded.
Need to get 232 kB/410 kB of archives.
After this operation, 1,296 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ precise/main nfs-common i386 1:1.2.5-3ubuntu3 [232 kB]
Fetched 232 kB in 1s (119 kB/s)
Selecting previously unselected package libgssglue1.
(Reading database ... 136122 files and directories currently installed.)
Unpacking libgssglue1 (from .../libgssglue1_0.3-4_i386.deb) ...
Selecting previously unselected package libtirpc1.
Unpacking libtirpc1 (from .../libtirpc1_0.2.2-5_i386.deb) ...
Selecting previously unselected package rpcbind.
Unpacking rpcbind (from .../rpcbind_0.2.0-7ubuntu1_i386.deb) ...
Selecting previously unselected package libnfsidmap2.
Unpacking libnfsidmap2 (from .../libnfsidmap2_0.25-1ubuntu1_i386.deb) ...
Selecting previously unselected package nfs-common.
Unpacking nfs-common (from .../nfs-common_1%3a1.2.5-3ubuntu3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libgssglue1 (0.3-4) ...
Setting up libtirpc1 (0.2.2-5) ...
Setting up rpcbind (0.2.0-7ubuntu1) ...
 Removing any system startup links for /etc/init.d/rpcbind ...
start: Unknown job: portmap
invoke-rc.d: initscript portmap, action "start" failed.
dpkg: error processing rpcbind (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libnfsidmap2 (0.25-1ubuntu1) ...
dpkg: dependency problems prevent configuration of nfs-common:
 nfs-common depends on rpcbind (>= 0.2.0-6ubuntu1); however:
  Package rpcbind is not configured yet.
dpkg: error processing nfs-common (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 rpcbind
 nfs-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: rpcbind 0.2.0-7ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-20.33-generic-pae 3.2.12
Uname: Linux 3.2.0-20-generic-pae i686
ApportVersion: 1.95-0ubuntu1
Architecture: i386
CasperVersion: 1.312
Date: Tue Apr 10 08:28:12 2012
LiveMediaBuild: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120328)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: rpcbind
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
John Gilmore (gnu-gilmore) wrote :
Revision history for this message
John Gilmore (gnu-gilmore) wrote :

For those who run into this bug, which is caused by #882147, here is how to circumvent it while the boffins argue about what the right fix is.

Run "sudo initctl reload-configuration", and then rerun the failing apt-get install command again.

You may have to do this several times (each time it will enable one more system service, until you finally get the last one done).

The problem is that the system startup scripts depend on the kernel call "inotify" to tell them when a new startup script is added. However, inotify doesn't actually work when using an "overlayfs", which is how a LiveCD allows a temporary RAM filesystem to record temporary changes that are made to the booted read-only CD/DVD image.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in rpcbind (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter M. Clausen (pclausen) wrote :

Workaround works for me as well using kubuntu 12.04 in virtual machine. Tnx!

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.