How-to fix "Warning: No support for locale: en_US.utf"

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

How-to fix "Warning: No support for locale: en_US.utf"

Postby powerhouse on Sat Sep 01, 2012 10:57 am

Linux Mint 13 (as well as latest Ubuntu versions) has made some changes regarding local language support and how its setup. As a result, you will see the following error, for example when running update-initramfs:

Warning: No support for locale: en_US.utf8


This is because locale-gen is using an archive file to store all the locales, but many utilities are still looking for the locale files.

Have a look at /usr/lib/locale/. If your output looks like this, read on:

Code: Select all
# ls /usr/lib/locale/
C.UTF-8  locale-archive


The warning isn't critical, as far as I can tell, but if it bothers you or causes troubles, try the following in a terminal window:

Code: Select all
sudo locale-gen --purge --no-archive


This command purges (deletes) the archive file and replaces it with the .utf8 files.

Code: Select all
# ls /usr/lib/locale/
C.UTF-8     de_LI.utf8  en_CA.utf8  en_IN       en_US.utf8
de_AT.utf8  de_LU.utf8  en_DK.utf8  en_NG       en_ZA.utf8
de_BE.utf8  en_AG       en_GB.utf8  en_NZ.utf8  en_ZM
de_CH.utf8  en_AU.utf8  en_HK.utf8  en_PH.utf8  en_ZW.utf8
de_DE.utf8  en_BW.utf8  en_IE.utf8  en_SG.utf8


Remark: The above output represents the English and German locale files, your output may be different depending on the languages you selected.
Asus Sabertooth X79 (NOT recommended), i7 3930K CPU, 8x4GB Kingston DDR3 RAM, Noctua NH-D14 SE2011 CPU cooler, Sapphire (AMD) 6450 GPU, PNY Quatro 2000 GPU, Sandisk Extreme 120GB SSD, WD 2TB WD20EARX HD, Corsair 500R case, SeaSonic 660W Gold X-Series PS
powerhouse
Level 4
Level 4
 
Posts: 361
Joined: Thu May 03, 2012 3:54 am

Linux Mint is funded by ads and donations.
 

Re: How-to fix "Warning: No support for locale: en_US.utf"

Postby xenopeek on Sat Sep 01, 2012 11:35 am

Thanks! I had been wondering about that error :)
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10484
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How-to fix "Warning: No support for locale: en_US.utf"

Postby martywd on Sat Sep 01, 2012 12:59 pm

I saw a 'fix' for this issue somewhere else. It didn't work for me.

This fix with very fine explanation does!

Code: Select all
$
marty@xxxxxx:~
$ sudo update-initramfs -u
[sudo] password for marty:
update-initramfs: Generating /boot/initrd.img-3.2.0-29-generic-pae
Warning: No support for locale: en_US.utf8
marty@xxxxxx:~
$ sudo locale-gen --purge --no-archive
Generating locales...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.
marty@xxxxxx:~
$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-3.2.0-29-generic-pae
marty@xxxxxx:~
$

No error(s).

Thanks 'powerhouse'
.
martywd
Level 2
Level 2
 
Posts: 59
Joined: Sun May 08, 2011 10:35 am
Location: Texas

Re: How-to fix "Warning: No support for locale: en_US.utf"

Postby powerhouse on Sun Sep 02, 2012 3:31 pm

Vincent Vermeulen wrote:Thanks! I had been wondering about that error :)


Yep, it's one of these things that might get people worried. Hope it's going to be fixed, if only for cosmetic reasons.
Asus Sabertooth X79 (NOT recommended), i7 3930K CPU, 8x4GB Kingston DDR3 RAM, Noctua NH-D14 SE2011 CPU cooler, Sapphire (AMD) 6450 GPU, PNY Quatro 2000 GPU, Sandisk Extreme 120GB SSD, WD 2TB WD20EARX HD, Corsair 500R case, SeaSonic 660W Gold X-Series PS
powerhouse
Level 4
Level 4
 
Posts: 361
Joined: Thu May 03, 2012 3:54 am

Re: How-to fix "Warning: No support for locale: en_US.utf"

Postby powerhouse on Sun Sep 02, 2012 3:39 pm

martywd wrote:I saw a 'fix' for this issue somewhere else. It didn't work for me.

This fix with very fine explanation does!

Code: Select all
$
marty@xxxxxx:~
$ sudo update-initramfs -u
[sudo] password for marty:
update-initramfs: Generating /boot/initrd.img-3.2.0-29-generic-pae
Warning: No support for locale: en_US.utf8
marty@xxxxxx:~
$ sudo locale-gen --purge --no-archive
Generating locales...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.
marty@xxxxxx:~
$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-3.2.0-29-generic-pae
marty@xxxxxx:~
$

No error(s).

Thanks 'powerhouse'
.



You're welcome! Though I believe it's only a cosmetic issue. Can't remember that it caused any problems. In case it gets fixed, you could run sudo locale-gen --purge to get back to the archive way of storing locales (haven't tried it though).
Asus Sabertooth X79 (NOT recommended), i7 3930K CPU, 8x4GB Kingston DDR3 RAM, Noctua NH-D14 SE2011 CPU cooler, Sapphire (AMD) 6450 GPU, PNY Quatro 2000 GPU, Sandisk Extreme 120GB SSD, WD 2TB WD20EARX HD, Corsair 500R case, SeaSonic 660W Gold X-Series PS
powerhouse
Level 4
Level 4
 
Posts: 361
Joined: Thu May 03, 2012 3:54 am

Re: How-to fix "Warning: No support for locale: en_US.utf"

Postby martywd on Sun Sep 02, 2012 3:53 pm

powerhouse wrote:......

...In case it gets fixed, you could run sudo locale-gen --purge to get back to the archive way of storing locales...


I'll remember to try that if/when the fix comes along.

Thanks. Again!
.
martywd
Level 2
Level 2
 
Posts: 59
Joined: Sun May 08, 2011 10:35 am
Location: Texas

Re: How-to fix "Warning: No support for locale: en_US.utf"

Postby Catbuntu on Wed Jan 02, 2013 7:41 am

Thanks! The local-gen command worked like a charm. No more odd warnings!

Catbuntu
Image
Acer Aspire 6930.
CPU→Intel Core 2 Duo @ 2,00GHz. RAM3GB. Graphics card→NVIDIA GeForce 9300M GS. O.S.→Linux Mint 14.1 «Nadia» 64-bit Cinnamon ed.
Catbuntu's Bloggie
User avatar
Catbuntu
Level 2
Level 2
 
Posts: 73
Joined: Tue Oct 23, 2012 2:37 pm
Location: Catalunya

Re: How-to fix "Warning: No support for locale: en_US.utf"

Postby powerhouse on Thu Jan 03, 2013 8:54 pm

Catbuntu wrote:Thanks! The local-gen command worked like a charm. No more odd warnings!

Catbuntu


You're welcome!
Asus Sabertooth X79 (NOT recommended), i7 3930K CPU, 8x4GB Kingston DDR3 RAM, Noctua NH-D14 SE2011 CPU cooler, Sapphire (AMD) 6450 GPU, PNY Quatro 2000 GPU, Sandisk Extreme 120GB SSD, WD 2TB WD20EARX HD, Corsair 500R case, SeaSonic 660W Gold X-Series PS
powerhouse
Level 4
Level 4
 
Posts: 361
Joined: Thu May 03, 2012 3:54 am

Re: How-to fix "Warning: No support for locale: en_US.utf"

Postby horirevens on Tue Feb 12, 2013 12:03 pm

martywd wrote:I saw a 'fix' for this issue somewhere else. It didn't work for me.

This fix with very fine explanation does!

Code: Select all
$
marty@xxxxxx:~
$ sudo update-initramfs -u
[sudo] password for marty:
update-initramfs: Generating /boot/initrd.img-3.2.0-29-generic-pae
Warning: No support for locale: en_US.utf8
marty@xxxxxx:~
$ sudo locale-gen --purge --no-archive
Generating locales...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.
marty@xxxxxx:~
$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-3.2.0-29-generic-pae
marty@xxxxxx:~
$

No error(s).

Thanks 'powerhouse'
.


It work for me too. thanks a lot :D
horirevens
Level 1
Level 1
 
Posts: 3
Joined: Tue Feb 12, 2013 10:59 am

Linux Mint is funded by ads and donations.
 

Return to Tutorials / Howtos

Who is online

Users browsing this forum: Google [Bot] and 10 guests