I get this problem a lot.
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").
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_ALL to default locale: No such file or directory
I think possibly this solves it.
$ sudo apt-get install --reinstall language-pack-en
It says comforting things like...
Generating locales...
en_AU.UTF-8... done
en_BW.UTF-8... done
Update: Except it didn't work. But maybe this will.
$ sudo localedef -i en_AU -f UTF8 en_AU.utf8

Hi,
I solved this problem like this:
apt-get install locales
and then
dpkg-reconfigure locales
in the dialog window I selected US_en.UTF8 (or something similar) and no problems now.
hrasko / 11:22pm / 18 September 2008
Thanks!
This has solved an extremely annoying problem that was REALLY getting on my nerves.
Thanks again, and bookmarked for future reference.
Scott / 11:44pm / 11 November 2008
Solved! Thanks my friend; I’m now free from annoying bugs whenever I apt-get anything!
Jon Chase / 3:43am / 22 November 2008