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

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
mara

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

Post by mara »

Wouldn't it be enough to generate only en_US.UTF-8 locale?

Code: Select all

sudo locale-gen --no-archive en_US.utf8
boterbloem5

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

Post by boterbloem5 »

Worked for me, thanks :)
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

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

Post by powerhouse »

mara wrote:Wouldn't it be enough to generate only en_US.UTF-8 locale?

Code: Select all

sudo locale-gen --no-archive en_US.utf8
Probably yes, but with disk space being cheap, why bother. Besides, if you remove language packs you might break things, so I wouldn't touch that.
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

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

Post by austin.texas »

Just for the record:
This command: sudo locale-gen --purge --no-archive also fixes the messed up sort order in Nemo, where Capitalized names are all sorted first, before un-capitalized names, which is due to a mis-configuration of locales.

Note the location of Grub.cfg here
Image

Fixed with the locale command:
Image
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

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

Post by powerhouse »

Thanks austin.texas, I didn't notice that. Good to know!
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
AncientBrit

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

Post by AncientBrit »

December 2017 and your post is *still* relevant - thank you!

Peter :D
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

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

Post by powerhouse »

AncientBrit wrote:December 2017 and your post is *still* relevant - thank you!

Peter :D
Thanks Peter, and a Happy New Year 2018!
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
j8a

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

Post by j8a »

Hi,
I have the same after upgrade to Sylvia Cinnamon but following the instructions the reported lack of support for locale: en_US.utf8 disappeared.

Thanks in advance :lol:
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

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

Post by powerhouse »

j8a wrote: Mon Jan 08, 2018 5:55 pm Hi,
I have the same after upgrade to Sylvia Cinnamon but following the instructions the reported lack of support for locale: en_US.utf8 disappeared.

Thanks in advance :lol:
Thanks! I had never anticipated that this "fix" would be relevant for such a long time.
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
User avatar
yekim54
Level 1
Level 1
Posts: 9
Joined: Wed May 10, 2017 1:32 pm
Location: Beautiful Downtown Dunn Loring

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

Post by yekim54 »

Thanks, powerhouse. I just found your fix today and finally got rid of those perplexing warnings I kept getting in Linux Mint 18.3.
Linux Mint Xfce 20.3 on Intel NUC7i3 and Asus Chromebox CN60 i7
User avatar
Flemur
Level 20
Level 20
Posts: 10097
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

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

Post by Flemur »

martywd wrote: Sat Sep 01, 2012 12:59 pm I saw a 'fix' for this issue somewhere else. It didn't work for me.
Me neither; I get

Code: Select all

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
For some unknown files or directories. Handy!

I was getting incorrect sort order in thunar so set everything to "C" - then it worked:
export LANG="C"
export LC_ALL="C"
export LC_COLLATE="C"
I'd get harmless "Warning: No support for locale: en_US.utf", but one warning is better than a whole bunch of warnings or errors (it doesn't say which they are).

"locale" is more of the fine software from the good folks at freedesktop.org, destroying linux one step at a time.

Edit: fixed by copying over the original from a backup:

Code: Select all

$ ls /usr/lib/locale
C.UTF-8  locale-archive 
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
AncientBrit

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

Post by AncientBrit »

powerhouse wrote: Mon Jan 08, 2018 5:01 pm
AncientBrit wrote:December 2017 and your post is *still* relevant - thank you!

Peter :D
Thanks Peter, and a Happy New Year 2018!
Thanks, powerhouse, and my apologies for the late response (I'm old, what can I say? :roll: ) And your post is STILL relevant today (I just employed the steps yet again). Maybe you should chisel the commands into, oh, I don't know, stone tablets, just in case they're needed two millennia from now :D

Peter
WCMwcm

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

Post by WCMwcm »

Excellent advice!

I got this afterwards:

ls /usr/lib/locale/
C.UTF-8 en_AU.utf8 en_CA.utf8 en_GB.utf8 en_IE.utf8 en_NG en_PH.utf8 en_US.utf8 en_ZM
en_AG en_BW.utf8 en_DK.utf8 en_HK.utf8 en_IN en_NZ.utf8 en_SG.utf8 en_ZA.utf8 en_ZW.utf8

Not sure why I have so many?
Locked

Return to “Tutorials”