gPodder stopped working today. Locale error.

Posted 11 June 2011 by

S

o, I get on my PC this morning to transfer some Podcasts onto my Sansa Clip. gPodder wouldn’t start. Strange. So, I ran it from the Terminal and got this :

$ gpodder

(process:5670): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/usr/bin/gpodder", line 201, in
from gpodder import gui
File "/usr/lib/pymodules/python2.6/gpodder/gui.py", line 71, in
from gpodder import util
File "/usr/lib/pymodules/python2.6/gpodder/util.py", line 69, in
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.6/locale.py", line 513, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

My Google FU wasn’t good, so I uninstalled gPodder. I got this:

$ sudo apt-get remove gpodder
[sudo] password for XXXXXXX:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
duplicity python-boto python-mygpoclient python-gpod librsync1 python-pymtp
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
gpodder
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
After this operation, 2732kB disk space will be freed.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_NZ"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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
(Reading database ... 172475 files and directories currently installed.)
Removing gpodder ...
Processing triggers for python-support ...
Processing triggers for menu ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
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
Rebuilding /usr/share/applications/desktop.en_NZ.cache...
WARNING: System locale is invalid
Processing triggers for man-db ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_NZ"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_NZ"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct
Processing triggers for python-support ...

After much searching I found this Linux Questions Forum thread and Post 11 gave me the solution.

Their solution was:

sudo locale-gen en_US.UTF-8

because of their locale. Mine is New Zealand, so I just had to do this:

$ sudo locale-gen en_NZ

and this occurred:

$ sudo locale-gen en_NZ
Generating locales...
en_NZ.ISO-8859-1... done
Generation complete.

I just wish I new why this happened in the first place. gPodder did have an update yesterday, so I assume they made changes to the way gPodder handles locales.

Bad Kiwi.

Image of Bad Kiwi

Post Details

Leave a Reply