dpkg –configure -a命令报错’ldconfig’、’start-stop-daemon’和expected programs not found

作者: 站长 上传时间: 浏览: N/A 下载: N/A 格式: N/A 评分: N/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

原因:使用非root用户su后进行安装,所以导致参数和环境无法传递的问题
解决方法:给sudo命令加入参数,使用-p
sudo -p xxx你要执行的命令

Leave a Comment