I’ve read numerous posts about people having problems with the default locale on a clean Digital Ocean droplet with Ubuntu. This manifests in getting errors like:
bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
There is a quick fix, which is just running
But. Can’t this be fixed in the default Ubuntu image? Apparently en_US is installed as the default locale, but the locale files aren’t generated. Am I thinking too simple? Are there any reasons why this can’t be included in the default image?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.