won't install in livecd, fails to configure
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://
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
Selecting previously unselected package libtirpc1.
Unpacking libtirpc1 (from .../libtirpc1_
Selecting previously unselected package rpcbind.
Unpacking rpcbind (from .../rpcbind_
Selecting previously unselected package libnfsidmap2.
Unpacking libnfsidmap2 (from .../libnfsidmap
Selecting previously unselected package nfs-common.
Unpacking nfs-common (from .../nfs-
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.
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
ProcVersionSign
Uname: Linux 3.2.0-20-
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)
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.