aptsources-cleanup locale: Cannot set LC_CTYPE to default locale: No such file or directory (KDE-neon git unstable)
Closed this issue · 5 comments
After downloading and running the latest package, the following dialogue appeared:
How exactly did you run "the […] package"? Did you run the application from a ZIP bundle? Could you please add the output of the locale
command to your issue description? Thanks.
Hi David!
Thanks for your script. I navigated to the folder where the zip file was downloaded and ran the command:
sudo python3 -OEs aptsources-cleanup.zip
The locale command produces the following output:
It looks like your system locale data may be corrupted or missing. Could you please run sudo locale-gen
and then locale
again and show me their output?
In any case I'll provide a patch to keep the application going and revert to English in case of bad locale settings or data. There's no need to fail in such cases.
Generating locales (this might take a while)...
Generation complete.
locale
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
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY=en_GB.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_ALL=
Fixed in 33d9b5e. You should be able to run the application despite the broken system locale now.
See
- https://askubuntu.com/q/114759/175814,
- https://askubuntu.com/q/454260/175814, and
- https://askubuntu.com/q/162391/175814
for possible ways to fix your locale.