Quantcast
Viewing all articles
Browse latest Browse all 9

ubuntu不小心删除了libc-bin的恢复办法

不小心删除了 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.

解决办法:

1下载libc-bin扩展包

apt-get download libc-bin
dpkg -x libc-bin*.deb unpackdir/

2复制文件到系统

sudo cp unpackdir/sbin/ldconfig /sbin/

3修复系统状态

sudo apt-get install --reinstall libc-bin
sudo apt-get install -f

Viewing all articles
Browse latest Browse all 9

Trending Articles