修复软件中心问题

修复软件中心问题

针对此错误应该做什么(软件中心) -

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.

Extracting templates from packages: 90%
Extracting templates from packages: 100%
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.

Extracting templates from packages: 90%
Extracting templates from packages: 100%
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.

Extracting templates from packages: 90%
Extracting templates from packages: 100%
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.

每当我修复软件中心时,此错误就会重复出现。

我的软件中心出了问题。当我想安装一些软件包时,出现了以下消息

"items cannot be installed or removed until the package catalog is repaired. do you want to repair it now?"

单击“修复”后,会弹出另一个窗口,提示:

"Package operation fails - The installation or removal of a software package failed"

我单击“修复”,几秒钟后,它又弹出来了!!!无论我单击“修复”多少次,都没有任何反应。

另外...我的更新管理器还存在另一个问题,它显示了以下消息:

the package system is broken. Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f"

另外,我尝试使用 sudo apt-get install -fi 但出现此错误...

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.
Extracting templates from packages: 100%
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.
E: Sub-process /usr/bin/dpkg returned an error code (2)

请提供解决方案

答案1

有报告称 libc6 在 11.10 中破坏了包管理器,请参见此处: https://answers.launchpad.net/ubuntu/+source/apt/+question/193006

Ubuntu 论坛上描述了一种适当的解决方法: http://ubuntuforums.org/showpost.php?p=11767830&postcount=19

相关内容