LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2007, 03:35 PM   #1
RN87
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Rep: Reputation: 0
Debian Packages System Broken, Plz Help (Ubuntu)


Hi, when I try to use the apt-get/synaptic/wtv utilities, I get this error:


$ sudo apt-get check
Reading package lists... Error!
E: Problem parsing dependency Replaces
E: Error occurred while processing libvorbisfile3 (NewVersion1)
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.


I tried to do sudo dpkg --clear-avail && sudo apt-get update, but I still get the same error.



I'm on gutsy...
 
Old 09-15-2007, 05:05 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Edit the file /var/lib/dpkg/status searching for the section of the libvorbisfile3 then change the Version: line that contains (NewVersion1) to what the version should be, on my install it looks like this.

Code:
apt-cache policy libvorbisfile3
libvorbisfile3:
  Installed: 1.2.0.dfsg-2
  Candidate: 1.2.0.dfsg-2
  Version table:
 *** 1.2.0.dfsg-2 0
        990 http://ftp2.de.debian.org testing/main Packages
        600 http://ftp2.de.debian.org sid/main Packages
        100 /var/lib/dpkg/status
So for me the line is Version: 1.2.0.dfsg-2 change yours to match the output you get from the above now everything should work again.
 
Old 10-02-2007, 10:44 AM   #3
Lfever
LQ Newbie
 
Registered: Sep 2006
Location: PA, USA
Distribution: PCLinuxOS LXDE, Linux Mint 11
Posts: 4

Rep: Reputation: 0
Unhappy

I am running Feisty and have a similar problem that when using apt-get returns the following errors:

W: Encountered status field in a non-version description
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.
-------------------------------------------------------------------------
dpkg -l returns:

dpkg-query: parse error, in file `/var/lib/dpkg/status' near line 14670 package `libscim8c2a':
-------------------------------------------------------------------------
When I try to run the Package Manager I get:

Could not initialize the package information

A unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

'W:Encountered status field in a non-version description, 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.'
-------------------------------------------------------------------------
I sure could use some help, I've been trying to solve this problem for about 2 weeks and have gotten no where. Any help would be greatly appreciated.

Thank
lfever
 
Old 10-02-2007, 11:36 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Edit the /var/lib/dpkg/status file to correct the error near the line 14670 just look at the other entries nearby to see if you can figure out what it should be there or you can always try and copy the var/lib/dpkg/status.old file backup to the var/lib/dpkg/status I would check the backup first to make sure that the error is not present in it as well.
 
Old 10-03-2007, 11:21 PM   #5
Lfever
LQ Newbie
 
Registered: Sep 2006
Location: PA, USA
Distribution: PCLinuxOS LXDE, Linux Mint 11
Posts: 4

Rep: Reputation: 0
Thumbs up Thanks

Quote:
Originally Posted by HappyTux View Post
Edit the /var/lib/dpkg/status file to correct the error near the line 14670 just look at the other entries nearby to see if you can figure out what it should be there or you can always try and copy the var/lib/dpkg/status.old file backup to the var/lib/dpkg/status I would check the backup first to make sure that the error is not present in it as well.
I couldn't figure out what problem was with the dpkg status file so I replaced it with the status-old and all is well.

Thanks again HappyTux
lfever
 
Old 11-17-2007, 06:34 PM   #6
ejs7597
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
Newbe - how do you replace the status-old file?

Quote:
Originally Posted by Lfever View Post
I couldn't figure out what problem was with the dpkg status file so I replaced it with the status-old and all is well.

Thanks again HappyTux
lfever
My status file is also corrupt. It says I need a : after M in line 8180. If I try to open the file to edit it, it says it is a binary file and I can't get it to open. How can I replace the status file with my status file? I am new and don't know the commands needed to replace the file in terminal.
 
Old 11-18-2007, 02:17 AM   #7
Lfever
LQ Newbie
 
Registered: Sep 2006
Location: PA, USA
Distribution: PCLinuxOS LXDE, Linux Mint 11
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by ejs7597 View Post
My status file is also corrupt. It says I need a : after M in line 8180. If I try to open the file to edit it, it says it is a binary file and I can't get it to open. How can I replace the status file with my status file? I am new and don't know the commands needed to replace the file in terminal.
Code:
 sudo gedit /var/lib/dpkg/status
Enter your password
Edit the line that needs changed
Save and close.

lfever

Last edited by Lfever; 11-18-2007 at 09:41 PM.
 
  


Reply

Tags
apt-get, deb, debian, gutsy, packages, ubuntu



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
fix a debian broken system el_pajaro! Debian 6 06-03-2009 01:23 AM
Continuing to upgrade and install new packages with broken dependencies in the system nautilus Debian 3 06-13-2007 06:59 AM
Debian packages and Ubuntu extrasolar Ubuntu 7 07-31-2006 03:51 PM
Debian unstable - unfixable broken packages after update. Imek Debian 4 07-20-2005 12:23 PM
Ubuntu packages on Debian fatman Debian 10 03-14-2005 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:57 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
Open Source Consulting | Domain Registration