我以前能够安装软件包。但是当我尝试安装时,结果如下:
root@debian:/home/me# apt-get install git
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@debian:/home/me# uname -a
Linux debian 4.19.0-23-amd64 #1 SMP Debian 4.19.269-1 (2022-12-20) x86_64 GNU/Linux
如上所示,它失败了。
尝试“dpkg --configure -a”得到结果:
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
但是,当我查找 /usr/local/sbin、/usr/sbin 或 /sbin 时,它们并不存在。我应该简单地创建它们并解决问题吗?如果相关的话,我的 Debian 系统是一个通过 VirtualBox 创建的虚拟机。欢迎提出所有建议。