LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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


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

Rep: Reputation: Disabled
/var/lib/dpkg/status corrupted


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

Last edited by irahkob; 11-06-2011 at 03:41 PM.
 
Old 11-06-2011, 06:07 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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.
__________________
 
Old 11-06-2011, 06:40 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate. Please continue here: http://www.linuxquestions.org/questi...working-912217
 
  


Closed Thread


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
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 10:24 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 11:28 AM
[SOLVED] error in /var/lib/dpkg/status fadinader Linux - General 4 08-09-2010 10:29 PM
apt cannot be upgraded, and problem with /var/lib/dpkg/status San-Raal Debian 9 04-08-2008 08:41 AM


All times are GMT -5. The time now is 04:51 AM.

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