'ldconfig' not found in PATH or not executable解决方法

By admin at 2019-11-17 11:01 • 65次点击
admin

apt-listchanges: Reading changelogs...
Extracting templates from packages: 100%
Preconfiguring packages ...
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
E: Sub-process /usr/bin/dpkg returned an error code (2)

出现上面的错误一般是环境变量出现了错误

重置一下默认系统变量即可

vi ~/.bashrc
export PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin

source ~/.bashrc

ldconfig, not, found, in, path


目前尚无回复
登录 后发表评论