从 Ubuntu 11.10 (Oneiric Ocelot) 升级到 12.04LTS (Precise Pangolin) 后,会弹出一个窗口,提示升级失败,我应该运行sudo dpkg --configure -a
.
运行该命令给了我:
sudo dpkg --configure -a
dpkg: error: parsing file '/var/lib/dpkg/status' near line 55497 package 'indicator-displex':
blank line in value of field 'Description
Run Code Online (Sandbox Code Playgroud)
尝试运行apt-get install -f
给我带来了许多依赖错误以及相同的 dpkg 错误。
查看/var/lib/dpkg/status
第 55497 行错误中提到的文件后,我看到了以下内容:
Package: indicator-displex
Priority: optional
Section: GTK, system, admin
Installed-Size: 1524
Maintainer: Arick McNiel <arickmcniel AT yahoo DOT com>
Architecture: all
Version: 0.1
Depends: python, python-gtk2, python-central (>= 0.6.1), python-notify, python-appindicator, compiz
Size: 130748
Description: DisPlex
AppIndicator to interface with Compiz / Xrandr / Emerald.
.
The Displex (indicator-displex) application provides an AppIndicator to the display
interfaces of Compiz / Emerald / and Gnome Display Manager. In doing so, it hopes
to provide a product that is helpful for those applications without an AppIndicator
interface AND to minimize icons by combinine some functionality of the
gnome-display-manger AppIndicator icon.
DisPlex has the following features:
-Uses the new Ubuntu AppIndicator interface
-Provides interface for: COMPIZ, EMERALD, GNOME Display Properties
-Enables you to change decorators from the AppIndicator Tray
-Enables you to activate / deactivate Compiz Effects
-Enables you to switch window manager
-Provides the ability to hide/show desktop icons
Homepage: https://launchpad.net/displex; http://sourceforge.net/projects/displex/
Run Code Online (Sandbox Code Playgroud)
我备份了该文件,然后在文本编辑器中打开它。(sudo vi /var/lib/dpkg/status
,然后:55497
转到该行。)
.
在“DisPlex 具有以下功能:”之前的空行中添加一个单一字符解决了该问题。
(如果不熟悉 vi...这里有一个提示:A
追加行,添加空格和句点ESC
以退出插入模式,然后:wq
写入并退出)
然后我就能跑了sudo dpkg --configure -a
。运行后sudo apt-get -f install
,我看到该文件出现类似的错误/var/lib/dpkg/available
。.
我在错误中提到的行上向该文件添加了一个,现在它基本上可以工作了。
我遇到了与此错误相同的最后一个问题。
Unpacking libatk-adaptor-schemas (from .../libatk-adaptor-schemas_2.4.0-1ubuntu2_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libatk-adaptor-schemas_2.4.0-1ubuntu2_amd64.deb (--unpack):
trying to overwrite '/usr/share/glib-2.0/schemas/org.a11y.atspi.gschema.xml', which is also in package libatk-adaptor 2.2.1-0ubuntu1
ErrorMessage: trying to overwrite '/usr/share/glib-2.0/schemas/org.a11y.atspi.gschema.xml', which is also in package libatk-adaptor 2.2.1-0ubuntu1
Run Code Online (Sandbox Code Playgroud)
要解决此问题:
sudo apt-get update
sudo apt-get dist-upgrade
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
36654 次 |
最近记录: |