nfs-kernel-server 安装:文件不存在

nfs-kernel-server 安装:文件不存在

我对 Ubuntu 非常陌生,需要在 EdX 平台上工作。我需要在 Ubuntu 12.04 上安装 NFS 客户端。我使用了以下

stuti@stuti:/$ sudo apt-get install nfs-kernel-server

但是这给了我如下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  nfs-common
The following NEW packages will be installed:
  nfs-common nfs-kernel-server
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/355 kB of archives.
After this operation, 1,222 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously unselected package nfs-common.
(Reading database ... 200367 files and directories currently installed.)
Unpacking nfs-common (from .../nfs-common_1%3a1.2.5-3ubuntu3.1_i386.deb) ...
Selecting previously unselected package nfs-kernel-server.
Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.5-3ubuntu3.1_i386.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up nfs-common (1:1.2.5-3ubuntu3.1) ...
statd start/running, process 4574
gssd stop/pre-start, process 4603
idmapd start/running, process 4643
Setting up nfs-kernel-server (1:1.2.5-3ubuntu3.1) ...
update-rc.d: /etc/init.d/nfs-kernel-server: file does not exist
dpkg: error processing nfs-kernel-server (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

我努力了

sudo apt-get autoremove nfs-kernel-server
sudo apt-get autoremove nfs-common

此后,我尝试安装,但仍然出现相同的错误。apt-get update或者upgrade也没有帮助并出现相同的错误。

我不知道在哪里可以找到输出中提到的这个丢失的文件。我尝试用 Google 搜索这个问题,但我找到的解决方案都没有帮助,或者我无法理解其中的一些。

任何帮助都将不胜感激。提前感谢您的时间和关注。

答案1

尝试:

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

相关内容