When I log into my server (Debian 7) through PuTTY, I get greeted by a message saying:-bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8).Then, when I try to run almost any command I get this:perl: warning: Setting locale failed.perl: warning: Please check that your locale settings:        LANGUAGE = en_GB:en,        LC_ALL = en_GB.UTF-8,        LANG = en_GB.UTF-8    are supported and installed on your system.perl: warning: Falling back to the standard locale (C).I have looked all over the web for help. My /etc/environment file has 'LC_ALL=en_GB.UTF-8' within it.Typing;locale -aprints the following:locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_COLLATE to default locale: No such file or directoryCC.UTF-8POSIXThis is the result of locale-gen:root@vps94194:/# locale-gen-bash: locale-gen: command not foundThe same goes for the update-locale command.I cannot reinstall the locale through aptitude as the error blocks it. I can't use dpkg to reconfigure for the same reason.I really don't know how to fix this. Nothing so far has made any difference.
LC_ALL: cannot change locale
debian;locale
Use:export LC_ALL=Cand install what is needed via aptitude (locales package or something equivalent).If you still get some error due to previous failure, first run:apt-get install -f