错误:在55497包’indicator-displex’附近解析文件’/ var / lib / dpkg / status’
在从Ubuntu 11.10(Oneiric Ocelot)升级到12.04LTS(精确穿山甲)后,弹出一个窗口说升级失败,我应该运行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
尝试运行apt-get install -f
会给我带来很多依赖性错误以及同样的dpkg错误。
在查看55497行错误/var/lib/dpkg/status
提到的文件后,我看到了这个:
Package: indicator-displex Priority: optional Section: GTK, system, admin Installed-Size: 1524 Maintainer: Arick McNiel 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/
我备份了这个文件,然后在文本编辑器中打开它。 ( sudo vi /var/lib/dpkg/status
,然后:55497
转到该行。)
添加一个.
在“DisPlex具有以下function:”之前的空白行中修复了问题。
(如果不熟悉vi ……这里有一个提示: A
要追加行,添加一个空格和句点ESC
退出插入模式,然后:wq
写入&退出)
然后我能够运行sudo dpkg --configure -a
。 在运行sudo apt-get -f install
,我看到了文件/var/lib/dpkg/available
的类似错误。 我加了一个.
在错误中提到的行上的这个文件,现在它主要工作。
我遇到了最后一个与此bug相同的问题。
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
要解决此问题:
sudo apt-get update sudo apt-get dist-upgrade
你也可以试试跑步:
sudo fuser -vki /var/lib/dpkg/lock sudo dpkg --configure -a
这对我有用。 它会杀死锁定dpkg的进程。
(另见https://bugs.kde.org/show_bug.cgi?id=284962 )
我有同样的问题。 运行以下修复它为我:
sudo dpkg --remove libatk* sudo apt-get -f install
从启动板错误报告:
Launchpad上的错误报告