LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2011, 03:11 PM   #1
irahkob
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
Synaptic package manager not working


Hello. I tried installing wine and while doing so there was a power failure. Now i cannot install/update any software either from add/remove or synaptic tool. The error i get is
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.
trying a few sudo commands in terminal helped me identify it as a syntax error in status line 1. But how to correct that? I cannot edit the status or status-old file whatsoever due to some permission problems although i am very much the owner.
using ubuntu 8.10
Please help. God bless you
 
Old 11-06-2011, 05:02 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,880

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
I'm a fairly recent convert to Debian, having spent most of the last twelve years on .rpm based distros, so please take my advice with caution.

In reading your post, I note that synaptic is having trouble with the status list of available packages.
Quote:
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.
So, a two-step solution may help, using dpkg (the low-level packagement application that Synaptic calls on to do it's magic).

First, rebuild the list of available packages. Open a terminal, and, as root,
Code:
dpkg --update-avail /var/lib/dpkg/available
Then repair the broken status file.
Code:
dpkg --merge-available /var/lib/dpkg/status
Note that the *available* and *status* files I've listed are from my Debian 6.0 installation. You should use the Ubuntu paths to those files.

I hope this works for you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Synaptic package manager won't open due to faulty package nine9nine Linux - Software 7 09-15-2011 07:30 PM
[SOLVED] Difference Between Synaptic Package Manager and Update Manager nasser019 Linux - Software 1 07-20-2010 07:12 AM
Want Synaptic package Manager too.. DAVE666 Linux - Newbie 6 01-29-2008 11:13 AM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM


All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration