有人能帮忙吗?我正在尝试升级,但收到有关 nagios-nrpe-server 和 bind 的错误消息。
以下是控制台输出:
>apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up nagios-nrpe-server (2.12-5ubuntu1.2) ...
invoke-rc.d: initscript nagios-nrpe-server, action "start" failed.
dpkg: error processing nagios-nrpe-server (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up bind9 (1:9.8.1.dfsg.P1-4ubuntu0.8) ...
* Starting domain name service... bind9 [fail]
invoke-rc.d: initscript bind9, action "start" failed.
dpkg: error processing bind9 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
nagios-nrpe-server
bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)
这是一台实时网络服务器,托管了数百个域名,因此我非常担心做任何会损坏它的事情。我每晚都会备份,但让托管公司恢复数据非常麻烦,可能需要几个小时,所以我非常担心冒险。
短暂性脑缺血。
答案1
你应该能够只安装修复程序,使用apt-get install -y --only-upgrade openssl libssl1.0.0
如果失败了,您就需要实际修复您的软件包,去查找 apt 日志以了解它们失败的原因,然后根据这些日志修改您的帖子。