Halvor Raknes
Member
I accidentally deleted /var/lib/dpkg/info/* on Linux Mint 22.1 (Ubuntu 24.04). I have since run apt --fix-broken install, and sudo apt check now reports no problems. However, dpkg --audit reports that almost all installed packages are "missing the list control file in the database, they need to be reinstalled". There are about 2863 installed packages but only 77 .list files remain in /var/lib/dpkg/info. What is the recommended way to regenerate the missing .list files? Is apt reinstall $(dpkg-query ...) the right approach, or is there a better/safer method?

