If you’ve installed Debian or Ubuntu recently you’ve probably come accross this annoying error that spams every single fucking command you run:

perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_PAPER = "en_DK.UTF-8", LC_ADDRESS = "en_DK.UTF-8", LC_MONETARY = "en_DK.UTF-8", LC_NUMERIC = "en_DK.UTF-8", LC_TELEPHONE = "en_DK.UTF-8", LC_IDENTIFICATION = "en_DK.UTF-8", LC_MEASUREMENT = "en_DK.UTF-8", LC_TIME = "en_DK.UTF-8", LC_NAME = "en_DK.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").

Googling for a fix, you get a lot of well-meaning people telling you to run dpkg-reconfigure locales or to install a bunch of packages (I want LESS shit to be annoyed at, not MORE), but none of the fixes really work. Except one. I’m writing this post because right now I’m working on a server and I can’t find the one fucking fix that worked for me.

This is a fucking bug and it’s annoying like fuck. It’s right up there with the blinking banner ad that tells you you’re the 1 millionth winner of some shit contest you never entered.