我尝试通过以下命令安装 nfs-kernel-server:
apt install -y nfs-common nfs-kernel-server
它失败并出现以下错误:
update-rc.d: error: insserv rejected the script header
dpkg: error processing package nfs-kernel-server (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu21) ...
Errors were encountered while processing:
nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
尝试了我在论坛上找到的内容:
apt remove -y rpcbind nfs-common nfs-kernel-server keyutils libtirpc1
和
apt remove nfs-common nfs-kernel-server
但没有任何成功,总是失败。
这是新鲜的硬化图像。我还刷新了 iptables 并评论了hosts.deny以确保不是这样。
谢谢
答案1
解决方案:
apt purge -y rpcbind
apt install -y nfs-kernel-server