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
asked 3 years ago3321 views
1 Answer
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.

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions