LinuxQuestions.org
Visit Jeremy's Blog.
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 08-26-2005, 07:39 PM   #1
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
dpkg errors due to bad mem: how to recover?


I was installing another kernel when dpkg segfaulted due to bad ram. I removed the bad modules and reconnected the machine. But now, when I apt-get -f install, I get:

gigante:/var/lib/dpkg# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
kernel-image-2.6.8-2-386 module-init-tools
Suggested packages:
lilo kernel-doc-2.6.8 kernel-source-2.6.8
The following NEW packages will be installed:
module-init-tools
The following packages will be upgraded:
kernel-image-2.6.8-2-386
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/14.1MB of archives.
After unpacking 42.5MB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: failed to open package info file `/var/lib/dpkg/available' for reading: Permission denied
E: Sub-process /usr/bin/dpkg returned an error code (2)
gigante:/var/lib/dpkg#

The same goes for apt-get remove kernel-image-2.6.8-2-386.

It seems like there's something to do with the 'available' file. So:

gigante:/var/lib/dpkg# ls -la
ls: available: Permission denied
total 672
drwxr-xr-x 8 root root 520 2005-08-26 20:23 .
drwxr-xr-x 26 root root 656 2005-08-26 18:47 ..
drwxr-xr-x 2 root root 904 2005-08-26 18:47 alternatives
-rw-r--r-- 1 root root 0 2005-08-26 20:23 available-new
-rw-r--r-- 1 root root 8 2005-07-17 23:21 cmethopt
-rw-r--r-- 1 root root 2424 2005-08-26 19:22 diversions
-rw-r--r-- 1 root root 2325 2005-08-26 19:22 diversions-old
drwxr-xr-x 2 root root 51592 2005-08-26 18:47 info
drwxr-xr-x 5 root root 120 2005-07-17 23:19 methods
drwxr-xr-x 2 root root 48 2005-05-26 14:42 parts
-rw-r--r-- 1 root root 47 2005-07-17 23:24 statoverride
-rw-r--r-- 1 root root 0 2005-07-17 23:19 statoverride-old
-rw-r--r-- 1 root root 306352 2005-08-26 19:28 status
-rw-r--r-- 1 root root 306110 2005-08-26 18:47 status-old
drwxr-xr-x 2 root root 168 2005-05-19 06:26 tmp.ci
drwxr-xr-x 2 root root 72 2005-08-26 19:28 updates

How do I make dpkg rebuild this file?
Thanks!






EDIT: Nevermind. Fixed!

Last edited by bruno buys; 08-26-2005 at 10:47 PM.
 
  


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
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 10:24 AM
Troubles with dpkg and apt-get - bad package TTL_2 Linux - Software 1 08-14-2005 12:49 AM
bad shutdown + tons of errors = bad hdd? Red Squirrel Linux - Hardware 3 11-09-2004 05:48 PM
recover from bad update jeffpoulsen Linux - General 0 02-11-2004 06:47 PM
X Windows--dpkg errors desluscious Linux - Newbie 0 08-27-2003 11:09 PM

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

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