某天不小心(手贱)卸载了libc-bin 包,再次安装时 却发现apt-get 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.
error: ldconfig not find in PATH or not exeuable
想要安装libc-bin 就必须安装ldconfig命令
而ldconfig命令却在libc-bin中,这该如何是好?
解决办法:
apt-get download libc-bin
dpkg -x libc-bin.*deb tem_libc_bin/
cp
tem_libc_bin/sbin/ldconfig /sbin/
apt-get
install
--reinstall libc-bin
apt-get
install
-f