Locale settings are per-user (actually per-process) so what matters is locale settings when this program runs, not locale settings in your (unknown) user interactive session.
Check /var/log/zypp/history, this output should be recorded there. It should provide information what package invokes this command, then we could look at scripts this package runs during update.
arne@Arnes-PC:~> sudo 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_DE.UTF-8
LC_CTYPE=“en_DE.UTF-8”
LC_NUMERIC=en_DE.UTF-8
LC_TIME=en_DE.UTF-8
LC_COLLATE=en_DE.UTF-8
LC_MONETARY=en_DE.UTF-8
LC_MESSAGES=“en_DE.UTF-8”
LC_PAPER=“en_DE.UTF-8”
LC_NAME=“en_DE.UTF-8”
LC_ADDRESS=“en_DE.UTF-8”
LC_TELEPHONE=“en_DE.UTF-8”
LC_MEASUREMENT=en_DE.UTF-8
LC_IDENTIFICATION=“en_DE.UTF-8”
LC_ALL=
I get the same error as running sudo zypper dup. How can I fix this?
Thanks, LANG and LANGUAGE is missing in my environment. Just wondering, what might be the best place to set them. I can’t find anything in .bashrc, /etc/bash.bashrc, .profile, /etc/profile.
Is there any preference, where these should be set?
Thanks, I tried it, but it is not getting much better now.
I did some more research and found hints, that maybe some parts of the system do not work well with my en_DE locale.
So I decided to switch to de_DE. I changed my KDE Settings to German as my primary language and also in Yast. Also I used
arne@Arnes-PC:~> env | grep -E 'LANG|LC_'
**LANG**UAGE=de:en_US
**LC_**MONETARY=en_DE.UTF-8
**LANG**=en_DE.UTF-8
**LC_**MEASUREMENT=en_DE.UTF-8
**LC_**TIME=en_DE.UTF-8
**LC_**COLLATE=en_DE.UTF-8
**LC_**NUMERIC=en_DE.UTF-8
arne@Arnes-PC:~> cat .profile | grep LANG
# in the variable RC_**LANG**.
#export **LANG**=de_DE.UTF-8 # uncomment this line for German output
#export **LANG**=fr_FR.UTF-8 # uncomment this line for French output
#export **LANG**=es_ES.UTF-8 # uncomment this line for Spanish output
arne@Arnes-PC:~> cat .bashrc | grep LANG
# here, since multilingual X sessions would not work properly if **LANG** is over-
arne@Arnes-PC:~>
arne@Arnes-PC:~> sudo env | grep -E 'LANG|LC_'
[sudo] password for root:
**LANG**UAGE=de:en_US
**LC_**MONETARY=en_DE.UTF-8
**LANG**=en_DE.UTF-8
**LC_**MEASUREMENT=en_DE.UTF-8
**LC_**TIME=en_DE.UTF-8
**LC_**COLLATE=en_DE.UTF-8
**LC_**NUMERIC=en_DE.UTF-8
arne@Arnes-PC:~> sudo su -
**Arnes-PC:~ #** env | grep -E 'LANG|LC_'
**LANG**=POSIX
**LC_**CTYPE=de_DE.utf8
[FONT=monospace]**Arnes-PC:~ #** cat /etc/profile | grep LANG[/FONT]
[FONT=monospace]**Arnes-PC:~ #**[/FONT]
Any ideas how I can get to a consistent de_DE locale?
For whatever reason, the option to choose de_DE locale has been back again and I have selected it. Unfortunately, I already did my daily zypper dup, so I need to wait until tomorrow until I can check if that helped.