Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

No matter what type of apt-get I run (install, update, ...) I always get:

dpkg: warning: files list file for package `libgdata-google1.2-1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libntlm0' missing, assuming package has no files currently installed.
(Reading database ... 354644 files and directories currently installed.)
Preparing to replace libntlm0 1.1-1 (using .../libntlm0_1.1-1_i386.deb) ...
Unpacking replacement libntlm0 ...

At this point apt-get hang. Does somebody know a way to fix this?

Some days ago a line in source.list was removed (Google Chrome).

share|improve this question
add comment

3 Answers

up vote 5 down vote accepted

One command which will possibly fix the problem is

sudo apt-get --fix-broken install

Other options which can be combined with this are --ignore-missing or --fix-missing

Also try this command:

sudo dpkg --configure -a

For any help on commands and options, please see man dpkg and man apt-get.

share|improve this answer
    
"sudo apt-get --fix-broken install" fixed my problem. Thank you very much! –  user12489 Mar 17 '11 at 8:55
add comment

Try sudo apt-get -f install.

share|improve this answer
add comment

There are a few errors that can lead to a file list going missing (it is just a file in /var/lib/dpkg/info), but the most common is a problem in the file system itself. The easiest way to correct that is by rebooting with the command shutdown -F -r now, and subsequently watching the show.

The automated check will correct any errors it can without destroying data (for example, it will clean up files that have been deleted, but where the space has not been freed yet), but if it needs a decision, it will refuse and ask for the administrator to correct the problem manually, which is sort of an art in itself and more complex than I can explain here (it may be a sign of a problem with the harddisk, identifying this takes some experience though).

The dpkg error can be corrected by reinstalling the package, ideally in the exact same version (the files list is just a list of all files that were inside the package when it was unpacked, so using the same or a sufficiently similar version of the package will give the same list).

That dpkg hangs at this point is definitely wrong and also screams "filesystem issue" to me.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.