Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure a default locale/language pack #6

Open
adilsoncarvalho opened this issue May 6, 2015 · 7 comments
Open

Configure a default locale/language pack #6

adilsoncarvalho opened this issue May 6, 2015 · 7 comments

Comments

@adilsoncarvalho
Copy link
Member

_____________________________________________________________________
WARNING! Your environment specifies an invalid locale.
 This can affect your user experience significantly, including the
 ability to manage packages. You may install the locales by running:

   sudo apt-get install language-pack-UTF-8
     or
   sudo locale-gen UTF-8

To see all available language packs, run:
   apt-cache search "^language-pack-[a-z][a-z]$"
To disable this message for all users, run:
   sudo touch /var/lib/cloud/instance/locale-check.skip
_____________________________________________________________________
@adilsoncarvalho
Copy link
Member Author

Eu provisionei uma do zero e ela continua dando esta mensagem de que não existe locale configurado.

@marcocarvalho
Copy link
Member

Não tive problemas com isso...

sudo locale-gen UTF-8 retorna o q pra vc ?

@marcocarvalho
Copy link
Member

E quando exatamente dá este erro?

@marcocarvalho
Copy link
Member

bom... ele tá com os pacotes instalados... em /etc/default/locales tá en_US

sudo locale-gen pt_BR.utf8
sudo update-locale LANG=pt_BR.UTF-8

talvez?

@adilsoncarvalho
Copy link
Member Author

@marcocarvalho segue aqui o que me perguntou sobre o locale. Box zerada, primeiro ssh para ela. Isto ajuda? Acho que está faltando definir o locale na box, como você citou acima, mas já no provisionamento.

locale

19:38:48 vagrant@mcorp-box:~  ruby-head
$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

locale -a

19:38:14 vagrant@mcorp-box:~  ruby-head
$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX
pt_BR.utf8
pt_PT.utf8

@adilsoncarvalho
Copy link
Member Author

Resultado de rodar os comandos que indicou logo acima:

19:40:06 vagrant@mcorp-box:~  ruby-head
$ sudo locale-gen pt_BR.utf8
Generating locales...
  pt_BR.UTF-8... up-to-date
Generation complete.
19:41:34 vagrant@mcorp-box:~  ruby-head
$ sudo update-locale LANG=pt_BR.UTF-8
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
19:41:36 vagrant@mcorp-box:~  ruby-head
$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

@marcocarvalho
Copy link
Member

Bizarro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants