Problema com locale [RESOLVIDO]

1. Problema com locale [RESOLVIDO]

tobias
fernando9

(usa Debian)

Enviado em 13/09/2014 - 09:41h

Bom dia pessoal, hoje tentei usar o upgrade e apareceu o seguinte erro:

Can't set locale; make sure $LC_* and $LANG are correct!
Reading changelogs... Feito
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "pt_BR:pt:en",
LC_ALL = (unset),
LANG = "pt_BR.UTF-8"
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)

Algém poderia me ajudar, por favor?
Obrigado!


  


2. Re: Problema com locale [RESOLVIDO]

Pires
pinguintux

(usa Debian)

Enviado em 13/09/2014 - 12:16h

Bom dia!

Prezado, tente realizar os procedimentos abaixo:

# apt-­get install locales

# locale­-gen pt_BR pt_BR.UTF-­8

# dpkg­-reconfigure locales

Atualize o sistema:

# apt-­get dist-­upgrade

Configure o fuso horário

# dpkg-reconfigure tzdata

OBS.: Selecione America e São Paulo.

OBS1:. Caso o seu problema seja solucionado, não esqueça de marcar o tópico como RESOLVIDO e a MELHOR RESPOSTA. Dentro do possível, descreva a solução para que outras pessoas também possam se beneficiar!

Boa sorte!


3. Re: Problema com locale [RESOLVIDO]

tobias
fernando9

(usa Debian)

Enviado em 13/09/2014 - 15:32h

pinguintux escreveu:

Bom dia!

Prezado, tente realizar os procedimentos abaixo:

# apt-­get install locales

# locale­-gen pt_BR pt_BR.UTF-­8

# dpkg­-reconfigure locales

Atualize o sistema:

# apt-­get dist-­upgrade

Configure o fuso horário

# dpkg-reconfigure tzdata

OBS.: Selecione America e São Paulo.

OBS1:. Caso o seu problema seja solucionado, não esqueça de marcar o tópico como RESOLVIDO e a MELHOR RESPOSTA. Dentro do possível, descreva a solução para que outras pessoas também possam se beneficiar!

Boa sorte!




Boa tarde! Caro pinguintux, primeiramente, obrigado pela sua respostas, realizei os procedimentos que me indicou. Mas continuam dando erro:

# apt-get install locales
Reading package lists... Done
Building dependency tree
Reading state information... Done
locales is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

# locale-gen pt_BR.UTF-8
Generating locales (this might take a while)...
pt_BR.ISO-8859-1.../usr/sbin/locale-gen: 60: /usr/sbin/locale-gen: localedef: not found
done
Generation complete.


# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
libc-bin
The following packages will be upgraded:
bind9-host dnsutils libbind9-80 libdns88 libisc84 libisccc80 libisccfg82
liblwres80
8 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2640 kB of archives.
After this operation, 3292 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Can't set locale; make sure $LC_* and $LANG are correct!
Reading changelogs... Feito
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "pt_BR:pt:en",
LC_ALL = (unset),
LANG = "pt_BR"
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)




4. Re: Problema com locale [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 13/09/2014 - 18:13h

Boa tarde,

Qual a versão de seu Debian? Quando a instalou, vc estava conectado a internet? Escolheu portugues(Brasil) ???


5. Re: Problema com locale [RESOLVIDO]

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 13/09/2014 - 18:34h

Antes de mais nada, qual é a saída dos comandos:
$ echo $LC_ALL
$ echo $LANG
$ echo $LANGUAGE



6. Re: Problema com locale [RESOLVIDO]

tobias
fernando9

(usa Debian)

Enviado em 13/09/2014 - 18:34h

Minha versão é
debian_7.2.0
quando instalei, escolhi português brasil.
Não instalei pela internet. Já atualisei várias vezes, mas desta vez, aparece este problema.


7. Re: Problema com locale [RESOLVIDO]

tobias
fernando9

(usa Debian)

Enviado em 13/09/2014 - 18:38h

lcavalheiro escreveu:

Antes de mais nada, qual é a saída dos comandos:
$ echo $LC_ALL
$ echo $LANG
$ echo $LANGUAGE


As saídas são:

# echo $LC_ALL

# echo $LANG
pt_BR
# echo $LANGUAGE
pt_BR:pt:en




8. Re: Problema com locale [RESOLVIDO]

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 13/09/2014 - 18:42h

A título de teste, roda o comando
# export LC_ALL=pt_BR.UTF-8 && apt-get upgrade 

O que essa porra retorna?


9. Re: Problema com locale [RESOLVIDO]

tobias
fernando9

(usa Debian)

Enviado em 13/09/2014 - 18:47h

# export LC_ALL=pt_BR.UTF-8 && apt-get upgrade
bash: warning: setlocale: LC_ALL: cannot change locale (pt_BR.UTF-8): No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
bind9-host dnsutils libbind9-80 libdns88 libisc84 libisccc80 libisccfg82
liblwres80
8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1369 kB of archives.
After this operation, 2048 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Can't set locale; make sure $LC_* and $LANG are correct!
Reading changelogs... Feito
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "pt_BR:pt:en",
LC_ALL = "pt_BR.UTF-8",
LANG = "pt_BR"
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)


10. Re: Problema com locale [RESOLVIDO]

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 13/09/2014 - 18:49h

Ok, testa agora
# export LC_ALL=pt_BR && apt-get upgrade 

Esqueci que a porra do Debian caga e anda pro FHS...


11. Re: Problema com locale [RESOLVIDO]

tobias
fernando9

(usa Debian)

Enviado em 13/09/2014 - 18:52h

lcavalheiro escreveu:

Ok, testa agora
# export LC_ALL=pt_BR && apt-get upgrade 

Esqueci que a porra do Debian caga e anda pro FHS...


# export LC_ALL=pt_BR && apt-get upgrade
bash: warning: setlocale: LC_ALL: cannot change locale (pt_BR)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
bind9-host dnsutils libbind9-80 libdns88 libisc84 libisccc80 libisccfg82
liblwres80
8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1369 kB of archives.
After this operation, 2048 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Can't set locale; make sure $LC_* and $LANG are correct!
Reading changelogs... Feito
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "pt_BR:pt:en",
LC_ALL = "pt_BR",
LANG = "pt_BR"
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)



12. Re: Problema com locale [RESOLVIDO]

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 13/09/2014 - 18:56h

Mas que diabos de distro de [*****] o Debian se tornou, não aceitando um export LC_ALL=pt_BR para definir locale... [*****], que imbecilidade, mais uma coisa pra eu elencar quando me perguntarem porque as Debian-like são o câncer que corrói o mundo GNU / Linux...

Ok, vamos fazer do jeito BURRO da distro... Mas antes posta aqui a saída de
 # env | grep LANG | grep pt_BR 




01 02 03



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts