오류 : 55497 행 ‘indicator-displex’근처의 파일 ‘/ var / lib / dpkg / status’구문 분석 중 11.10 (Oneiric Ocelot)에서

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

실행하려고하면 apt-get install -f동일한 dpkg 오류와 함께 많은 종속성 오류가 발생합니다.



답변

/var/lib/dpkg/status55497 행 의 오류 에 언급 된 파일을보고 난 후 ,

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

답변

당신은 또한 실행할 수 있습니다 :

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

런치 패드 버그 보고서에서 :

런치 패드의 버그 보고서