dter
By:
dter

Droplet not retaining settings and pre-existing user groups

June 14, 2016 692 views
Deployment DigitalOcean Linux Basics Billing Linux Commands Ubuntu

I'm having a nightmare starting a fresh new droplet; First, an issue with the locale. LANGUAGE and LCALL are always unset -> no problem, followed the several possible online solutions including: export LANGUAGE=enUS.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)

1 Answer

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.

Have another answer? Share your knowledge.