如何修复这些损坏的包裹?

如何修复这些损坏的包裹?

在面板中看到错误消息后,我运行了sudo apt-get -f install,结果显示如下输出。它显然提到了一些问题。我该如何修复它?

sai@Blu-Sky:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  bluez-cups printer-driver-gutenprint printer-driver-splix ubuntu-minimal
0 upgraded, 0 newly installed, 4 to remove and 39 not upgraded.
6 not fully installed or removed.
After this operation, 1250 kB disk space will be freed.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_IN:en",
    LC_ALL = (unset),
    LANG = "en_IN"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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.
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

打开终端并输入以下内容:

sudo aptitude install language-pack-en

sudo aptitude install locales

相关内容