当我打开软件中心时,系统提示我无法使用它,因为它已损坏,需要维修。首先,我尝试按照系统提示自动执行此操作。我输入了 root 密码,然后安装失败。
installArchives() failed: reconfiguring packages...
reconfiguring packages...
reconfiguring packages...
reconfiguring packages...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 275048 files and directories currently installed.)
Unpacking wine1.4-i386 (from .../wine1.4-i386_1.4-0ubuntu4.1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/wine1.4-i386_1.4-0ubuntu4.1_i386.deb (--unpack):
trying to overwrite '/usr/bin/wine', which is also in package wine1.5 1.5.5-0ubuntu1~ppa1~oneiric1+pulse17
No apport report written because MaxReports is reached already
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/wine1.4-i386_1.4-0ubuntu4.1_i386.deb
Error in function:
dpkg: dependency problems prevent configuration of wine1.4-common:
wine1.4-common depends on wine1.4 (= 1.4-0ubuntu4.1); however:
Package wine1.4 is not installed.
dpkg: error processing wine1.4-common (--configure):
dependency problems - leaving unconfigured
我现在应该做什么?首先,我尝试重新安装中心,但由于与此处列出的 1.4 依赖项相同,因此失败。我在 Google 上搜索了帮助,尽管我完全不懂 Linux,但我还是尝试了一些建议:我尝试编辑 /var/lib/dpkg/status 中的 dpkg 状态,但由于找不到文件而失败。我尝试清除 wine/*,但也有未解决的依赖项。真是一团糟。
答案1
试试sudo apt-get -f install
。如果不能解决问题,再试试sudo apt-get autoclean
。我会尝试第三种方法sudo apt-get autoremove wine1.4
。