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: `ldconfig' not found on PATH. dpkg: 1 expected program(s) not found on PATH. NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin. E: Sub-process /usr/bin/dpkg returned an error code (2) mitja@cube:~$ printenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
解決辦法:
因爲報出缺乏 "ldconfig"這個文件,因此能夠:aptitude download libc-bin 下載libc-bin(ldconfig文件在這個裏面)
而後dpkg -x libc-bin*.deb unpackdir/; cp unpackdir/sbin/ldconfig /sbin/;
最後sudo apt-get install -f;
就可以修復,而後就可以正常apt-get install