PDA

View Full Version : [ubuntu] Package header issue preventing opening of Synaptic Package manager



kingzcid3
August 17th, 2009, 02:30 PM
Following a forced reboot it appears that I've managed to corrupt some package(s) hence the error below. This error is preventing me from downloading new apps as the Update Manager and Synaptic Package Manager applications no longer seem to be working. Help! Any advice on what to do is very welcome. Thanks.

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.

ptn107
August 17th, 2009, 04:13 PM
try

sudo aptitude -f install
or

sudo dpkg --configure -a

Soul-Sing
August 17th, 2009, 04:36 PM
Try:

sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update

ORBstacle
November 15th, 2009, 03:23 PM
http://ubuntuforums.org/showthread.php?t=453824

brianthefolksinger
January 12th, 2010, 07:13 AM
I got the same error message, not sure what all was going on, appeared after a couple days with no boot and segmentation error meassages.. then it finally rebooted after I went through maybe 48 hrs of memtest (finally cancelled it), but booted then successfully/mysteriously after forcing a hard-drive test.. but had both the package error icon (with above error message) and new hardware driver icon up on the bar. No new drivers though, but attempt to run package manager got the same error message again.. tried some of the solutions.. no go.. what did work was I openned nautilus as root, (sudo nautilus) and deleted the status file ( /var/lib/dpkg/status in the error) which was somehow corrupted.. couldn't open it with gedit, and renamed the status-old file to status, then used sudo gedit to save it again as status-old so I still had it as a backup if this happened again.

now the error icon is gone and synaptic starts fine (so far) haven't tried rebooting yet.. not sure it will and stuff to do first!

I'd like to add that I know nothing about this stuff, technically, just an educated quess that worked, this time.

hmm, I also redid the repositories list as suggested above, though it didn't seem to fix the problem as this did, maybe it helped.. still, I did do it, so should include it.
I am also running ibex on this machine
peace

mirinamulhaq
April 14th, 2011, 06:05 PM
Try:

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
yes it worked beautifully.