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