Monthly Archives: May 2016

Warning during apt-get update: perl: warning: Setting locale failed.

I have an Ubuntu server 14.04 and got the message during system update:

?> sudo apt-get -y dist-upgrade
...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_NAME = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_PAPER = "en_US.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_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
...

To solve this you will have to compile the locale definitions:

?> sudo locale-gen en_US en_US.UTF-8

and then reconfigure the locale setup:

?> sudo dpkg-reconfigure locales

Problem solved!

LibreElec 7.0 and MCE remote

I just bought my self a ODroid C2 to be my LibreElec Media Center (http://libreelec.tv).

LibreElec don’t have an image for my new ODroid but an image can be downloaded from the ODroid forum (http://forum.odroid.com/viewtopic.php?f=138&t=20415&hilit=ir+remote).

On Linux you will have to use the dd command to wrote the image to an eMMC/SD module:

?> sudo dd if=<image filename> of=/dev/sdx bs=4M

?> sudo sync

Be careful to write to the correct device or you might loose all data on a disk drive (use the lsblk command to list all disk drives).

Then insert the eMMC/SD module in the the ODroid C2 and connect HDMI, mouse, keyboard and at last the power.

LibreElec should boot up and be ready to use except for your MCE remote.

There is a hole big process to record IR signals from your remote but thats not very easy and my results have not been good.

The easiest way is the get Lirc MCE config file from a standard installation and copy it to the /storage/.config folder on the ODroid C2.

Either install Lirc on an computer and find the file lircd.conf.mceusb or download the file :lircd.conf

To copy it to the ODroid C2 do:

?> scp lircd.conf.mceusb root@libreelec:/storeage/.config/lircd.conf

Reboot the ODroid and the MCE remote should be working now.