Voyage Linux: Locale Error with Apt
![Voyage Linux: Locale Error with Apt](https://cdn.prod.website-files.com/61af9eab93c48b14f5026d5c/63b48cc346c1a2cbda78c09c_Voyage-Linux-Locale-Error-with-Apt-GettyImages-486803862-1024x683-1.jpg)
Voyage Linux is an embedded linux distribution. I use it on some ALIX boards I have lying around, it is very stripped down, and as such there are a few annoyances which we have to fix.
The Error
This issue happens when attempting to install/upgrade packages using apt-get or aptitude.
perl: warning: Setting locale failed.<br />
perl: warning: Please check that your locale settings:<br />
LANGUAGE = (unset),<br />
LC_ALL = (unset),<br />
LANG = "en_US.utf8"<br />
are supported and installed on your system.<br />
perl: warning: Falling back to the standard locale ("C").
The Fix
We simply need to set the locales to use en_US.UTF-8 or whichever locale is correct for your situation.
# locale-gen –purge en_US.UTF-8<br />
# echo "LANG=en_US.UTF-8" >> /etc/default/locale<br />
# update-locale
Now subsequent runs of apt-get or aptitude will no longer generate the error.