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.
prints the following:
locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory C C.UTF-8 POSIX
This is the result of locale-gen:
root@vps94194:/# locale-gen -bash: locale-gen: command not found
The 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.