Como corrigir o erro “Setting locale failed” ao instalar o vim?

4

Ao instalar o vim através do Software Center, recebo este erro

installArchives() failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up install-info (4.13a.dfsg.1-10ubuntu4) ...
/etc/environment: line 1: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: No such file or directory
dpkg: error processing install-info (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 install-info
Setting up install-info (4.13a.dfsg.1-10ubuntu4) ...
/etc/environment: line 1: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: No such file or directory
dpkg: error processing install-info (--configure):
 subprocess installed post-installation script returned error exit status 1
    
por shubham9182 06.11.2013 / 10:16

2 respostas

5

Você precisa gerar seus arquivos locais. Isso é feito, use o comando locale-gen . O argumento necessário é o idioma e o charset para o qual você deseja configurar o sistema.

Por exemplo, se eu quiser que meu sistema use o inglês (EUA) com o UTF-8, eu executaria o seguinte comando.

locale-gen en_US.UTF-8

Parece que você é da Índia e pode querer fazer algo assim.

locale-gen en_IN.ISO8859-1

    
por Sajan Parikh 06.11.2013 / 10:40
0

primeiro:

sudo apt-get purge locales

então:

sudo aptitude install locales

e o famoso:

sudo dpkg-reconfigure locales

Isto livra o sistema de localidades, então re-instala locales e faz downgrades da libc6 de 2.19 para 2.13, o que é bastante provável. Em seguida, configura as localidades novamente.

    
por tkjef 18.09.2014 / 07:32