安装openoffice后系统依赖异常,安装新软件时均报错:
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
openoffice.org-core: Depends: openoffice.org-common (> 1:3.1.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
执行apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
openoffice.org-common
Suggested packages:
openoffice.org-style-industrial openoffice.org-style-hicontrast openoffice.org-style-tango openoffice.org-style-crystal
openoffice.org-style-oxygen
The following NEW packages will be installed:
openoffice.org-common
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0B/17.1MB of archives.
After this operation, 45.9MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 233700 files and directories currently installed.)
Unpacking openoffice.org-common (from .../openoffice.org-common_1%3a3.1.1-5ubuntu1.1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/openoffice.org-common_1%3a3.1.1-5ubuntu1.1_all.deb (--unpack):
trying to overwrite '/usr/share/icons/hicolor/16x16/mimetypes/openofficeorg3-text.png', which is also in package openoffice.org3.2-freedesktop-menus 0:3.2-9472
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
/var/cache/apt/archives/openoffice.org-common_1%3a3.1.1-5ubuntu1.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
解决:
dpkg -i --force-overwrite /var/cache/apt/archives/openoffice.org-common_1%3a3.1.1-5ubuntu1.1_all.deb
参考:
http://www.linuxquestions.org/questions/debian-26/unmet-dependencies-582174/
http://ubuntuforums.org/showthread.php?t=1229506
http://hostechs.com/tag/usrbindpkg-returned-an-error-code-1/