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

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > x86 64-bit Users
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.

x86 64-bit Users
For the discussion of Ubuntu on the AMD 64 platform.

 
Thread Tools Display Modes
Old October 28th, 2005   #1
Eleka
A Carafe of Ubuntu
 
Join Date: Apr 2005
Location: Ciudad Real (Spain)
Beans: 64
Ubuntu 6.10 Edgy
Send a message via MSN to Eleka Send a message via Yahoo to Eleka
Unhappy Problem with locales (some solution?)

Hello

I posted a days ago a question in one post to resolve my troubble with locales in my Ubuntu 64.

After investigate a little, I find that the dpkg-reconfigure locales have a issue that make it crashes and have a "segmentation fault". Then I discover that the problem were in the locale-gen script ... but, when I compare it with other locale-gen in other computer, it's the same ... and in one it works and in mine, it crashes.

I began to read the code of the script, and I found a line that, I think, is the problematic one:

while read locale charset ...

The "while" and the "read" I think are OK, but when I execute "locale charset" in one computer working OK, it doesn't return anything at the terminal, but in mine, it returns that:

Code:
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
If you think that I forgot to install my language-packs, I did it, it's all intalled ...

Can somebody help me?

Thanks a lot and excuse my poor english!
Eleka is offline   Reply With Quote
Old October 28th, 2005   #2
Eleka
A Carafe of Ubuntu
 
Join Date: Apr 2005
Location: Ciudad Real (Spain)
Beans: 64
Ubuntu 6.10 Edgy
Send a message via MSN to Eleka Send a message via Yahoo to Eleka
Re: Problem with locales (some solution?)

I found that the problem is exactly with the command localedef, that is executed in the "while" loop ... How can a executable file providad with my Ubuntu CD are bad compiled???

How can I resolve that?
Eleka is offline   Reply With Quote
Old October 28th, 2005   #3
Navyblue
Way Too Much Ubuntu
 
Join Date: Aug 2005
Beans: 209
Re: Problem with locales (some solution?)

Have you tried "dpkg-reconfigure locales" to enable those locale?
Navyblue is offline   Reply With Quote
Old October 29th, 2005   #4
Eleka
A Carafe of Ubuntu
 
Join Date: Apr 2005
Location: Ciudad Real (Spain)
Beans: 64
Ubuntu 6.10 Edgy
Send a message via MSN to Eleka Send a message via Yahoo to Eleka
Re: Problem with locales (some solution?)

Yes, and dpkg-reconfigure locales uses locale-gen script, and it fails when runs localedef ....

Yesterday I tried to run localedef in the same way that the script do, and I've the same segmentation fault. .. Can be a bug in the localedef program?
Eleka is offline   Reply With Quote
Old November 2nd, 2005   #5
Eleka
A Carafe of Ubuntu
 
Join Date: Apr 2005
Location: Ciudad Real (Spain)
Beans: 64
Ubuntu 6.10 Edgy
Send a message via MSN to Eleka Send a message via Yahoo to Eleka
Re: Problem with locales (some solution?)

Somebody knows somaething about this?

I'm very confused .... The libc6 package are making my system unstable at all and I can't use Ubuntu on this desketop ...

Can somebody help?
Eleka is offline   Reply With Quote
Old November 7th, 2005   #6
kawinter
5 Cups of Ubuntu
 
Join Date: Oct 2005
Beans: 15
Re: Problem with locales (some solution?)

Quote:
Originally Posted by Eleka
Somebody knows somaething about this?

I'm very confused .... The libc6 package are making my system unstable at all and I can't use Ubuntu on this desketop ...

Can somebody help?
I am having the exact same problem. I have been told to run locale-gen but when I do the system crashes and reboots. I cannot run apt-get install because that causes the LOCALE error to come up and the system crashes and reboots. I have googled this and find the error mentioned clearly in many forums but no "fix" clearly mentioned. A lot of guesses, none of which has worked for me. I am also running the 64bit package of Breezy Badger.
kawinter is offline   Reply With Quote
Old November 8th, 2005   #7
Eleka
A Carafe of Ubuntu
 
Join Date: Apr 2005
Location: Ciudad Real (Spain)
Beans: 64
Ubuntu 6.10 Edgy
Send a message via MSN to Eleka Send a message via Yahoo to Eleka
Re: Problem with locales (some solution?)

I reported it some days ago to the Ubuntu bugzilla, and I'm working on it to discover whre is the problem: I know that localedef is the binary that fails, but I don't know why.

To test it, I want to install libc6-gdb (the package that contains localedef with debugging symbols), but when I run localedef, is the localedef of libc6 "normal", and I don't want to uninstall the libc6 pckage because more than 900 packages will be deleted with it ....

I'm waitting for a answer of the bugzilla people, when I know something, I will say ...
Eleka is offline   Reply With Quote
Old November 8th, 2005   #8
kawinter
5 Cups of Ubuntu
 
Join Date: Oct 2005
Beans: 15
Re: Problem with locales (some solution?)

Quote:
Originally Posted by Eleka
I reported it some days ago to the Ubuntu bugzilla, and I'm working on it to discover whre is the problem: I know that localedef is the binary that fails, but I don't know why.

To test it, I want to install libc6-gdb (the package that contains localedef with debugging symbols), but when I run localedef, is the localedef of libc6 "normal", and I don't want to uninstall the libc6 pckage because more than 900 packages will be deleted with it ....

I'm waitting for a answer of the bugzilla people, when I know something, I will say ...
I hope I understand the answer when you get it I am so much more of a newbie than you are. Right now I am feeling like my only choices are to switch distros. Maybe if I went to the regular Debian for AMD 64 I would not be having so many problems, or maybe Fedora.
kawinter is offline   Reply With Quote
Old November 8th, 2005   #9
Psquared
Quad Shot of Ubuntu
 
Psquared's Avatar
 
Join Date: Mar 2005
Location: the South
Beans: 513
Re: Problem with locales (some solution?)

Same problem here -- but a little different.

Whenever I try to compile or even install a program I get a warning, either by GTK or Perl saying that it is unable to

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

or;

Perl warning: unable to set locale: No such file or directory.

This started after I installed Enlightenment. There are several modules which have to be compiled and it simply borks on the ./autogen.sh script.

I have run the dpkg-reconfigure locales so many times I am sick of it.

Please somebody come up with a solution.

I found a very technical website dealing the locale issue and Perl, but I couldn't make heads nor tails of it.
Psquared is offline   Reply With Quote
Old November 10th, 2005   #10
kawinter
5 Cups of Ubuntu
 
Join Date: Oct 2005
Beans: 15
Re: Problem with locales (some solution?)

Well I gave up. I've fought with the locales problem for days and I need the computer to work and work reliably. I wiped Ubuntu and installed straight Debian which seems to be working much better. Best wishes to all the users on the Ubuntu forum.
kawinter 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 04:44 PM.


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