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

Sunday, Nov 17, 2019 | 1 minute read | Updated at Sunday, Nov 17, 2019

@

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

© 2018 - 2026 vpslala

🌱 Powered by Hugo with theme Dream.