相关疑难解决方法(0)

sudo apt-get -f install 出错(找不到 ldconfig)

我正在使用 14.04 LTS。当我输入sudo apt-get -f install终端时,我收到此错误:

Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program 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)
Run Code Online (Sandbox Code Playgroud)

请帮忙,谢谢。


回应 Faizansudo dpkg-reconfigure -a在评论中说“尝试执行”。当我尝试时,我收到了这条消息:

Can't …
Run Code Online (Sandbox Code Playgroud)

command-line apt directory software-installation 14.04

1
推荐指数
1
解决办法
2万
查看次数