locale deletion trauma

Discussion in 'Acer Aspire One' started by tmcthree, Nov 4, 2008.

  1. tmcthree

    tmcthree

    Joined:
    Oct 30, 2008
    Messages:
    1
    Likes Received:
    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...
     
    tmcthree, Nov 4, 2008
    #1
  2. tmcthree

    londonali1010

    Joined:
    Oct 24, 2008
    Messages:
    21
    Likes Received:
    0
    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...
     
    londonali1010, Dec 1, 2008
    #2
  3. tmcthree

    londonali1010

    Joined:
    Oct 24, 2008
    Messages:
    21
    Likes Received:
    0
    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.
     
    londonali1010, Dec 2, 2008
    #3
  4. tmcthree

    Wild78

    Joined:
    Mar 25, 2009
    Messages:
    2
    Likes Received:
    0
    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...
     
    Wild78, Apr 3, 2009
    #4
  5. tmcthree

    barrie

    Joined:
    Nov 11, 2008
    Messages:
    296
    Likes Received:
    0
    Location:
    UK / Switzerland
    Hi tmcthree,

    Sorry to hear about your issue, :(
    What exactly did you do & which guide did you use? As this should take of most

    sudo yum clean all
     
    barrie, Apr 3, 2009
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.