红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

Ubunt 8.04 的地雷

发布时间:2008-03-04 00:28:57来源:红联作者:Distance
昨天升级的时候,遇到了openoffice.org-hyphenation-en-us与deskbar-applet地雷,搜寻了一下,已经有解决的办法。

openoffice.org-hyphenation-en-us,可能会出现例如:

dpkg:处理/var/cache/apt/archives/openoffice.org-hyphenation-en-us_2.3.1-1_all.deb (--unpack)时出错:
正试图覆盖“/usr/share/myspell/dicts/hyph_en_US.dic”,它属于套件openoffice.org-hyphenation
在处理时有错误发生:
/var/cache/apt/archives/openoffice.org-hyphenation-en-us_2.3.1-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

之类的。官方建议的修正方法如下:
# wget http://debian.mirror.inra.fr/debian/pool/main/h/hyphen/openoffice.org-hyphenation-en-us_2.3-5_all.deb

# sudo dpkg --force-all -i openoffice.org-hyphenation-en-us_2.3-5_all.deb

deskbar-applet,应该会出现这堆:

正在设定deskbar-applet (2.21.92-0ubuntu1) ...
file does not exist: /usr/lib/python2.5/site-packages/deskbar/__init__.py
file does not exist: /usr/lib/python2.5/site-packages/deskbar/core/BrowserMatch.py
.....
pycentral: pycentral bccompile: error byte-compiling package `deskbar-applet'
pycentral bccompile: error byte-compiling package `deskbar-applet'
dpkg:处理deskbar-applet (--configure)时出错:
子程序?post-installation script?返回了错误号?1

解决办法是先移除再安装一次:

# sudo apt-get remove deskbar-applet python-pyatspi

# sudo apt-get install deskbar-applet python-pyatspi

搞定收工。
文章评论

共有 0 条评论