2013-03-21

Sledgehammer Kludge: Make nfs-common install.

Disclaimer: I'm clueless. I'm also tired. Having gotten to the point of downloading the nfs-utils-1.2.6 tarball and making it (and installing it. and having it not work), I'm no longer concerned about The Right Thing(™) so much as "Just Fucking Work Already".

Background: try googling up nfs-common FAIL. It's a good fun time, with bug reports years and years old, most mentioning portmap or rpcbind.  With no solutions, even in the SOLVED threads.  I'm certain there's some nasty interaction between the squeeze repos and backports, but I don't care. Also, this:
apt-get -t squeeze-backports install nfs-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nfs-common : Depends: libevent-1.4-2 (>= 1.4.13-stable) but it is not installable
E: Unable to correct problems, you have held broken packages.

Um. No. I'm not holding shit back:
dpkg --get-selections | grep hold

Of course:

apt-get install libevent-2.0-5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libevent-2.0-5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 684 not upgraded.

2.0-5 is greater than 1.4.13, right? Right???

Anyway... for other people really sick of this or similar bullshit:

apt-get install nfs-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  open-iscsi watchdog
The following NEW packages will be installed:
  nfs-common
0 upgraded, 1 newly installed, 0 to remove and 684 not upgraded.
Need to get 0 B/292 kB of archives.
After this operation, 716 kB of additional disk space will be used.
Selecting previously unselected package nfs-common.
(Reading database ... 188676 files and directories currently installed.)
Unpacking nfs-common (from .../nfs-common_1%3a1.2.6-3_amd64.deb) ...
Processing triggers for man-db ...
Setting up nfs-common (1:1.2.6-3) ...

Creating config file /etc/idmapd.conf with new version

Creating config file /etc/default/nfs-common with new version
insserv: script vboxdrv: service vboxdrv already provided!
[FAIL] Starting NFS common utilities: statd idmapd failed!
invoke-rc.d: initscript nfs-common, action "start" failed.
dpkg: error processing nfs-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 nfs-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

Try this horribly ugly blindly sledgehammering of stuff I don't understand:
vi /etc/default/nfs-common
NEED_STATD=yes
NEED_IDMAPD=no
NEED_GSSD=no

apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 684 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nfs-common (1:1.2.6-3) ...
insserv: script vboxdrv: service vboxdrv already provided!
[ ok ] Starting NFS common utilities: statd.

Since for whatever reason idmapd is shitting itself, this works... assuming you're okay with nfsv3.  I am. 

(Note: I tried all the fun suggestions in the various threads with the error; none mentioned screwing with that file, so, if this breaks something horribly, do note it in the comments. My nfs shares don't mind being dirty, so I'm unlikely to care much at this point; especially since I should just do a clean install to Wheezy.  Still, this was frustrating enough to search on and not find any workable solution that... well, here we are.)

Unhelpful References:


No comments: