После попытки обновить порты, стали валиться ошибки, что нельзя обновить libc-bin. dpkg ругался так:
# dpkg --configure libc6:amd64 Setting up libc6:amd64 (2.31-0ubuntu9) ... Checking for services that may need to be restarted... Checking init scripts... Nothing to restart. sleep: cannot read realtime clock: Invalid argument dpkg: error processing package libc6:amd64 (--configure): installed libc6:amd64 package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: libc6:amd64
Помогло это:
~# dpkg --remove --force-remove-reinstreq --force-remove-essential --force-depends libc-bin ~# dpkg --purge --force-remove-reinstreq --force-remove-essential --force-depends libc-bin ~# mv /var/lib/dpkg/info/libc6\:amd64.* /tmp/ ~# apt install -f libc-bin ~# mv /tmp/libc6\:amd64.* /var/lib/dpkg/info/
Дальше обычное обновление всего остального софта.
dpkg: warning: ‘ldconfig’ not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
~# apt download libc-bin
~# dpkg -x libc-bin*.deb unpackdir/
~# cp unpackdir/sbin/ldconfig /sbin/
~# mv /var/lib/dpkg/info/libc6\:amd64.* /tmp/
~# apt install -f libc-bin
~# mv /tmp/libc6\:amd64.* /var/lib/dpkg/info/