LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-01-2004, 10:28 PM   #1
dezert_fox
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian (sarge)
Posts: 23

Rep: Reputation: 15
dpkg is dead! error in /var/lib/dpkg/available


Apparently /var/lib/dpkg/available has all sort of problems... I've been going through trying to fix them for a while now, and they just don't stop coming. Is there a way to regenerate the file?
 
Old 09-01-2004, 10:37 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
try

dpkg --clear-avail
apt-get update

The available file Contains the packages available from Debian. The status file is more important, and contains the status of your system, and cannot be rebuilt.
 
1 members found this post helpful.
Old 09-02-2004, 01:04 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by leonscape
The status file is more important, and contains the status of your system, and cannot be rebuilt.
You always have the backup file that is created to fall back on if it gets corrupted, it saved my ass once on a Woody install.
Code:
[HappyTux:/home/stephen]# ll /var/lib/dpkg/status*
-rw-r--r--  1 root root 896K 2004-09-01 19:46 /var/lib/dpkg/status
-rw-r--r--  1 root root 896K 2004-09-01 19:46 /var/lib/dpkg/status-old
 
Old 05-16-2006, 04:53 PM   #4
kdb4
LQ Newbie
 
Registered: May 2006
Posts: 5

Rep: Reputation: 1
I was having similar problems with /var/lib/dpkg/status file, I vi the file and there were misspelling and bad characters in it. Along with other strange things that have been occuring today, I happened to think about running memtest86+, (a neat little memory test from memtest86.org that boots from a cd), and within a few seconds it started reporting lots of ram errors. I replaced the ram and reloaded the whole system. Looks fine now.....

Here are some of the errors I was getting:

debianKentSarge:/var/lib/dpkg# apt-get install nvidia-glx
Reading Package Lists... Done
Segmentation faulty Tree... 50%

debianKentSarge:/var/lib/dpkg# apt-get remove nvidia-glx
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
nvidia-glx
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 9822kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... E: Sub-process /usr/bin/dpkg received a segmentation fault.
 
1 members found this post helpful.
Old 11-22-2011, 10:28 AM   #5
bzhao
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
I also met this problem. I resume the available file as the second post. As the status file sound still good so far.
The problem was caused the bad pc in my office. I will memtest to see if it has ram issue.
Thanks for all the posters here!

Cheers!
 
  


Reply



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
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 24 04-12-2019 10:42 AM
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
dpkg error, need help cheater1034 Linux - Software 3 05-10-2005 12:49 AM
Severe dpkg Error KneeLess Debian 1 02-08-2004 02:02 AM
Debian dpkg error aliensub Linux - Distributions 1 02-24-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:46 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