By dter
I’m having a nightmare starting a fresh new droplet; First, an issue with the locale. LANGUAGE and LC_ALL are always unset -> no problem, followed the several possible online solutions including: export LANGUAGE=en_US.UTF-8 etc, reconfigured the locales, run locale and see:
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.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=en_US.UTF-8
Great, restart, and I’m back to square 1; they are lost again. I tried several other solutions, they either do not work (i.e. language and lc_all remain unset) or upon restart I lose them again.
Issue 2: when I try to add a new user (e.g. admin) I get the error that the group already exists. I’ve created an admin user group before in another droplet and had no issues yet on a fresh droplet, says it exists?
I’ve tried creating a new droplet several times now with no luck specifically (or rather at this stage) to these 2 issues. (Hope I’m not billed for each droplet I created and destroyed - would cost me a fortune)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Here’s a summary from a solution by Sakshi’s Oracle blog that works for Ubuntu:
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
then edit /etc/default/locale and add LC_ALL and LANGUAGE with values “en_US.UTF-8”
LANG="en_US.UTF-8"
LC_ALL=en_US.UTF-8
LANGUAGE=en_US.UTF-8
Log out and then log back in and run locale. Reboot and run locale.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.