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

Error: 'C.UTF-8' is not a supported language or locale #9

Open
joepstender opened this issue Apr 20, 2020 · 4 comments
Open

Error: 'C.UTF-8' is not a supported language or locale #9

joepstender opened this issue Apr 20, 2020 · 4 comments

Comments

@joepstender
Copy link

Following the blogpost Deploying an Elixir app to Digital Ocean with mix_deploy, I run into the following error on the step: sudo bin/build-install-deps-ubuntu
===> Installing locale C.UTF-8
Error: 'C.UTF-8' is not a supported language or locale

@joepstender
Copy link
Author

joepstender commented Apr 20, 2020

I had to:
sudo vim /etc/default/locale
Then paste the following:

LANGUAGE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

Save the file. Logout and login again.

@reachfh
Copy link
Contributor

reachfh commented Apr 21, 2020

C.UTF-8 ended up not being well supported, so I switched to en_US.UTF-8 (or en_US.utf8) in my latest scripts. I think this should have already been fixed.... can you make sure you are running the latest code and see if it still occurs?

@joepstender
Copy link
Author

joepstender commented Feb 4, 2021

Yeah I tried again and this still occurs, now this time I used Ubuntu 20.04 (LTS) x64, could that cause the issue?
Strange because bin/build-install-deps-ubuntu indeed has:

# Make sure we have a good LANG
export LANG="${LANG:-en_US.UTF-8}"

@reachfh
Copy link
Contributor

reachfh commented Feb 6, 2021

The issue is that your OS install does not have the locale defined. I guess it's super minimal. That's why I was trying to use C.UTF-8, but even that name is not consistent between Linux distros.

You can define the en_US.UTF-8 locale with something like:

sudo localedef -i en_US -f UTF-8 en_US.UTF-8

Or maybe

localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

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