If you have errors like —>
PROBLEM (ERRORS):
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = “UTF-8”,
LANG = “en_US.UTF-8”
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_ALL to default locale: No such file or directory
….while updating with aptitude update ; aptitude safe-upgrade then the solution to you problem is –>
SOLUTION:
# export LANGUAGE=en_US.UTF-8
# export LANG=en_US.UTF-8
# export LC_ALL=en_US.UTF-8
# locale-gen en_US.UTF-8
4 responses to “debian updating perl locale error”
I had similar problems, to the point where I couldn’t run deluge( torrent client). It terminated with the error : “locale::facet::_S_create_c_locale name not valid”.
I tried your export suggestion, but it was not enough. After a lot of fruitless mucking around, I examined my /etc/default/locale file & noticed that LANG was defined as “en_GB.UTF-8:en” – so I changed that to just the UTF-8 locale. Lo! & Behold – deluge is fine & no more errors. I think it may have been caused by a dodgy update script, as its only just happened today.
I must also say “Roll on, Gnome-Shell 3.2 for Wheezy”, because right now in Wheezy we’ve got Gnome 3 sans extensions, which must be the worst of both worlds
hi very green in the linux world, am i right in thinking that Debian updates itself periodically whereas Ubuntu rolls out new distros every 6 months or so…any help would be appreciated thank you
Mark
Yes and no. 🙂
Debian stable “updates” every 2-3 years, which is OK for servers. Ubuntu LTS (long term support) which uses the same source (debian stable) updates every 2 years.
Ubuntu “latest version” updates every 6 months and uses debian testing and debian unstable for source. Which is good for desktop computing.
What an extremely inspiгing posting. I am аlways ѕincеrely imprеssеd ωhen reаding youг musings.
You produce useful information. Keep it up. Keеp blοgging.
loоκing foгwarԁ to readіng your next blog pοst.