尝试在我的Ubuntu Server 10.04.4 LTS中安装nfs-kernel-server
时收到以下错误消息。
Setting up nfs-common (1:1.2.0-4ubuntu4.2) ...
dpkg: error processing nfs-common (--configure):
subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of nfs-kernel-server:
nfs-kernel-server depends on nfs-common (>= 1:1.0.8-1); however:
Package nfs-common is not configured yet.
dpkg: error processing nfs-kernel-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nfs-common
nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试在Google上搜索,但无法解决。有什么想法吗?
答案 0 :(得分:3)
为此提交了一个错误:https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1023382
我最终做的是
apt-get remove --purge nfs-common
apt-get install nfs-common nfs-kernel-server
然后将我的配置文件放回原位,一切正常。
答案 1 :(得分:1)
我现在不小心偶然发现了debian 9中的相同错误... 所以也许有人也会发现它有用...
我通过另外删除rpcbind服务并重新安装来解决此问题
apt-get remove --purge rpcbind nfs-common && apt-get install nfs-common
答案 2 :(得分:0)
在bash中尝试这个
xxxxx@ubuntu:~$ sudo apt-get install nfs-common
这将安装nfs-common。然后返回并尝试安装您的nfs内核服务器。如果已安装nfs-common,请运行以下命令并粘贴输出
xxxxx@ubuntu:~$ dpkg -L nfs-common | grep /etc/init.d/