自从从 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,我们就会有所作为:/
跑:
成功与否,运行:
在生成的 gedit 中,删除以开头的整个部分
Package : rsyslog
关闭并运行更新。