Failed to install nfs-kernel-server package on KVM kernels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux-kvm (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Won't Fix
|
Undecided
|
Unassigned | ||
Disco |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
When trying to install the nfs-kernel-server package on a KVM node running with X/X-KVM kernel, it will fail with service dependency issue.
This is affecting the ubuntu_vfat_stress and ubuntu_ramfs_stress test.
$ sudo apt-get install nfs-kernel-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
nfs-kernel-server is already the newest version (1:1.2.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up nfs-kernel-server (1:1.2.
A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
nfs-server.service couldn't start.
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript nfs-kernel-server, action "start" failed.
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
Aug 22 03:27:46 zeppo systemd[1]: Dependency failed for NFS server and services.
Aug 22 03:27:46 zeppo systemd[1]: nfs-server.service: Job nfs-server.
Aug 22 03:27:49 zeppo systemd[1]: Dependency failed for NFS server and services.
Aug 22 03:27:49 zeppo systemd[1]: nfs-server.service: Job nfs-server.
Aug 22 03:27:50 zeppo systemd[1]: Dependency failed for NFS server and services.
Aug 22 03:27:50 zeppo systemd[1]: nfs-server.service: Job nfs-server.
Aug 22 03:29:41 zeppo systemd[1]: Dependency failed for NFS server and services.
Aug 22 03:29:41 zeppo systemd[1]: nfs-server.service: Job nfs-server.
Aug 22 03:29:42 zeppo systemd[1]: Dependency failed for NFS server and services.
Aug 22 03:29:42 zeppo systemd[1]: nfs-server.service: Job nfs-server.
dpkg: error processing package nfs-kernel-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Log from journalctl -xe: http://
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.4.0-1031-kvm x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Wed Aug 22 03:28:11 2018
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- Failed to install nfs-kernel-server package on X-KVM + Failed to install nfs-kernel-server package on X/X-KVM |
description: | updated |
Changed in linux-kvm (Ubuntu): | |
status: | New → Confirmed |
Changed in ubuntu-kernel-tests: | |
assignee: | Po-Hsu Lin (cypressyew) → nobody |
Aug 22 04:15:58 zeppo mount[3580]: mount: unknown filesystem type 'nfsd'
Can you check these please: 4.4.0-138- generic/ kernel/ fs/nfsd/ nfsd.ko
root@xenial-nfs:~# find /lib/modules -name 'nfsd.ko'
/lib/modules/
root@xenial-nfs:~# dpkg -S /lib/modules/ 4.4.0-138- generic/ kernel/ fs/nfsd/ nfsd.ko 4.4.0-138- generic: /lib/modules/ 4.4.0-138- generic/ kernel/ fs/nfsd/ nfsd.ko
linux-image-
root@xenial-nfs:~#
maybe your running kernel has no nfsd module?
This xenial up-to-date vm I created for just this test is running:
root@xenial-nfs:~# uname -a
Linux xenial-nfs 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux