dpkg/apt-get/aptitude broke after I fixed corrupted filesystem
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
dpkg/apt-get/aptitude broke after I fixed corrupted filesystem
Disaster struck.
Power went out (no, we don't have a UPS) while my wife was working on her computer. The root partition (ext3) took a hit via a corrupted journal. I did manage to fix the filesystem via an alternate superblock, but the fsck command threw a boat load of things in /lost+found, and "jiggled" a few other filenames about a bit, and I seem to have a problem with dpkg/apt-get/aptitude:
Namely, anything I do via dpkg/apt-get/aptitude throws the following error:
/* begin error message */
dpkg: serious warning: files list file for package `libxalan2-java-gcj' missing, assuming package has no files currently installed.
dpkg: serious warning: files list file for package `xserver-xorg-video-all' missing, assuming package has no files currently installed.
dpkg: error processing /var/cache/apt/archives/libxalan2-java-gcj_2.7.1-2_i386.deb (--unpack):
files list file for package `rplay-client' contains empty filename
Errors were encountered while processing:
/var/cache/apt/archives/libxalan2-java-gcj_2.7.1-2_i386.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
/* end error message */
Now, I back up /var/cache/debconf, but that's about it for the dpkg-related files. I'm a bit tired right now, and can't really afford to make any mistakes... It seems to me that the errors are with the dpkg files lists for the packages mentioned.
How would I go about fixing this problem?
((PS: don't suggest that I reinstall the system, it isn't going to happen))
Like I had said in my original posting, any activity with dpkg/apt-get/aptitude threw the error listed. Attempts to install, reinstall, or remove any package failed because, from what I could gather, /var/lib/dpkg/info/ directory had some inconsistencies with respect to the dpkg status file. The solution I found, listed above, was the only thing that I had found that worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.