Calvin's Tech Space

成于坚忍,毁于浮躁

   :: 首页 :: 联系 :: 聚合  :: 管理
安装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/
posted on 2010-04-02 19:25 calvin 阅读(5727) 评论(1)  编辑  收藏 所属分类: Linux

Feedback

# re: unmet dependencies和E: Sub-process /usr/bin/dpkg returned an error code (1)的循环错误 2012-05-20 21:36 心灵小屋
ubuntu12.04中这个问题怎么解决呢  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: