Recreated part of /var/lib/dpkg/info; apt reinstall now fails with "Internal Error, No file name"



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?
 
I have changed the thread title to reflect the current focus of my troubleshooting.

At this point, it seems that the internal apt/dpkg malfunction needs to be resolved before attempting any broad package reinstallation. My repeated apt reinstall attempts consistently fail with:

E: Internal Error, No file name for <package>:amd64

so I believe that issue should be understood first.
 
sudo apt distclean
sudo apt update

If the above doesn't work take a look at:

Number 13 here has a good answer https://unix.stackexchange.com/questions/161866/how-to-recreate-var-lib-dpkg-status

You can re-create

/var/lib/dpkg/status by copying the backup from /var/backups/​

 
sudo apt distclean
sudo apt update

If the above doesn't work take a look at:

Number 13 here has a good answer https://unix.stackexchange.com/questions/161866/how-to-recreate-var-lib-dpkg-status

You can re-create

/var/lib/dpkg/status by copying the backup from /var/backups/​

Thanks. apt update completes successfully, and /var/lib/dpkg/status appears to be intact.

The remaining blocker is that every apt reinstall ends with


E: Internal Error, No file name for <package>:amd64


even though:
  • apt-cache policy looks correct,
  • apt-cache show reports the expected Filename:,
  • the corresponding .deb file exists in /var/cache/apt/archives/.
Also, dpkg -V apt apt-utils reports that the .list files for apt and apt-utils are missing from /var/lib/dpkg/info.

Do you think that missing metadata for apt itself could explain the "No file name" internal error?
 
I have major resource restraints, i.e. storage space and money.
This demands more careful actions. Having a system backup is the best way to prevent disaster, but if that isn't possible, disaster must be avoided by thinking carefully about everything before pressing the Enter key. Live and learn, but I'm not sure you can do much other than live with what you have or reinstalling. Neither is ideal, but the ideal fix of restoring from a backup isn't possible, so the choices become limited.
 
Update


I think the focus has shifted from recreating /var/lib/dpkg/info to an internal APT/DPKG metadata problem.


Current findings:


  • apt reinstall fails for multiple packages (openssh-server, rsyslog, samba-common) with:

    E: Internal Error, No file name for <package>:amd64
  • openssh-server.postinst itself appears to execute almost completely when traced, but dpkg still returns:

    installed openssh-server package post-installation script subprocess returned error exit status 10
  • I also discovered that several core packages are missing their metadata in /var/lib/dpkg/info. For example:


dpkg -V apt
dpkg -V ucf
dpkg -V debconf


all report:




warning: files list file for package '...' missing


and:




ls /var/lib/dpkg/info/apt.*
ls /var/lib/dpkg/info/ucf.*
ls /var/lib/dpkg/info/debconf.*


reports that those files do not exist.


Since openssh-server.postinst uses both ucf and debconf, I'm beginning to suspect that the package failures are symptoms of missing dpkg metadata rather than the packages themselves.


Does this suggest that repairing the metadata for essential packages (apt, apt-utils, ucf, debconf, etc.) should be the next step before attempting any large-scale reinstall?
 
You need to decide what you're willing to spend your time on - learning how to fix this, or reinstalling and getting on with life. That's something only you can decide.
I would like to fix this. There's so much learning being part of it too!

But I suppose that also depends on someone with a somewhat deep understanding of the inner workings of these packages or the dpkg infrastructure altogether catching on to this thread… (maybe you guys who are already here have that skill set already, I wouldn't know).
 
Basically, what needs to happen here is that the packages on the system need to be be re-installed so that the data that is located in the /var/lib/dpkg/info file can be reconstructed during the re-installation process. Something like the following code might be able to do it:
Code:
for pkg in $(dpkg -l | awk '/^ii/ {print $2}'); do sudo apt-get --reinstall -y install "$pkg"; done
That code will note all the packages that are installed, get their names and re-install them. Please note that I haven't had to do this, nor have I run that code, but it is what I would try given this issue. The command would need to be run as root. It would take some time to run.
@Halvor Raknes Have you tried this yet?
 
Update: new clue from strace

I ran strace on the failing dpkg --configure openssh-server command and found something interesting.

The openssh-server.postinst script reaches the point where it invokes ucf:

execve("/usr/bin/ucf", ...)
The process that actually exits with status 10 is ucf itself:

4651 exit_group(10)
Just before exiting, ucf reads the following from its standard input:

0 failed to open ucf: No such file or directory
That string is read by ucf; it is not printed by it. It appears to come through the debconf communication channel.

Interestingly, running ucf manually on the same files succeeds:

sudo ucf --debug \
/usr/share/openssh/sshd_config \
/etc/ssh/sshd_config
This completes successfully (exit status 0).

At the same time, I have discovered that several core packages still have missing metadata under /var/lib/dpkg/info, for example:

  • apt
  • apt-utils
  • debconf
  • ucf
dpkg -V warns that the file lists for these packages are missing, and there are no corresponding *.list files under /var/lib/dpkg/info.

Given these findings, it now looks less like an openssh-server problem and more like a failure somewhere in the debconf/ucf interaction, possibly related to the missing package metadata.

Does this point to a known failure mode, or suggest the next component that should be investigated?
 
@Halvor Raknes Have you tried this yet?
I haven't tried the full reinstall loop because I encountered what appears to be an internal apt failure even when attempting to reinstall individual packages.

When I attempted to reinstall just a few of the affected packages individually, I consistently ran into a different problem:

E: Internal Error, No file name for openssh-server:amd64

and similarly for rsyslog and samba-common.

So at the moment, it appears that apt itself has an internal problem that prevents even a simple reinstall from proceeding normally.

I have since done some further debugging with strace. The openssh-server post-install script reaches the point where it invokes ucf, but ucf then exits with status 10 after receiving what looks like an unexpected message through the debconf communication channel. Running ucf manually succeeds.

Given this, I'm reluctant to launch a reinstall of several thousand packages until the underlying apt/dpkg issue is understood. Otherwise I may simply repeat the same failure thousands of times. If there's a way to repair the package management infrastructure first, I'd be very interested to hear it.
 
This is what those 4 files look like on my system:
apt.list
Code:
/.
/etc
/etc/apt
/etc/apt/apt.conf.d
/etc/apt/apt.conf.d/01autoremove
/etc/apt/auth.conf.d
/etc/apt/keyrings
/etc/apt/preferences.d
/etc/apt/sources.list.d
/etc/apt/trusted.gpg.d
/etc/cron.daily
/etc/cron.daily/apt-compat
/etc/kernel
/etc/kernel/postinst.d
/etc/logrotate.d
/etc/logrotate.d/apt
/usr
/usr/bin
/usr/bin/apt
/usr/bin/apt-cache
/usr/bin/apt-cdrom
/usr/bin/apt-config
/usr/bin/apt-get
/usr/bin/apt-mark
/usr/lib
/usr/lib/aarch64-linux-gnu
/usr/lib/aarch64-linux-gnu/libapt-private.so.0.0.0
/usr/lib/apt
/usr/lib/apt/apt-extracttemplates
/usr/lib/apt/apt-helper
/usr/lib/apt/apt.systemd.daily
/usr/lib/apt/methods
/usr/lib/apt/methods/cdrom
/usr/lib/apt/methods/copy
/usr/lib/apt/methods/file
/usr/lib/apt/methods/gpgv
/usr/lib/apt/methods/http
/usr/lib/apt/methods/mirror
/usr/lib/apt/methods/rred
/usr/lib/apt/methods/sqv
/usr/lib/apt/methods/store
/usr/lib/apt/planners
/usr/lib/apt/solvers
/usr/lib/apt/solvers/dump
/usr/lib/dpkg
/usr/lib/dpkg/methods
/usr/lib/dpkg/methods/apt
/usr/lib/dpkg/methods/apt/desc.apt
/usr/lib/dpkg/methods/apt/install
/usr/lib/dpkg/methods/apt/names
/usr/lib/dpkg/methods/apt/setup
/usr/lib/dpkg/methods/apt/update
/usr/lib/systemd
/usr/lib/systemd/system
/usr/lib/systemd/system/apt-daily-upgrade.service
/usr/lib/systemd/system/apt-daily-upgrade.timer
/usr/lib/systemd/system/apt-daily.service
/usr/lib/systemd/system/apt-daily.timer
/usr/lib/udev
/usr/lib/udev/rules.d
/usr/lib/udev/rules.d/61-apt.rules
/usr/share
/usr/share/apt
/usr/share/apt/default-sequoia.config
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/apt
/usr/share/bug
/usr/share/bug/apt
/usr/share/bug/apt/script
/usr/share/doc
/usr/share/doc/apt
/usr/share/doc/apt/NEWS.Debian.gz
/usr/share/doc/apt/README.md.gz
/usr/share/doc/apt/changelog.gz
/usr/share/doc/apt/copyright
/usr/share/doc/apt/examples
/usr/share/doc/apt/examples/apt.conf
/usr/share/doc/apt/examples/configure-index
/usr/share/doc/apt/examples/debian.sources
/usr/share/doc/apt/examples/preferences
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/apt
/usr/share/locale
/usr/share/locale/ar
/usr/share/locale/ar/LC_MESSAGES
/usr/share/locale/ar/LC_MESSAGES/apt.mo
/usr/share/locale/ast
/usr/share/locale/ast/LC_MESSAGES
/usr/share/locale/ast/LC_MESSAGES/apt.mo
/usr/share/locale/bg
/usr/share/locale/bg/LC_MESSAGES
/usr/share/locale/bg/LC_MESSAGES/apt.mo
/usr/share/locale/bs
/usr/share/locale/bs/LC_MESSAGES
/usr/share/locale/bs/LC_MESSAGES/apt.mo
/usr/share/locale/ca
/usr/share/locale/ca/LC_MESSAGES
/usr/share/locale/ca/LC_MESSAGES/apt.mo
/usr/share/locale/cs
/usr/share/locale/cs/LC_MESSAGES
/usr/share/locale/cs/LC_MESSAGES/apt.mo
/usr/share/locale/cy
/usr/share/locale/cy/LC_MESSAGES
/usr/share/locale/cy/LC_MESSAGES/apt.mo
/usr/share/locale/da
/usr/share/locale/da/LC_MESSAGES
/usr/share/locale/da/LC_MESSAGES/apt.mo
/usr/share/locale/de
/usr/share/locale/de/LC_MESSAGES
/usr/share/locale/de/LC_MESSAGES/apt.mo
/usr/share/locale/dz
/usr/share/locale/dz/LC_MESSAGES
/usr/share/locale/dz/LC_MESSAGES/apt.mo
/usr/share/locale/el
/usr/share/locale/el/LC_MESSAGES
/usr/share/locale/el/LC_MESSAGES/apt.mo
/usr/share/locale/es
/usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/apt.mo
/usr/share/locale/eu
/usr/share/locale/eu/LC_MESSAGES
/usr/share/locale/eu/LC_MESSAGES/apt.mo
/usr/share/locale/fi
/usr/share/locale/fi/LC_MESSAGES
/usr/share/locale/fi/LC_MESSAGES/apt.mo
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/locale/fr/LC_MESSAGES/apt.mo
/usr/share/locale/ga
/usr/share/locale/ga/LC_MESSAGES
/usr/share/locale/ga/LC_MESSAGES/apt.mo
/usr/share/locale/gl
/usr/share/locale/gl/LC_MESSAGES
/usr/share/locale/gl/LC_MESSAGES/apt.mo
/usr/share/locale/hu
/usr/share/locale/hu/LC_MESSAGES
/usr/share/locale/hu/LC_MESSAGES/apt.mo
/usr/share/locale/it
/usr/share/locale/it/LC_MESSAGES
/usr/share/locale/it/LC_MESSAGES/apt.mo
/usr/share/locale/ja
/usr/share/locale/ja/LC_MESSAGES
/usr/share/locale/ja/LC_MESSAGES/apt.mo
/usr/share/locale/km
/usr/share/locale/km/LC_MESSAGES
/usr/share/locale/km/LC_MESSAGES/apt.mo
/usr/share/locale/ko
/usr/share/locale/ko/LC_MESSAGES
/usr/share/locale/ko/LC_MESSAGES/apt.mo
/usr/share/locale/ku
/usr/share/locale/ku/LC_MESSAGES
/usr/share/locale/ku/LC_MESSAGES/apt.mo
/usr/share/locale/lt
/usr/share/locale/lt/LC_MESSAGES
/usr/share/locale/lt/LC_MESSAGES/apt.mo
/usr/share/locale/mr
/usr/share/locale/mr/LC_MESSAGES
/usr/share/locale/mr/LC_MESSAGES/apt.mo
/usr/share/locale/nb
/usr/share/locale/nb/LC_MESSAGES
/usr/share/locale/nb/LC_MESSAGES/apt.mo
/usr/share/locale/ne
/usr/share/locale/ne/LC_MESSAGES
/usr/share/locale/ne/LC_MESSAGES/apt.mo
/usr/share/locale/nl
/usr/share/locale/nl/LC_MESSAGES
/usr/share/locale/nl/LC_MESSAGES/apt.mo
/usr/share/locale/nn
/usr/share/locale/nn/LC_MESSAGES
/usr/share/locale/nn/LC_MESSAGES/apt.mo
/usr/share/locale/pl
/usr/share/locale/pl/LC_MESSAGES
/usr/share/locale/pl/LC_MESSAGES/apt.mo
/usr/share/locale/pt
/usr/share/locale/pt/LC_MESSAGES
/usr/share/locale/pt/LC_MESSAGES/apt.mo
/usr/share/locale/pt_BR
/usr/share/locale/pt_BR/LC_MESSAGES
/usr/share/locale/pt_BR/LC_MESSAGES/apt.mo
/usr/share/locale/ro
/usr/share/locale/ro/LC_MESSAGES
/usr/share/locale/ro/LC_MESSAGES/apt.mo
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/apt.mo
/usr/share/locale/sk
/usr/share/locale/sk/LC_MESSAGES
/usr/share/locale/sk/LC_MESSAGES/apt.mo
/usr/share/locale/sl
/usr/share/locale/sl/LC_MESSAGES
/usr/share/locale/sl/LC_MESSAGES/apt.mo
/usr/share/locale/sv
/usr/share/locale/sv/LC_MESSAGES
/usr/share/locale/sv/LC_MESSAGES/apt.mo
/usr/share/locale/th
/usr/share/locale/th/LC_MESSAGES
/usr/share/locale/th/LC_MESSAGES/apt.mo
/usr/share/locale/tl
/usr/share/locale/tl/LC_MESSAGES
/usr/share/locale/tl/LC_MESSAGES/apt.mo
/usr/share/locale/tr
/usr/share/locale/tr/LC_MESSAGES
/usr/share/locale/tr/LC_MESSAGES/apt.mo
/usr/share/locale/uk
/usr/share/locale/uk/LC_MESSAGES
/usr/share/locale/uk/LC_MESSAGES/apt.mo
/usr/share/locale/vi
/usr/share/locale/vi/LC_MESSAGES
/usr/share/locale/vi/LC_MESSAGES/apt.mo
/usr/share/locale/zh_CN
/usr/share/locale/zh_CN/LC_MESSAGES
/usr/share/locale/zh_CN/LC_MESSAGES/apt.mo
/usr/share/locale/zh_TW
/usr/share/locale/zh_TW/LC_MESSAGES
/usr/share/locale/zh_TW/LC_MESSAGES/apt.mo
/usr/share/man
/usr/share/man/de
/usr/share/man/de/man1
/usr/share/man/de/man1/apt-transport-http.1.gz
/usr/share/man/de/man1/apt-transport-https.1.gz
/usr/share/man/de/man1/apt-transport-mirror.1.gz
/usr/share/man/de/man5
/usr/share/man/de/man5/apt.conf.5.gz
/usr/share/man/de/man5/apt_auth.conf.5.gz
/usr/share/man/de/man5/apt_preferences.5.gz
/usr/share/man/de/man5/sources.list.5.gz
/usr/share/man/de/man7
/usr/share/man/de/man7/apt-patterns.7.gz
/usr/share/man/de/man8
/usr/share/man/de/man8/apt-cache.8.gz
/usr/share/man/de/man8/apt-cdrom.8.gz
/usr/share/man/de/man8/apt-config.8.gz
/usr/share/man/de/man8/apt-get.8.gz
/usr/share/man/de/man8/apt-mark.8.gz
/usr/share/man/de/man8/apt-secure.8.gz
/usr/share/man/de/man8/apt.8.gz
/usr/share/man/es
/usr/share/man/es/man5
/usr/share/man/es/man5/apt_preferences.5.gz
/usr/share/man/es/man8
/usr/share/man/es/man8/apt-cache.8.gz
/usr/share/man/es/man8/apt-cdrom.8.gz
/usr/share/man/es/man8/apt-config.8.gz
/usr/share/man/fr
/usr/share/man/fr/man1
/usr/share/man/fr/man1/apt-transport-http.1.gz
/usr/share/man/fr/man1/apt-transport-https.1.gz
/usr/share/man/fr/man1/apt-transport-mirror.1.gz
/usr/share/man/fr/man5
/usr/share/man/fr/man5/apt.conf.5.gz
/usr/share/man/fr/man5/apt_auth.conf.5.gz
/usr/share/man/fr/man5/apt_preferences.5.gz
/usr/share/man/fr/man5/sources.list.5.gz
/usr/share/man/fr/man7
/usr/share/man/fr/man7/apt-patterns.7.gz
/usr/share/man/fr/man8
/usr/share/man/fr/man8/apt-cache.8.gz
/usr/share/man/fr/man8/apt-cdrom.8.gz
/usr/share/man/fr/man8/apt-config.8.gz
/usr/share/man/fr/man8/apt-get.8.gz
/usr/share/man/fr/man8/apt-mark.8.gz
/usr/share/man/fr/man8/apt-secure.8.gz
/usr/share/man/fr/man8/apt.8.gz
/usr/share/man/it
/usr/share/man/it/man5
/usr/share/man/it/man5/apt.conf.5.gz
/usr/share/man/it/man5/apt_preferences.5.gz
/usr/share/man/it/man8
/usr/share/man/it/man8/apt-cache.8.gz
/usr/share/man/it/man8/apt-cdrom.8.gz
/usr/share/man/it/man8/apt-config.8.gz
/usr/share/man/it/man8/apt-mark.8.gz
/usr/share/man/ja
/usr/share/man/ja/man5
/usr/share/man/ja/man5/apt.conf.5.gz
/usr/share/man/ja/man5/apt_preferences.5.gz
/usr/share/man/ja/man8
/usr/share/man/ja/man8/apt-cache.8.gz
/usr/share/man/ja/man8/apt-cdrom.8.gz
/usr/share/man/ja/man8/apt-config.8.gz
/usr/share/man/ja/man8/apt-mark.8.gz
/usr/share/man/man1
/usr/share/man/man1/apt-transport-http.1.gz
/usr/share/man/man1/apt-transport-https.1.gz
/usr/share/man/man1/apt-transport-mirror.1.gz
/usr/share/man/man5
/usr/share/man/man5/apt.conf.5.gz
/usr/share/man/man5/apt_auth.conf.5.gz
/usr/share/man/man5/apt_preferences.5.gz
/usr/share/man/man5/sources.list.5.gz
/usr/share/man/man7
/usr/share/man/man7/apt-patterns.7.gz
/usr/share/man/man8
/usr/share/man/man8/apt-cache.8.gz
/usr/share/man/man8/apt-cdrom.8.gz
/usr/share/man/man8/apt-config.8.gz
/usr/share/man/man8/apt-get.8.gz
/usr/share/man/man8/apt-mark.8.gz
/usr/share/man/man8/apt-secure.8.gz
/usr/share/man/man8/apt.8.gz
/usr/share/man/nl
/usr/share/man/nl/man1
/usr/share/man/nl/man1/apt-transport-http.1.gz
/usr/share/man/nl/man1/apt-transport-https.1.gz
/usr/share/man/nl/man1/apt-transport-mirror.1.gz
/usr/share/man/nl/man5
/usr/share/man/nl/man5/apt.conf.5.gz
/usr/share/man/nl/man5/apt_auth.conf.5.gz
/usr/share/man/nl/man5/apt_preferences.5.gz
/usr/share/man/nl/man5/sources.list.5.gz
/usr/share/man/nl/man7
/usr/share/man/nl/man7/apt-patterns.7.gz
/usr/share/man/nl/man8
/usr/share/man/nl/man8/apt-cache.8.gz
/usr/share/man/nl/man8/apt-cdrom.8.gz
/usr/share/man/nl/man8/apt-config.8.gz
/usr/share/man/nl/man8/apt-get.8.gz
/usr/share/man/nl/man8/apt-mark.8.gz
/usr/share/man/nl/man8/apt-secure.8.gz
/usr/share/man/nl/man8/apt.8.gz
/usr/share/man/pl
/usr/share/man/pl/man5
/usr/share/man/pl/man5/apt_preferences.5.gz
/usr/share/man/pl/man8
/usr/share/man/pl/man8/apt-cache.8.gz
/usr/share/man/pl/man8/apt-cdrom.8.gz
/usr/share/man/pl/man8/apt-config.8.gz
/usr/share/man/pt
/usr/share/man/pt/man1
/usr/share/man/pt/man1/apt-transport-http.1.gz
/usr/share/man/pt/man1/apt-transport-https.1.gz
/usr/share/man/pt/man1/apt-transport-mirror.1.gz
/usr/share/man/pt/man5
/usr/share/man/pt/man5/apt.conf.5.gz
/usr/share/man/pt/man5/apt_auth.conf.5.gz
/usr/share/man/pt/man5/apt_preferences.5.gz
/usr/share/man/pt/man5/sources.list.5.gz
/usr/share/man/pt/man7
/usr/share/man/pt/man7/apt-patterns.7.gz
/usr/share/man/pt/man8
/usr/share/man/pt/man8/apt-cache.8.gz
/usr/share/man/pt/man8/apt-cdrom.8.gz
/usr/share/man/pt/man8/apt-config.8.gz
/usr/share/man/pt/man8/apt-get.8.gz
/usr/share/man/pt/man8/apt-mark.8.gz
/usr/share/man/pt/man8/apt-secure.8.gz
/usr/share/man/pt/man8/apt.8.gz
/var
/var/cache
/var/cache/apt
/var/cache/apt/archives
/var/cache/apt/archives/partial
/var/lib
/var/lib/apt
/var/lib/apt/lists
/var/lib/apt/lists/partial
/var/lib/apt/mirrors
/var/lib/apt/mirrors/partial
/var/lib/apt/periodic
/var/log
/var/log/apt
/usr/lib/aarch64-linux-gnu/libapt-private.so.0.0
/usr/lib/apt/methods/https
/usr/lib/apt/methods/mirror+copy
/usr/lib/apt/methods/mirror+file
/usr/lib/apt/methods/mirror+http
/usr/lib/apt/methods/mirror+https
/usr/lib/apt/planners/dump
/var/lib/dpkg/info/apt-utils.list
Code:
/.
/usr
/usr/bin
/usr/bin/apt-ftparchive
/usr/bin/apt-sortpkgs
/usr/lib
/usr/lib/apt
/usr/lib/apt/planners
/usr/lib/apt/planners/apt
/usr/lib/apt/solvers
/usr/lib/apt/solvers/apt
/usr/share
/usr/share/doc
/usr/share/doc/apt-utils
/usr/share/doc/apt-utils/NEWS.Debian.gz
/usr/share/doc/apt-utils/changelog.gz
/usr/share/doc/apt-utils/copyright
/usr/share/doc/apt-utils/examples
/usr/share/doc/apt-utils/examples/apt-ftparchive.conf
/usr/share/doc/apt-utils/examples/ftp-archive.conf
/usr/share/locale
/usr/share/locale/ar
/usr/share/locale/ar/LC_MESSAGES
/usr/share/locale/ar/LC_MESSAGES/apt-utils.mo
/usr/share/locale/ast
/usr/share/locale/ast/LC_MESSAGES
/usr/share/locale/ast/LC_MESSAGES/apt-utils.mo
/usr/share/locale/bg
/usr/share/locale/bg/LC_MESSAGES
/usr/share/locale/bg/LC_MESSAGES/apt-utils.mo
/usr/share/locale/bs
/usr/share/locale/bs/LC_MESSAGES
/usr/share/locale/bs/LC_MESSAGES/apt-utils.mo
/usr/share/locale/ca
/usr/share/locale/ca/LC_MESSAGES
/usr/share/locale/ca/LC_MESSAGES/apt-utils.mo
/usr/share/locale/cs
/usr/share/locale/cs/LC_MESSAGES
/usr/share/locale/cs/LC_MESSAGES/apt-utils.mo
/usr/share/locale/cy
/usr/share/locale/cy/LC_MESSAGES
/usr/share/locale/cy/LC_MESSAGES/apt-utils.mo
/usr/share/locale/da
/usr/share/locale/da/LC_MESSAGES
/usr/share/locale/da/LC_MESSAGES/apt-utils.mo
/usr/share/locale/de
/usr/share/locale/de/LC_MESSAGES
/usr/share/locale/de/LC_MESSAGES/apt-utils.mo
/usr/share/locale/dz
/usr/share/locale/dz/LC_MESSAGES
/usr/share/locale/dz/LC_MESSAGES/apt-utils.mo
/usr/share/locale/el
/usr/share/locale/el/LC_MESSAGES
/usr/share/locale/el/LC_MESSAGES/apt-utils.mo
/usr/share/locale/es
/usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/apt-utils.mo
/usr/share/locale/eu
/usr/share/locale/eu/LC_MESSAGES
/usr/share/locale/eu/LC_MESSAGES/apt-utils.mo
/usr/share/locale/fi
/usr/share/locale/fi/LC_MESSAGES
/usr/share/locale/fi/LC_MESSAGES/apt-utils.mo
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/locale/fr/LC_MESSAGES/apt-utils.mo
/usr/share/locale/ga
/usr/share/locale/ga/LC_MESSAGES
/usr/share/locale/ga/LC_MESSAGES/apt-utils.mo
/usr/share/locale/gl
/usr/share/locale/gl/LC_MESSAGES
/usr/share/locale/gl/LC_MESSAGES/apt-utils.mo
/usr/share/locale/hu
/usr/share/locale/hu/LC_MESSAGES
/usr/share/locale/hu/LC_MESSAGES/apt-utils.mo
/usr/share/locale/it
/usr/share/locale/it/LC_MESSAGES
/usr/share/locale/it/LC_MESSAGES/apt-utils.mo
/usr/share/locale/ja
/usr/share/locale/ja/LC_MESSAGES
/usr/share/locale/ja/LC_MESSAGES/apt-utils.mo
/usr/share/locale/km
/usr/share/locale/km/LC_MESSAGES
/usr/share/locale/km/LC_MESSAGES/apt-utils.mo
/usr/share/locale/ko
/usr/share/locale/ko/LC_MESSAGES
/usr/share/locale/ko/LC_MESSAGES/apt-utils.mo
/usr/share/locale/ku
/usr/share/locale/ku/LC_MESSAGES
/usr/share/locale/ku/LC_MESSAGES/apt-utils.mo
/usr/share/locale/lt
/usr/share/locale/lt/LC_MESSAGES
/usr/share/locale/lt/LC_MESSAGES/apt-utils.mo
/usr/share/locale/mr
/usr/share/locale/mr/LC_MESSAGES
/usr/share/locale/mr/LC_MESSAGES/apt-utils.mo
/usr/share/locale/nb
/usr/share/locale/nb/LC_MESSAGES
/usr/share/locale/nb/LC_MESSAGES/apt-utils.mo
/usr/share/locale/ne
/usr/share/locale/ne/LC_MESSAGES
/usr/share/locale/ne/LC_MESSAGES/apt-utils.mo
/usr/share/locale/nl
/usr/share/locale/nl/LC_MESSAGES
/usr/share/locale/nl/LC_MESSAGES/apt-utils.mo
/usr/share/locale/nn
/usr/share/locale/nn/LC_MESSAGES
/usr/share/locale/nn/LC_MESSAGES/apt-utils.mo
/usr/share/locale/pl
/usr/share/locale/pl/LC_MESSAGES
/usr/share/locale/pl/LC_MESSAGES/apt-utils.mo
/usr/share/locale/pt
/usr/share/locale/pt/LC_MESSAGES
/usr/share/locale/pt/LC_MESSAGES/apt-utils.mo
/usr/share/locale/pt_BR
/usr/share/locale/pt_BR/LC_MESSAGES
/usr/share/locale/pt_BR/LC_MESSAGES/apt-utils.mo
/usr/share/locale/ro
/usr/share/locale/ro/LC_MESSAGES
/usr/share/locale/ro/LC_MESSAGES/apt-utils.mo
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/apt-utils.mo
/usr/share/locale/sk
/usr/share/locale/sk/LC_MESSAGES
/usr/share/locale/sk/LC_MESSAGES/apt-utils.mo
/usr/share/locale/sl
/usr/share/locale/sl/LC_MESSAGES
/usr/share/locale/sl/LC_MESSAGES/apt-utils.mo
/usr/share/locale/sv
/usr/share/locale/sv/LC_MESSAGES
/usr/share/locale/sv/LC_MESSAGES/apt-utils.mo
/usr/share/locale/th
/usr/share/locale/th/LC_MESSAGES
/usr/share/locale/th/LC_MESSAGES/apt-utils.mo
/usr/share/locale/tl
/usr/share/locale/tl/LC_MESSAGES
/usr/share/locale/tl/LC_MESSAGES/apt-utils.mo
/usr/share/locale/tr
/usr/share/locale/tr/LC_MESSAGES
/usr/share/locale/tr/LC_MESSAGES/apt-utils.mo
/usr/share/locale/uk
/usr/share/locale/uk/LC_MESSAGES
/usr/share/locale/uk/LC_MESSAGES/apt-utils.mo
/usr/share/locale/vi
/usr/share/locale/vi/LC_MESSAGES
/usr/share/locale/vi/LC_MESSAGES/apt-utils.mo
/usr/share/locale/zh_CN
/usr/share/locale/zh_CN/LC_MESSAGES
/usr/share/locale/zh_CN/LC_MESSAGES/apt-utils.mo
/usr/share/locale/zh_TW
/usr/share/locale/zh_TW/LC_MESSAGES
/usr/share/locale/zh_TW/LC_MESSAGES/apt-utils.mo
/usr/share/man
/usr/share/man/de
/usr/share/man/de/man1
/usr/share/man/de/man1/apt-extracttemplates.1.gz
/usr/share/man/de/man1/apt-ftparchive.1.gz
/usr/share/man/de/man1/apt-sortpkgs.1.gz
/usr/share/man/es
/usr/share/man/es/man1
/usr/share/man/es/man1/apt-extracttemplates.1.gz
/usr/share/man/es/man1/apt-ftparchive.1.gz
/usr/share/man/es/man1/apt-sortpkgs.1.gz
/usr/share/man/fr
/usr/share/man/fr/man1
/usr/share/man/fr/man1/apt-extracttemplates.1.gz
/usr/share/man/fr/man1/apt-ftparchive.1.gz
/usr/share/man/fr/man1/apt-sortpkgs.1.gz
/usr/share/man/it
/usr/share/man/it/man1
/usr/share/man/it/man1/apt-extracttemplates.1.gz
/usr/share/man/it/man1/apt-ftparchive.1.gz
/usr/share/man/it/man1/apt-sortpkgs.1.gz
/usr/share/man/ja
/usr/share/man/ja/man1
/usr/share/man/ja/man1/apt-extracttemplates.1.gz
/usr/share/man/ja/man1/apt-ftparchive.1.gz
/usr/share/man/ja/man1/apt-sortpkgs.1.gz
/usr/share/man/man1
/usr/share/man/man1/apt-extracttemplates.1.gz
/usr/share/man/man1/apt-ftparchive.1.gz
/usr/share/man/man1/apt-sortpkgs.1.gz
/usr/share/man/nl
/usr/share/man/nl/man1
/usr/share/man/nl/man1/apt-extracttemplates.1.gz
/usr/share/man/nl/man1/apt-ftparchive.1.gz
/usr/share/man/nl/man1/apt-sortpkgs.1.gz
/usr/share/man/pl
/usr/share/man/pl/man1
/usr/share/man/pl/man1/apt-extracttemplates.1.gz
/usr/share/man/pl/man1/apt-sortpkgs.1.gz
/usr/share/man/pt
/usr/share/man/pt/man1
/usr/share/man/pt/man1/apt-extracttemplates.1.gz
/usr/share/man/pt/man1/apt-ftparchive.1.gz
/usr/share/man/pt/man1/apt-sortpkgs.1.gz
/usr/bin/apt-extracttemplates
/usr/lib/apt/solvers/solver3

/var/lib/dpkg/info/debconf.list
Code:
/.
/etc
/etc/apt
/etc/apt/apt.conf.d
/etc/apt/apt.conf.d/70debconf
/etc/debconf.conf
/usr
/usr/bin
/usr/bin/debconf
/usr/bin/debconf-apt-progress
/usr/bin/debconf-communicate
/usr/bin/debconf-copydb
/usr/bin/debconf-escape
/usr/bin/debconf-set-selections
/usr/bin/debconf-show
/usr/sbin
/usr/sbin/dpkg-preconfigure
/usr/sbin/dpkg-reconfigure
/usr/share
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/debconf
/usr/share/debconf
/usr/share/debconf/confmodule
/usr/share/debconf/confmodule.sh
/usr/share/debconf/debconf.conf
/usr/share/debconf/fix_db.pl
/usr/share/debconf/frontend
/usr/share/doc
/usr/share/doc/debconf
/usr/share/doc/debconf/README.Debian
/usr/share/doc/debconf/changelog.gz
/usr/share/doc/debconf/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/debconf
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/debconf-apt-progress.1.gz
/usr/share/man/man1/debconf-communicate.1.gz
/usr/share/man/man1/debconf-copydb.1.gz
/usr/share/man/man1/debconf-escape.1.gz
/usr/share/man/man1/debconf-set-selections.1.gz
/usr/share/man/man1/debconf-show.1.gz
/usr/share/man/man1/debconf.1.gz
/usr/share/man/man8
/usr/share/man/man8/dpkg-preconfigure.8.gz
/usr/share/man/man8/dpkg-reconfigure.8.gz
/usr/share/perl5
/usr/share/perl5/Debconf
/usr/share/perl5/Debconf/AutoSelect.pm
/usr/share/perl5/Debconf/Base.pm
/usr/share/perl5/Debconf/Client
/usr/share/perl5/Debconf/Client/ConfModule.pm
/usr/share/perl5/Debconf/ConfModule.pm
/usr/share/perl5/Debconf/Config.pm
/usr/share/perl5/Debconf/Db.pm
/usr/share/perl5/Debconf/DbDriver
/usr/share/perl5/Debconf/DbDriver/Backup.pm
/usr/share/perl5/Debconf/DbDriver/Cache.pm
/usr/share/perl5/Debconf/DbDriver/Copy.pm
/usr/share/perl5/Debconf/DbDriver/Debug.pm
/usr/share/perl5/Debconf/DbDriver/DirTree.pm
/usr/share/perl5/Debconf/DbDriver/Directory.pm
/usr/share/perl5/Debconf/DbDriver/File.pm
/usr/share/perl5/Debconf/DbDriver/LDAP.pm
/usr/share/perl5/Debconf/DbDriver/PackageDir.pm
/usr/share/perl5/Debconf/DbDriver/Pipe.pm
/usr/share/perl5/Debconf/DbDriver/Stack.pm
/usr/share/perl5/Debconf/DbDriver.pm
/usr/share/perl5/Debconf/Element
/usr/share/perl5/Debconf/Element/Dialog
/usr/share/perl5/Debconf/Element/Dialog/Boolean.pm
/usr/share/perl5/Debconf/Element/Dialog/Error.pm
/usr/share/perl5/Debconf/Element/Dialog/Multiselect.pm
/usr/share/perl5/Debconf/Element/Dialog/Note.pm
/usr/share/perl5/Debconf/Element/Dialog/Password.pm
/usr/share/perl5/Debconf/Element/Dialog/Progress.pm
/usr/share/perl5/Debconf/Element/Dialog/Select.pm
/usr/share/perl5/Debconf/Element/Dialog/String.pm
/usr/share/perl5/Debconf/Element/Dialog/Text.pm
/usr/share/perl5/Debconf/Element/Editor
/usr/share/perl5/Debconf/Element/Editor/Boolean.pm
/usr/share/perl5/Debconf/Element/Editor/Error.pm
/usr/share/perl5/Debconf/Element/Editor/Multiselect.pm
/usr/share/perl5/Debconf/Element/Editor/Note.pm
/usr/share/perl5/Debconf/Element/Editor/Password.pm
/usr/share/perl5/Debconf/Element/Editor/Progress.pm
/usr/share/perl5/Debconf/Element/Editor/Select.pm
/usr/share/perl5/Debconf/Element/Editor/String.pm
/usr/share/perl5/Debconf/Element/Editor/Text.pm
/usr/share/perl5/Debconf/Element/Gnome
/usr/share/perl5/Debconf/Element/Gnome/Boolean.pm
/usr/share/perl5/Debconf/Element/Gnome/Error.pm
/usr/share/perl5/Debconf/Element/Gnome/Multiselect.pm
/usr/share/perl5/Debconf/Element/Gnome/Note.pm
/usr/share/perl5/Debconf/Element/Gnome/Password.pm
/usr/share/perl5/Debconf/Element/Gnome/Progress.pm
/usr/share/perl5/Debconf/Element/Gnome/Select.pm
/usr/share/perl5/Debconf/Element/Gnome/String.pm
/usr/share/perl5/Debconf/Element/Gnome/Text.pm
/usr/share/perl5/Debconf/Element/Gnome.pm
/usr/share/perl5/Debconf/Element/Multiselect.pm
/usr/share/perl5/Debconf/Element/Noninteractive
/usr/share/perl5/Debconf/Element/Noninteractive/Boolean.pm
/usr/share/perl5/Debconf/Element/Noninteractive/Error.pm
/usr/share/perl5/Debconf/Element/Noninteractive/Multiselect.pm
/usr/share/perl5/Debconf/Element/Noninteractive/Note.pm
/usr/share/perl5/Debconf/Element/Noninteractive/Password.pm
/usr/share/perl5/Debconf/Element/Noninteractive/Progress.pm
/usr/share/perl5/Debconf/Element/Noninteractive/Select.pm
/usr/share/perl5/Debconf/Element/Noninteractive/String.pm
/usr/share/perl5/Debconf/Element/Noninteractive/Text.pm
/usr/share/perl5/Debconf/Element/Noninteractive.pm
/usr/share/perl5/Debconf/Element/Select.pm
/usr/share/perl5/Debconf/Element/Teletype
/usr/share/perl5/Debconf/Element/Teletype/Boolean.pm
/usr/share/perl5/Debconf/Element/Teletype/Error.pm
/usr/share/perl5/Debconf/Element/Teletype/Multiselect.pm
/usr/share/perl5/Debconf/Element/Teletype/Note.pm
/usr/share/perl5/Debconf/Element/Teletype/Password.pm
/usr/share/perl5/Debconf/Element/Teletype/Progress.pm
/usr/share/perl5/Debconf/Element/Teletype/Select.pm
/usr/share/perl5/Debconf/Element/Teletype/String.pm
/usr/share/perl5/Debconf/Element/Teletype/Text.pm
/usr/share/perl5/Debconf/Element/Web
/usr/share/perl5/Debconf/Element/Web/Boolean.pm
/usr/share/perl5/Debconf/Element/Web/Error.pm
/usr/share/perl5/Debconf/Element/Web/Multiselect.pm
/usr/share/perl5/Debconf/Element/Web/Note.pm
/usr/share/perl5/Debconf/Element/Web/Password.pm
/usr/share/perl5/Debconf/Element/Web/Progress.pm
/usr/share/perl5/Debconf/Element/Web/Select.pm
/usr/share/perl5/Debconf/Element/Web/String.pm
/usr/share/perl5/Debconf/Element/Web/Text.pm
/usr/share/perl5/Debconf/Element.pm
/usr/share/perl5/Debconf/Encoding.pm
/usr/share/perl5/Debconf/Format
/usr/share/perl5/Debconf/Format/822.pm
/usr/share/perl5/Debconf/Format.pm
/usr/share/perl5/Debconf/FrontEnd
/usr/share/perl5/Debconf/FrontEnd/Dialog.pm
/usr/share/perl5/Debconf/FrontEnd/Editor.pm
/usr/share/perl5/Debconf/FrontEnd/Gnome.pm
/usr/share/perl5/Debconf/FrontEnd/Kde.pm
/usr/share/perl5/Debconf/FrontEnd/Noninteractive.pm
/usr/share/perl5/Debconf/FrontEnd/Passthrough.pm
/usr/share/perl5/Debconf/FrontEnd/Readline.pm
/usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm
/usr/share/perl5/Debconf/FrontEnd/Teletype.pm
/usr/share/perl5/Debconf/FrontEnd/Text.pm
/usr/share/perl5/Debconf/FrontEnd/Web.pm
/usr/share/perl5/Debconf/FrontEnd.pm
/usr/share/perl5/Debconf/Gettext.pm
/usr/share/perl5/Debconf/Iterator.pm
/usr/share/perl5/Debconf/Log.pm
/usr/share/perl5/Debconf/Path.pm
/usr/share/perl5/Debconf/Priority.pm
/usr/share/perl5/Debconf/Question.pm
/usr/share/perl5/Debconf/Template
/usr/share/perl5/Debconf/Template/Transient.pm
/usr/share/perl5/Debconf/Template.pm
/usr/share/perl5/Debconf/TmpFile.pm
/usr/share/perl5/Debian
/usr/share/perl5/Debian/DebConf
/usr/share/perl5/Debian/DebConf/Client
/usr/share/perl5/Debian/DebConf/Client/ConfModule.pm
/usr/share/pixmaps
/usr/share/pixmaps/debian-logo.png
/var
/var/cache
/var/cache/debconf
/usr/share/bash-completion/completions/debconf-show

/var/lib/dpkg/info/ucf.list
Code:
/.
/etc
/etc/ucf.conf
/usr
/usr/bin
/usr/bin/ucf
/usr/bin/ucfq
/usr/bin/ucfr
/usr/share
/usr/share/doc
/usr/share/doc/ucf
/usr/share/doc/ucf/NEWS.Debian.gz
/usr/share/doc/ucf/changelog.gz
/usr/share/doc/ucf/copyright
/usr/share/doc/ucf/examples
/usr/share/doc/ucf/examples/README.md
/usr/share/doc/ucf/examples/postinst
/usr/share/doc/ucf/examples/postrm
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/ucf
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/ucf.1.gz
/usr/share/man/man1/ucfq.1.gz
/usr/share/man/man1/ucfr.1.gz
/usr/share/man/man5
/usr/share/man/man5/ucf.conf.5.gz
/usr/share/ucf
/usr/share/ucf/ucf_library.sh
/var
/var/lib
/var/lib/ucf
 
Learning not to touch System Files would be a good start...they are hidden for a reason.

Learning how to create a System image is also a good idea.

1785104044968.gif
 
@Halvor Raknes wrote:
I have major resource restraints, i.e. storage space and money.

There's so much learning being part of it

I encountered what appears to be an internal apt failure even when attempting to reinstall individual packages.

Resource constraints may be relevant. How much space is available on the drive? For example, on a machine here, the following command and output will show usage:
Code:
[~]$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             7901224        0   7901224   0% /dev
tmpfs            1600420     1764   1598656   1% /run
/dev/nvme0n1p3 463735568 46717292 412279176  11% /  <-------NOTE ROOT PARTITION USAGE
tmpfs            8002092      544   8001548   1% /dev/shm
efivarfs             192       98        90  53% /sys/firmware/efi/efivars
none                1024        0      1024   0% /run/credentials/systemd-journald.service
tmpfs            8002092     4216   7997876   1% /tmp
/dev/nvme0n1p1    486456     4936    481520   2% /boot/efi
none                1024        0      1024   0% /run/credentials/[email protected]
tmpfs            1600416       48   1600368   1% /run/user/1000

If, for example, one had deleted the /var/lib/dpkg/info file to create a bit more space, then the situation described in post #1 could result.

In any case, the situation appears dire to me because of the following considerations.

Since apt has missing metadata that is normally available in /var/lib/dpkg/info, then apt itself would need to be re-installed. Doubtless that missing metadata is implicated in the the failures of apt that you have described. Clearly, a fully functioning apt is necessary for normal installation using apt. Unfortunately, apt has numerous dependencies, as seen here:
Code:
[~]$ apt depends apt
apt
 |Depends: base-passwd (>= 3.6.1)
  Depends: adduser
  Depends: sqv (>= 1.3.0)
  Depends: libapt-pkg7.0 (>= 3.3.1)
  Depends: debian-archive-keyring
  Depends: libc6 (>= 2.38)
  Depends: libgcc-s1 (>= 3.0)
  Depends: libseccomp2 (>= 2.4.2)
  Depends: libssl3t64 (>= 3.0.0)
  Depends: libstdc++6 (>= 13.1)
  Depends: libsystemd0
  Conflicts: <apt-verify>
  Conflicts: <libnettle8> (<< 3.9.1-2.2~)
  Breaks: apt-transport-https (<< 1.5~alpha4~)
  Breaks: apt-utils (<< 1.3~exp2~)
  Breaks: aptitude (<< 0.8.10)
  Recommends: ca-certificates
  Suggests: apt-doc
 |Suggests: aptitude
 |Suggests: synaptic
  Suggests: wajig
  Suggests: dpkg-dev (>= 1.17.2)
 |Suggests: gnupg
 |Suggests: gnupg2
  Suggests: gnupg1
  Suggests: powermgmt-base
  Replaces: apt-transport-https (<< 1.5~alpha4~)
  Replaces: apt-utils (<< 1.3~exp2~)
To satisfy those dependencies, theoretically one could download all the relevant .deb files and then ask dpkg to install all of them. However, any of the those dependencies may have their own dependencies which can lead to "dependency hell" which could be a very long time-consuming activity to involve oneself in to try and get a fully functioning apt back on the system. The apt package manager was designed to manage and resolve just these dependency issues.

In the past, many years ago, I did follow dependencies on numerous occasons to try and catch them all to install a package that needed them. It was time-consuming, a headache for me, and what I learnt was that "dependency hell" isn't my favourite place to be, and that package managers are very handy software :-) . At this point, I would be thinking of backing up and re-installing the system.
 
In the past, many years ago, I did follow dependencies on numerous occasons to try and catch them all to install a package that needed them. It was time-consuming, a headache for me, and what I learnt was that "dependency hell" isn't my favourite place to be, and that package managers are very handy software :-) . At this point, I would be thinking of backing up and re-installing the system.

^^^^^^^......there, is the very best advice you will receive.

Save whatever you need to save, and reinstall.
 


Follow Linux.org

Members online


Top