locale deletion trauma

Joined
Oct 29, 2008
Messages
1
Reaction score
0
er.. I followed a guide to free up some disk space on my AA1 in which it said I should delete "locales".

However I think I might have been a bit, shall we say, over-zealous....

Now when I run add remove programs I get this error..

-----------------------------------------------------------------------
"An unhandled exception has occurred. This is most likely a bug. Please save the crash dump and file a detailed bug report against pirut at https://bugzilla.redhat.com/bugzilla

Component: pirut
Summary: TB9c48eca5 locale.py:476:setlocale:Error: unsupported locale setting

Traceback (most recent call last):
File "/usr/sbin/pirut", line 476, in <module>
main()
File "/usr/sbin/pirut", line 472, in main
pm.run()
File "/usr/sbin/pirut", line 400, in run
self.doRefresh()
File "/usr/sbin/pirut", line 416, in doRefresh
self.doRefreshRepos(self._onlyrepo)
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 324, in doRefreshRepos
pbar = PirutProgressCallback(_("Retrieving software information"),
File "/usr/lib/python2.5/gettext.py", line 368, in lgettext
return tmsg.encode(locale.getpreferredencoding())
File "/usr/lib/python2.5/locale.py", line 512, in getpreferredencoding
setlocale(LC_CTYPE, "")
File "/usr/lib/python2.5/locale.py", line 476, in setlocale
return _setlocale(category, locale)
Error: unsupported locale setting

Local variables in innermost frame:
locale:
category: 0"
-----------------------------------------------------

As you can probably guess, by the fact that I've done such a stupid thing, that I know very little about compooters and F*** all about linux..

Any help would be greatly appreciated...
 
I can't help! Sorry! But I've had the same error now. I thought it was a Skype install issue, but I now can't install anything. Been scouring the forums for a while; I'll let you know if I come across anything.

I should mention that I haven't done any deleting of locales, or whatever...

Just a point of interest, should you be able to use both pirut and yum? Probably a stupid question, but I haven't been able to use pirut since I started using yum with the livna repository, although I have also done some other mods in between...
 
Well, I haven't solved the pirut issue, but I got around it by installing the .rpm file for Skype with the command rpm -U xxx.rpm (where "xxx" is the name of the rpm file).

Maybe that would help for you.
 
Well, you haven't done anything silly (I hope not yet...)

Look at the last code

Code:
sudo find /usr/share/locale/* -maxdepth 0 -type d -not -name en\* -exec rm -rf {} \;
sudo rm /usr/lib/locale/locale-archive
sudo localedef -f UTF-8 -i en_US en_US.UTF8

It is trying to force the default to en_US.
More than obvious, if you are using Linpus in a different language than US English, it will fail, not complaining about anything until the point you want to run some software touching the locales...

Just change en_US into your language...
 
Hi tmcthree,

Sorry to hear about your issue, :(
er.. I followed a guide to free up some disk space on my AA1 in which it said I should delete "locales".

What exactly did you do & which guide did you use? As this should take of most

sudo yum clean all
 
Back
Top