Voyage Linux: Locale Error with Apt

Voyage Linux: Locale Error with Apt

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.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.utf8"
    are supported and installed on your system.
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
# echo "LANG=en_US.UTF-8" >> /etc/default/locale
# update-locale

Now subsequent runs of apt-get or aptitude will no longer generate the error.