fails to configure because statd.service is missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfs-utils (Ubuntu) |
Expired
|
High
|
Unassigned | ||
Vivid |
Expired
|
High
|
Unassigned |
Bug Description
I use systemd (all from Ubuntu packages), and nfs-common fails to configure. root cause is
# sh -x /var/lib/
+ set -e
+ ucf --three-way /usr/share/
+ ucf --three-way /usr/share/
+ getent passwd statd
+ dpkg --compare-versions ge 1:1.0.7-10
+ chown statd: /var/lib/nfs/sm /var/lib/nfs/sm.bak /var/lib/nfs
+ [ -f /var/lib/nfs/state ]
+ chown statd /var/lib/nfs/state
+ [ != ]
+ dpkg --compare-versions lt 1:1.1.0-14
+ dpkg-statoverride --list /sbin/mount.nfs
+ dpkg --compare-versions lt-nl 1:1.2.0-2ubuntu1
+ dpkg --compare-versions lt-nl 1:1.2.4-1ubuntu3
+ [ -f /lib/init/
+ [ -x /etc/init.d/statd ]
+ [ -x /etc/init.d/statd ]
+ [ -e /etc/init/
+ [ -n ]
+ _dh_action=start
+ invoke-rc.d statd start
Failed to issue method call: Unit statd.service failed to load: No such file or directory.
invoke-rc.d: initscript statd, action "start" failed.
+ exit 6
I do not have /etc/init.d/statd, but i do have /etc/init/
I "fixed" this by changing || to && in the following line of nfs-common.
if [ -x "/etc/init.d/statd" ] || [ -e "/etc/init/
Same fix twice more for gssd and idmapd
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: nfs-common 1:1.2.8-9ubuntu1.1
ProcVersionSign
Uname: Linux 3.16.0-25-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Dec 2 11:07:43 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-02-04 (1032 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: nfs-utils
UpgradeStatus: Upgraded to utopic on 2014-09-27 (66 days ago)
Yes. This is on the list of packages requiring porting this cycle for systemd, available here: people. canonical. com/~jhunt/ systemd/ packages- to-convert/
http://