Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

200
Views
Recibí la advertencia setlocale LC_CTYPE cuando me conecto ssh a vagrant centos 6

Soy un principiante con vagabundo. Intento crear una máquina virtual (cent os 6) en mi computadora con vagrant. Cuando ejecuto vagrant ssh, imprime esta advertencia:

 -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

Cuando ejecuto locale , obtengo esto:

 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 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=

Busqué durante una hora pero todavía no puedo arreglar eso.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Para CentOS o Amazon AMI Linux, agregue estas líneas a /etc/environment (créelo, si no existe):

 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8

Para editar este archivo a través de la consola SSH, intente

 sudo nano /etc/environment

Editar

Para distribuciones relacionadas con Debian (Ubuntu, etc.), debe verificar que /etc/default/locale esté vacío. Ese es el resultado de elegir Ninguno en dpkg-reconfigure locales , que se sugiere si los usuarios acceden a través de SSH (consulte Debian Wiki ).

/etc/environment está en desuso desde Debian Lenny (5.0) .

over 4 years ago · Santiago Trujillo Report

0

Bajo la raíz en bashrc agregue lo siguiente:

 vi /root/.bashrc export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8

Y reinicie su sistema después.

over 4 years ago · Santiago Trujillo Report

0

Puede establecer LC_ALL en C , por ejemplo

 export LC_ALL=C

o prefijo antes de conectarse a su VM:

 LC_ALL=C ssh vagrant@localhost

Nota: También puede considerar configurar SetEnv para su configuración SSH ( man ssh_config ) como se explica a continuación.


Para hacerlo permanente, puede agregar la siguiente regla en su ~/.ssh/config :

 Host * SetEnv LC_ALL=C

Suponiendo que su servidor obtuvo la siguiente línea en /etc/ssh/sshd_config :

 AcceptEnv LANG LC_*

Compruebe también: man ssh_config y man sshd_config .

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!