Falling back to the standard locale – Solution

A following warning message may appear on your Linux terminal:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_AU.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

The problem is that you do not have locales package installed or the package is not configured. This message may appear for example when you are installing new packages into your Linux system. Fortunately, there is an easy fix to this problem.
First make sure that you have locales package installed:

apt-get install locales

The previous command will install locales package or it will output that locales is already installed.

dpkg-reconfigure locales

This command will reconfigure your locales. For example, if you are from Australia you add – en_AU ISO-8859-1 – en_AU.UTF-8 UTF-8 and choose : en_AU This is all. To check that you have fixed the locales problem use:

echo | perl

command. If not output is produced then the locales problems is fixed.