Skip to main content

dpkg: warning: files list file for package ‘lsof’ missing; assuming package has no files currently installed

Some errors got installing/removing packages after repairing a broken root file system:

dpkg: warning: files list file for package 'lsof' missing; assuming package has no files currently installed

I fixed these messages creating the package file list again:

dpkg-deb -c /var/cache/apt/archives/lsof_4.86+dfsg-1_amd64.deb | awk {'print $6'} | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' > /var/lib/dpkg/info/lsof.list

And then:

# apt-get -d install lsof --reinstall

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.