错误:在行55497包'indicator-displex'附近分析文件'/ var / lib / dpkg / status'


8

从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错误。

Answers:


4

查看错误/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/

我对此文件进行了备份,然后在文本编辑器中将其打开。(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

要解决此问题:

sudo apt-get update
sudo apt-get dist-upgrade

对不起,我不能赞成你十次。谢谢男人,你让我开心!
lorenzo-s 2012年

@ lorenzo-s非常欢迎!我很高兴可以为您提供帮助^ _ ^
TrinitronX

1
你应该使用sudoedit,而不是sudo vi,反正,vim而不是vi(如果可用)
törzsmókus


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.