Report this

What is the reason for this report?

Fixing the locale issue in a clean DigitalOcean droplet

Posted on February 21, 2014

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

locale-gen en_US

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?

Thanks!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.