How should I recreate /var/lib/dpkg/info/* ?



I investigated further.
  • apt-cache policy, apt-cache show, and apt-cache showpkg all look normal.
  • The relevant .deb files exist in /var/cache/apt/archives/.
  • apt reinstall fails for openssh-server, rsyslog, and samba-common with:
E: Internal Error, No file name for <package>:amd64

Additionally:

$ dpkg -V apt apt-utils
dpkg: warning: files list file for package 'apt' missing
dpkg: warning: files list file for package 'apt-utils' missing

and

$ ls /var/lib/dpkg/info | grep '^apt'
aptkit.conffiles
aptkit.list
aptkit.md5sums

There are no apt.* or apt-utils.* files under /var/lib/dpkg/info, although

dpkg -l apt apt-utils

reports both packages as installed (ii).
Could the missing metadata for apt itself explain the repeated No file name internal error, or is there another APT state that I should investigate?
 


Follow Linux.org

Staff online


Top