Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old December 25th, 2006   #1
xsism
Spilled the Beans
 
Join Date: Dec 2006
Beans: 13
Bad entry for locales / setting locale failure

I believe after i installed LIVeS and LMMS, one of the dependent packages reconfigured something.

My suspect is libc6. My main issue is that VLC began telling me:
Code:
Cannot set locale to ''.
which when run from terminal gives:
Code:
VLC media player 0.8.4 Janus

(process:7234): Gdk-WARNING **: locale not supported by C library

(.:7234): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

So I investigated the problem and began seeing similar errors all leading to locales. I searched high and low on google and ubuntu forums and tried many attempts to sovle the problem, but I couldn't figure it out.

I finally did this:
Code:
$/usr/lib/locale/en_US$ sudo dpkg-reconfigure --force locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US",
        LC_ALL = "en_US",
        LANG = "en_US"
    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
Generating locales...
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... up-to-date
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... up-to-date
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... up-to-date
  en_SG.UTF-8... up-to-date
Error: Bad entry 'en_US '
  en_US.ISO-8859-1... up-to-date
Error: Bad entry 'en_US.UTF-8 '
  en_US.UTF-8... up-to-date
Error: Bad entry 'en_US.utf8 '
  en_ZA.UTF-8... up-to-date
  en_ZW.UTF-8... up-to-date
Generation complete.
Current default timezone: 'America/Monterrey'.
Local time is now:      Mon Dec 25 00:18:38 CST 2006.
Universal Time is now:  Mon Dec 25 06:18:38 UTC 2006.
Run 'tzconfig' if you wish to change it.

I do not know what bad entry means nor how I can fix it. I rebooted and still got the same errors about locales being wrong. I use perl to test and I get variations of:
Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US",
        LC_ALL = "en_US",
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

I've tried en_US, en_US.UTF-8, en_US.utf8 and all gave the same errors.

I looked into removing libc6 and locales so that I could get a fresh install of them, but they are used by far too many packages.

I finally got nvidia drivers working after many reboots and hours of reading forums, i'm so tired of this crap randomly breaking or not working. I'm desperate, please help!
xsism is offline   Reply With Quote
Old December 25th, 2006   #2
NeoLithium
Dark Roasted Ubuntu
 
NeoLithium's Avatar
 
Join Date: Sep 2006
Location: Winnipeg, MB, Canada
Beans: 1,043
Ubuntu 8.10 Intrepid Ibex
Send a message via MSN to NeoLithium
Re: Bad entry for locales / setting locale failure

Is your time zone set correctly from your install? I just noticed the
Code:
Current default timezone: 'America/Monterrey'.
Just asking cause I had that issue once where my tz was conflicting with the locale
__________________
System: Biostar i45 | E8400@4GHz | 4GB PC2-8000 | EVGA GTX260 216 | 250GB WD (OS)/1TB F1 (Storage)
Cooling: DTek Fuzion V2 | MCR220 | MCP655 | Primochill Tubing | Internal WC in CM HAF 932
NeoLithium is offline   Reply With Quote
Old December 25th, 2006   #3
xsism
Spilled the Beans
 
Join Date: Dec 2006
Beans: 13
Re: Bad entry for locales / setting locale failure

it's the only GMT-6 i could find on the stupid TZ map. I live in Texas.


Remember too, I never had these issues until today, when I installed LMMS and LIVeS.

I think the issues is LIVeS. I got the DEB from http://www.getdeb.net/app.php?name=lives since there is no official pack.

I've since removed both LMMS and LIVeS, but that didn't help.


Is there ANY way to see what packages have been installed recently?


EDIT: synaptic hs a history, but doesn't show when I installed the LIVeS deb pack, how can I figure out what packs it installed? It was like 21 packs iirc.

better yet, how do I just fix the locales conflicts?

Last edited by xsism; December 25th, 2006 at 03:06 AM..
xsism is offline   Reply With Quote
Old December 25th, 2006   #4
xsism
Spilled the Beans
 
Join Date: Dec 2006
Beans: 13
Re: Bad entry for locales / setting locale failure

SOLVED (so it appears)
--------------------------------

I edited /etc/belocs/locales-gen.conf ...
Code:
PURGE=yes
then did...
Code:
export LC_ALL="C"
sudo dpkg-reconfigure --force locales
Everything was reset and I don't have those pesky errors. After I logged out and then back in, VLC no longer gave the errors either.

My /etc/environment file now looks like this
Code:
LANG="C"
LANGUAGE="C"
LC_ALL="C"
I'm going to try en_US.UTF-8 now, but I know for sure it works with C
EDIT----
Ok, Nothing else works besides C, but I discovered that the only thing that needs to be C is LC_ALL, so you can do
export LC_ALL="C"

this is my working enviroment
Code:
$ locale
LANG=en_US:en
LANGUAGE=en_US:en
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
END EDIT-----


Here are some pages I used in my journey...
http://www.ubuntuforums.org/showthread.php?t=159177
http://forums.vpslink.com/showthread.php?t=286
http://www.ubuntuforums.org/showthread.php?p=1057783
http://oriya.sarovar.org/docs/gettin...ed/node16.html
http://www.ubuntuforums.org/showthread.php?t=83315

---
if anyone needs help i'll try to assist best I can. This was on a Ubuntu 6.06 Dapper LTS install on HD with nvidia kernel compile.

Remember that packages get updated over time adn that can cause some weirdness.


Last edited by xsism; December 25th, 2006 at 04:41 AM.. Reason: updated info
xsism is offline   Reply With Quote
Old January 10th, 2008   #5
mahasmb
Way Too Much Ubuntu
 
mahasmb's Avatar
 
Join Date: May 2007
Location: Canada
Beans: 291
Ubuntu 9.10 Karmic Koala
Re: Bad entry for locales / setting locale failure

THANK YOU!

Thank you ever so much!

This worked. I've been struggling for days on this problem.
mahasmb is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:34 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry