I tried to install a package and it did, and it appears to work just fine. However when I installed it I got several warnings about packages being missing.
dpkg: warning files list file for package '...' missing, assuming package has no files currently installed.
Since it is just a warning and it appears to work anyway, I assumed that it doesn't matter, but I would like someone to confirm that.
The packages that are missing are ones that I uninstalled on purpose because they were non-essential and took up a lot of room.
EDIT: Package is tzdata. Using dpkg -i
on a .deb
file to install. And the above is essentially the entire warning. Just instead of ... it lists packages. python2.7-minimal
, libsqlite3-0
, libaprutill-dbd-sqlite3
, python-minimal`
EDIT: "What exactly did you do?" I ran the command
dpkg -i tzdata_2017b-2_all.deb
to install the package tzdata.
"What did you want to achieve?" I wanted the package to install.
"What happened instead? Did you encounter any warning or error messages?" The package installed and worked fine. However, the above warning appeared for the above packages.
I cannot copy and paste since this is occurring on a separate server. But I will rewrite it here:
dpkg: warning files list file for package python2.7-minimal missing, assuming package has no files currently installed.
dpkg: warning files list file for package libsqlite3-0 missing, assuming package has no files currently installed.
dpkg: warning files list file for package libaprutill-dbd-sqlite3, assuming package has no files currently installed.
dpkg: warning files list file for package python-minimal, assuming package has no files currently installed.
I am not looking for a fix. I am just curious if dpkg giving me a warning in this type of situation actually matters. Again the program works anyway and nothing else on my system needed those packages.
Have a look at this Serverfault question.
I wanted to suggest something similar to the accepted answer there before I found this. And I don't have enough reputation to add this as a comment.
Unfortunately I can't answer why this is happening. I had this problem after a dist-upgrade, and fixed it by reinstalling the packages.
We had a RAID5 failure that seemed to come with some corruption of the
dpkg
list database so I encountered this problem recently, however the solution above didn't work, asapt-get install --reinstall xxx
yielded more errors of dodgy list files. I did manage to resolve it in my case though, so here's the process I used.In the end, the process that worked for me was to remove all the files corresponding to that package in the database, and reinstall after updating
dpkg
itself.As an example, here's one such error (replace
antlr
with your missing package name from here on):Which for me the solution was:
Then,
The key seemed to be to run the configure command each time a package listing was removed (versus some other suggestions I've seen of nuking all the list files and then running
apt-get update/upgrade
).Then finally,
sudo apt-get install --reinstall antlr
would complete correctly.I had the same issue on one of my instances and the fix for me was re-install the offending packages with apt:
After a successful re-install, re-running the same command and the error went away
This worked for me:
Source: https://forums.debian.net/viewtopic.php?t=119371
If you tried @fronk's answer but
apt-get upgrade
doesn't return any dpkg warnings butapt-get install <some dummy package> --reinstall
does return dpkg errors. Replaceapt-get upgrade
withapt-get install <some dummy package> --reinstall
like so:If it's not causing any real problems, don't worry about it. If it is, try the fixes people have already posted.