installArchives() failed: perl: warning: Setting locale failed.

Solution from Robert Penz, I'm posting it here.

Fix the warning by generating the locale(s) the warning is complaining about. To generate the locales run sudo locale-gen followed the locale.

For example this is the error I had:

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

To fix I had to generate en_IE, en_IE.UTF-8, and en_US.UTF-8:

$ sudo locale-gen en_IE en_IE.UTF-8 en_US.UTF-8
Generating locales...
de_AT.UTF-8... done
en_US.ISO-8859-1... done
en_US.UTF-8... up-to-date
Generation complete.

Done. Happy days.

To test everything is ok you can run sudo dpkg-reconfigure locales:

$ sudo dpkg-reconfigure locales
Generating locales...
  en_IE.ISO-8859-1... up-to-date
  en_IE.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
Generation complete.

You are most likely missing the English language pack.
Install it with the following command:

sudo apt-get install language-pack-en

source: http://collingo.com/fixing-ubuntu-locale-errors/