Amazon Linux 2 - Can't set locale

0

I am in the last month of my Free Tier trial and I have a t2.micro instance running Amazon Linux 2.
I logged into my instance today trying to update it with yum, which I have done many times before, but now when I log in or use yum, I get a bunch of warnings that it can't set the locale to en_US.utf-8, which is set in the environment variables.
Is there any way of fixing these warnings?

bradnak
질문됨 4년 전3405회 조회
1개 답변
0

sudo nano /etc/environment

add these lines:

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

"Ctrl + X" to exit
Write "yes" to confirm the changes
And ENTER.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠