Ubuntu Reconfigure Locale

When the default locale is not setup properly, following warning displayed in the ubuntu terminal

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "en_AU.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

To setup locale

sudo dpkg-reconfigure locales
sudo locale-gen