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

1
2
3
4
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

1
sudo -p xxx你要执行的命令
原文链接:https://xiaohost.com/3259.html,转载请注明出处。
0

评论0

请先