寻找有关包配置问题的指针。这是 Debian 8 的精简版本(ReadyNAS 6.10.3 在 Netgear RN202 NAS 上运行)。
我认为该问题可能是通过安装第三方 RNXtras PHP7.2 应用程序触发的,该应用程序将默认 PHP 从 5.6 升级到 7.2。当我不久前第一次安装它时,这个组合运行得很好。但从那时起,ReadyNAS(Debian)就在盒子上升级了,在最近完全擦除/安装了 ReadyNAS,然后重新安装了 RNXtras PHP7.2 后,事情就变糟了:两者都卸载了和RNXtras PHP7.2 的安装现在失败 - 与其他安装一样。
现在最主要的症状是这样的:
# apt-get install git
...
insserv: warning: script 'K01ddclient' missing LSB tags and overrides
insserv: Service nfs-common has to be enabled to start service nfs-kernel-server
insserv: Service rpcbind has to be enabled to start service nfs-kernel-server
insserv: exiting now!
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
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:2.11.0-3~bpo8+1) ...
Setting up git (1:2.11.0-3~bpo8+1) ...
Errors were encountered while processing:
nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
# apt-cache policy nfs-kernel-server
nfs-kernel-server:
Installed: 1:1.2.8-9+deb8u1
Candidate: 1:1.2.8-9+deb8u1
Version table:
*** 1:1.2.8-9+deb8u1 500
500 http://security.debian.org jessie/updates/main armel Packages
100 /var/lib/dpkg/status
1:1.2.8-9 500
500 http://mirrors.kernel.org/debian jessie/main armel Packages
# apt-cache policy git
git:
Installed: 1:2.11.0-3~bpo8+1
Candidate: 1:2.11.0-3~bpo8+1
Version table:
*** 1:2.11.0-3~bpo8+1 500
500 https://repos.rnxtras.com/debian/rnx-rnos6 rnx-rnos6/main armel Packages
100 /var/lib/dpkg/status
1:2.1.4-2.1+deb8u10 500
500 http://security.debian.org jessie/updates/main armel Packages
1:2.1.4-2.1+deb8u6 500
500 http://mirrors.kernel.org/debian jessie/main armel Packages
此外,“apt-get remove”等也有类似的错误。
也许这可以通过包固定来解决,但不确定在哪里寻找。
答案1
我不确定,但我想我通过注释掉第三方 RNXtras PHP7.2 应用程序中剩余的存储库(我曾尝试卸载,但没有成功)来修复它,然后清除并重新安装一些东西:
# vi /etc/apt/sources.list.d/rnxtras.list
# deb https://repos.rnxtras.com/debian/rnx-rnos6 rnx-rnos6 main
# apt-get update
# apt-get remove --purge rpcbind nfs-common nfs-kernel-server
# apt-get install rpcbind nfs-common nfs-kernel-server
# apt-get remove --purge git-man git
# apt-get install git
如果有人发现这种方法有任何问题,请告诉我。