2

nfs-kernel-server尝试在我的 Ubuntu Server 10.04.4 LTS中安装时收到以下错误消息。

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 上搜索,但无法解决。有任何想法吗?

4

3 回答 3

5

为此提交了一个错误:https ://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1023382

我最终做的是

apt-get remove --purge nfs-common
apt-get install nfs-common nfs-kernel-server

然后将我的配置文件放回原处,一切正常。

于 2012-12-05T18:43:08.090 回答
1

我现在不小心在 debian 9 中发现了同样的错误......所以也许有人也可以发现它很有用......

我已经通过另外删除 rpcbind 服务并重新安装它来解决这个问题

apt-get remove --purge rpcbind nfs-common &&  apt-get install nfs-common
于 2019-10-10T14:29:12.093 回答
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/
于 2012-06-08T16:07:24.270 回答