LinuxQuestions.org
Register a domain and help support LQ
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-06-2009, 01:05 PM   #1
cmr26
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
dpkg fatal error unable to open files list file Stale NFS file handle


This morning when attempting to upgrade (aptitude update; followed by aptitude safe-upgrade) my system I started receiving the following error:

Preconfiguring packages ...
(Reading database ... dpkg: unrecoverable fatal error, aborting:
unable to open files list file for package `apache2-doc': Stale NFS file handle
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:

It doesn't seem to matter what repository I use or what particular package that I attempt to upgrade (all or just a single package). (In particular, apache2-doc is not even a package being upgraded, although it is installed on the system.) I have rebooted, run apt-get clean, run apt-get check, etc. to no avail.

I am running a standard Debian (5.0.2/Lenny) desktop PC and am not running any NFS processes, client or server.

Are there any Debian experts out there that can give me a clue?

Thanks!

cmr
 
Old 09-06-2009, 01:11 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
What happens when you do a
Code:
aptitide clean
then again update and safe-upgrade
 
Old 09-06-2009, 01:40 PM   #3
cmr26
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, but that doesn't seem to make any difference. Just to be certain I tried once again, but I still receive the same error.
 
Old 09-06-2009, 01:46 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
try
Code:
rm /var/lib/dpkg/info/apache2-doc.list
 
Old 09-06-2009, 04:07 PM   #5
cmr26
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks! That was just the hint that I needed.

When I attempted to remove the file, apache2-doc.list, I received the same error about a stale NFS file handle. It turned out that the file system was corrupted and several of the list files either were missing. `rm` and `rm -f` wouldn't work so I had to run fsck & repair the file system. After that, I discovered several more list files that were corrupted. I ran `dpkg -i` manually to reinstall the packages with missing/corrupted list files (after removing the corrupted files). After that I was able to update the system successfully with aptitude.

cmr
 
Old 09-06-2009, 04:10 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
Glad to see the problem is solved.
You can mark the thread solved if you want.
 
  


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
ls: cannot access /etc/resolv.conf: stale nfs file handle - but i'm not using nfs schneidz Linux - General 4 10-02-2009 02:39 PM
Stale NFS file handle Error karthickmk2 Linux - Newbie 1 08-04-2009 06:40 PM
stale NFS file handle error hardian_97 Linux - Networking 0 10-02-2005 10:09 PM
NFS stale file handle master Linux - Software 7 06-14-2005 09:49 AM
Stale NFS file handle toneys Linux - Networking 1 10-24-2004 02:36 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration