'ldconfig' not found in PATH or not executable解决方法
1
2
3
4
5
6
7
8
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)
出现上面的错误一般是环境变量出现了错误
重置一下默认系统变量即可
1
2
3
vi ~/.bashrc
export PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
source ~/.bashrc
💘 相关文章
- bash: rsync: command not found解决方法
- -bash: crontab: command not found ubuntu问题
- MySQL database storage path change
- rclone error listing directory not found的解决方法
- configing more ip in debian9
- ERROR 1054 (42S22): Unknown column 'id' in 'field list'的解決方法
- error: exec: "apparmor_parser": executable file not found in $PATH错误