自从从 8.04->10.04 升级到 12.04 后,我无法再升级或安装新的软件包。
我确实收到了大量错误,但第一个是 resyslog:
root@sub:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
9 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up rsyslog (5.8.6-1ubuntu8.6) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of ubuntu-minimal:
ubuntu-minimal depends on rsyslog; however:
Package rsyslog is not configured yet.
所以我尝试重新安装所有内容:
apt-get install --reinstall dpkg
这引发了:
Processing triggers for man-db ...
Setting up dpkg (1.16.1.2ubuntu7.5) ...
Setting up rsyslog (5.8.6-1ubuntu8.6) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
No apport report written because MaxReports is reached
dpkg: dependency problems prevent configuration of ubuntu-minimal:
ubuntu-minimal depends on rsyslog; however:
Package rsyslog is not configured yet.
所以我相信如果我能修复 rsyslog 我们就会取得一些进展 :/
答案1
跑步:
sudo dpkg -r rsyslog
无论是否成功,运行:
gksudo gedit /var/lib/dpkg/status
在生成的 gedit 中,删除以以下内容开头的整个部分
Package : rsyslog
关闭并运行更新。