使用debian lenny并尝试执行“aptitude -f install”
我得到这个错误消息:
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encod ing.pm line 16. Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/s hare/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) A package failed to install. Trying to recover: dpkg: `ldconfig' not found on PATH.
更新我设法进一步。 新的错误信息是
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. Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done
所以至lessldconfig回来了。
**更新2 **
最新的错误信息:
unknown initscript, /etc/init.d/glibc.sh not found.
到达那里…一步接一步你们中的任何一个人有什么想法,为什么以及如何修复?
如果以root身份执行此操作,并且在根path中有/ sbin,/ usr / sbin和/ usr / local / sbin,则可能需要执行
apt-get --reinstall install libc6
从头开始刷新你的libc包,并重新安装一些损坏的或丢失的二进制文件。
现场的问题有点棘手; 确保你已经安装了“locales”包,也许还有“locales-all”包。 你也可以尝试(以root身份):
dpkg-reconfigure libc6