After running an upgrade from Ubuntu 11.10 (Oneiric Ocelot) to 12.04LTS (Precise Pangolin), a window popped up saying that the upgrade failed and that I should run sudo dpkg --configure -a
.
Running that command gave me:
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
Trying to run apt-get install -f
gives me many dependency errors along with that same dpkg error.
Best Answer
After looking at the file mentioned in the error
/var/lib/dpkg/status
on line 55497, I saw this:I made a backup of this file, and then opened it in a text editor. (
sudo vi /var/lib/dpkg/status
, then:55497
to go to that line.)Adding a single
.
to the blank line before "DisPlex has the following features:" fixed the problem.(if unfamiliar with vi... here's a hint:
A
to append line, add a space & periodESC
to exit insert mode, then:wq
to write & quit)I was then able to run
sudo dpkg --configure -a
. After runningsudo apt-get -f install
, I saw a similar error for the file/var/lib/dpkg/available
. I added a single.
to this file on the line mentioned in the error, and now it mostly works.I ran into one last problem which is the same as this bug.
To fix this problem: