Ubuntu Locales Warning Fix

For some reason I kept getting a “localed failed” warning which can be annoying, the solution was to manually generate the locales with sudo. Example of a warning

Iwant@cheesecake:~$ perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = “en_US.UTF-8” are supported and installed on your system. perl: warning: Falling back to the standard locale (“C”).

Solution to the problem

sudo locale-gen en_US sudo locale-gen en_US.UTF-8