我是 Linux 新手。我尝试安装 wine,按照 YouTube 视频中的说明操作后,我到了需要从 Ubuntu 软件中心安装 wine 的地步。问题是 Ubuntu 软件中心不再工作,它要求我修复它,当我按下修复按钮时,它给出了此错误:
installArchives() failed: 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.
Preconfiguring packages ...
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.
Preconfiguring packages ...
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.
Preconfiguring packages ...
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: error: 1 expected program not found in PATH or not executable.
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
Error in function:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2)
请帮助我。谢谢 :D
答案1
真正的解决方案在这儿:
apt-get download libc-bin
dpkg -x libc-bin*.deb unpackdir/
sudo cp unpackdir/sbin/ldconfig /sbin/
sudo apt-get install --reinstall libc-bin
sudo apt-get install -f
享受! :)
答案2
答案3
安装libc-bin
软件包。只需按下键盘上的Ctrl++即可打开终端。打开后,运行以下命令。AltT
sudo apt-get install libc-bin