Greetings.
I'm not sure if this is related or not, but I think I've been bitten badly by this. After the last apt upgrade (which involved these two packages). I seem to have lost functionality in root (I use su -c rather than sudo), and apt/dpkg seems to be hosed as well. Can anyone help. I've google around and got all sorth of answers involving reconfiguring my $PATH, but nothing seems to work.
Any command I attempt to execute under root gives me something like this;
zshprompt % su -c "rmmod pcspkr"
Password:
bash: rmmod: command not found
or
zsh prompt % vpn-connect
Password:
[!] Error: openvpn is not installed. Install `openvpn` package to continue.
The above is an alias I use for a script to launch my vpn (under root). openvpn is installed (I double checked with apt-cache policy), so I have no idea what's up here. This was actually when I first noticed something was wrong after the update/apgrade.
Also, any new upgrade fails with this message;
zsh prompt % su -c "apt update && apt upgrade"
Password:
Hit:1 http://ftp.debian.org/debian sid InRelease
Hit:2 http://aptosid.com/debian sid InRelease
Hit:3 http://debian.ipacct.com/deb-multimedia unstable InRelease
Hit:4 https://liquorix.net/debian sid InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
libapparmor1
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/92.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
Total disk space freed by localepurge: 0 KiB
E: Sub-process /usr/bin/dpkg returned an error code (2)
su -c "apt update && apt upgrade" 6.67s user 1.22s system 39% cpu 20.027 total
Is this related to the two mentioned packages in the thread title? Because if it is, I'm afraid I won't even be able to perform an upgrade to get the fixed packages when they hit, due to these dpkg errors. Is my system hosed, or is there any way to clean up this mess?