某天不小心(手贱)卸载了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

相关文章:

  • 2021-11-02
  • 2021-08-21
  • 2021-06-15
  • 2021-10-14
  • 2022-02-28
  • 2021-05-03
  • 2021-08-21
猜你喜欢
  • 2021-11-03
  • 2021-12-29
  • 2021-09-07
  • 2021-11-04
  • 2021-12-08
  • 2021-07-01
相关资源
相似解决方案