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