Mess of locales in TW
while trying to find out how to fix sudo in the "newly intended way" (communication is as usually woefully flawed by hubris in thinking that problems will go away by posting a "notice" on some exotic email list, very funny, just that as a toxic side note, SCNR), I have now an issue in TW that I do not even marginally understand. My system is set up locale IT. So all should be in Italian.......should it? a) while writing the update requests, the system does inform as expected in Italian. Then it switches to .... German???? And finally it gives the warning for dup in English. Provided I am a user of many languages on this system, for personal means. But the users are all set up in Italian. No user is setup in German (but the geographical "time zone" is set to Berlin because I am in Germany currently, does the German thing comes from that?
Alcuni programmi in esecuzione utilizzano ancora file e librerie rilevati e aggiornati da upgrade recenti. Riavviarli per trarre vantaggio dagli ultimi aggiornamenti. Eseguire 'zypper ps -s' per visualizzare l'elenco di questi programmi.
entropy@silversurfer:~> sudo zypper dup [sudo] password di entropy: »entropy« ist nicht in der sudoers-Datei.
Dieser Vorfall wurde an den Administrator gemeldet. entropy@silversurfer:~> su - Password: silversurfer:~ # zypper dup Loading repository data... Reading installed packages... Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command. Computing distribution upgrade... Nothing to do. silversurfer:~ # exit logout entropy@silversurfer:~> sudo zypper dup [sudo] password di entropy: Riprovare. [sudo] password di entropy: »entropy« ist nicht in der sudoers-Datei.
Dieser Vorfall wurde an den Administrator gemeldet. entropy@silversurfer:~>
Try to make me understand why my system is so much about "inclusion". Thank you very much, grazie tante (e quelli con l'idea del avviso per sudo senza spiegazioni specialmente un "Grazia, Graziella, e grazie al..."), Danke vielmals.
On 2022-11-05 11:51, Stakanov wrote:
while trying to find out how to fix sudo in the "newly intended way" (communication is as usually woefully flawed by hubris in thinking that problems will go away by posting a "notice" on some exotic email list, very funny, just that as a toxic side note, SCNR), I have now an issue in TW that I do not even marginally understand.
My system is set up locale IT. So all should be in Italian.......should it?
a) while writing the update requests, the system does inform as expected in Italian. Then it switches to .... German???? And finally it gives the warning for dup in English. Provided I am a user of many languages on this system, for personal means. But the users are all set up in Italian. No user is setup in German (but the geographical "time zone" is set to Berlin because I am in Germany currently, does the German thing comes from that?
Alcuni programmi in esecuzione utilizzano ancora file e librerie rilevati e aggiornati da upgrade recenti. Riavviarli per trarre vantaggio dagli ultimi aggiornamenti. Eseguire 'zypper ps -s' per visualizzare l'elenco di questi programmi.
entropy@silversurfer:~> sudo zypper dup [sudo] password di entropy: »entropy« ist nicht in der sudoers-Datei.
Please post results of "locale" for user, and after sudo. -- Cheers / Saludos, Carlos E. R. (from 15.3 x86_64 at Telcontar)
In data sabato 5 novembre 2022 12:09:12 CET, Carlos E. R. ha scritto:
On 2022-11-05 11:51, Stakanov wrote:
while trying to find out how to fix sudo in the "newly intended way" (communication is as usually woefully flawed by hubris in thinking that problems will go away by posting a "notice" on some exotic email list, very funny, just that as a toxic side note, SCNR), I have now an issue in TW that I do not even marginally understand.
My system is set up locale IT. So all should be in Italian.......should it?
a) while writing the update requests, the system does inform as expected in Italian. Then it switches to .... German???? And finally it gives the warning for dup in English. Provided I am a user of many languages on this system, for personal means. But the users are all set up in Italian. No user is setup in German (but the geographical "time zone" is set to Berlin because I am in Germany currently, does the German thing comes from that?
Alcuni programmi in esecuzione utilizzano ancora file e librerie rilevati e aggiornati da upgrade recenti. Riavviarli per trarre vantaggio dagli ultimi aggiornamenti. Eseguire 'zypper ps -s' per visualizzare l'elenco di questi programmi.
entropy@silversurfer:~> sudo zypper dup [sudo] password di entropy: »entropy« ist nicht in der sudoers-Datei.
Please post results of "locale" for user, and after sudo.
-- Cheers / Saludos,
Carlos E. R. (from 15.3 x86_64 at Telcontar)
entropy@silversurfer:~> locale LANG=it_IT.UTF-8 LC_CTYPE=it_IT.UTF-8 LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_PAPER="it_IT.UTF-8" LC_NAME="it_IT.UTF-8" LC_ADDRESS="it_IT.UTF-8" LC_TELEPHONE="it_IT.UTF-8" LC_MEASUREMENT="it_IT.UTF-8" LC_IDENTIFICATION="it_IT.UTF-8" LC_ALL= after sudo I cannot actually, as sudo is broken. I have joined entropy to wheel, but apparently either this is going to work with a restart (cannot now, would loose data) or.... will need manual editing. For the sake of it with "su -" entropy@silversurfer:~> su - Password: silversurfer:~ # locale LANG=POSIX LC_CTYPE=it_IT.UTF-8 LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= which may give some clue on the English but not on the German.
On 2022-11-05 12:26, Stakanov wrote:
In data sabato 5 novembre 2022 12:09:12 CET, Carlos E. R. ha scritto:
On 2022-11-05 11:51, Stakanov wrote:
entropy@silversurfer:~> locale LANG=it_IT.UTF-8 LC_CTYPE=it_IT.UTF-8 LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_PAPER="it_IT.UTF-8" LC_NAME="it_IT.UTF-8" LC_ADDRESS="it_IT.UTF-8" LC_TELEPHONE="it_IT.UTF-8" LC_MEASUREMENT="it_IT.UTF-8" LC_IDENTIFICATION="it_IT.UTF-8" LC_ALL=
It is correct.
after sudo I cannot actually, as sudo is broken.
Do: su - visudo That will start "vi" to edit the sudoers file. If you don't like "vi", then do instead: EDITOR=/usr/bin/jstar visudo or any other editor you like. Then, activate usage of the wheel group (nothing else). One line that you have to uncomment. Exit visudo. Add your user to the "wheel" group, using command "vigr" as root. You need to login your user again. Done. From now on, when using "sudo" you type your own password, not root's.
I have joined entropy to wheel, but apparently either this is going to work with a restart (cannot now, would loose data) or.... will need manual editing.
For the sake of it with "su -" entropy@silversurfer:~> su - Password: silversurfer:~ # locale LANG=POSIX LC_CTYPE=it_IT.UTF-8 LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL=
LANG should be it_IT.UTF-8, at least. Edit file .i18n in root's home directory: LC_ALL=it_IT.UTF-8 LANG=it_IT.UTF-8 Log out (of root), log in, then try "locale" command again.
which may give some clue on the English but not on the German.
Translation bug. When a message in a program is not translated to Italian, it switches to the "no language" default which is English. I don't remember if it is possible to define another default, which might explain the German. But what typically happens is that the translator initialized the translation file pulling it from another language, and this could have been German; and he forgot to mark all those as fuzzy. I can not verify this (not easily, at least). So, after your locale is correct, you will have to bugzilla it. However, when I did openSUSE translations, I, and many others, refused to translate Factory or Tumbleweed: too much work, you could be redoing the translation every week. -- Cheers / Saludos, Carlos E. R. (from 15.3 x86_64 at Telcontar)
On 11/5/22 06:44, Carlos E. R. wrote:
Add your user to the "wheel" group, using command "vigr" as root. You need to login your user again. Done.
?? # gpasswd -a wheel stakanov (log-out log-in) ?? I'll have to look into vigr. "edit the password, group, shadow-password or shadow-group file" I guess it's a visual editor for those files. Interesting. -- David C. Rankin, J.D.,P.E.
On 2022-11-05 22:51, David C. Rankin wrote:
On 11/5/22 06:44, Carlos E. R. wrote:
Add your user to the "wheel" group, using command "vigr" as root. You need to login your user again. Done.
??
# gpasswd -a wheel stakanov (log-out log-in)
??
I'll have to look into vigr.
"edit the password, group, shadow-password or shadow-group file"
I guess it's a visual editor for those files. Interesting.
Nope, it uses vi in text mode by default. The difference is that it does a syntax check before saving. You can change the actual editor. -- Cheers / Saludos, Carlos E. R. (from 15.3 x86_64 at Telcontar)
On 11/5/22 22:51, David C. Rankin wrote:
On 11/5/22 06:44, Carlos E. R. wrote:
Add your user to the "wheel" group, using command "vigr" as root. You need to login your user again. Done.
??
# gpasswd -a wheel stakanov (log-out log-in)
??
I'll have to look into vigr.
"edit the password, group, shadow-password or shadow-group file"
I guess it's a visual editor for those files. Interesting.
or: $ usermod -a -G wheel stakanov see `man usermod`. Have a nice day, Berny
In data sabato 5 novembre 2022 13:34:35 CET, Andrei Borzenkov ha scritto:
On 05.11.2022 13:51, Stakanov wrote:
a) while writing the update requests, the system does inform as expected in Italian. Then it switches to .... German????
Show output of
env | grep -E 'LC_|LANG'
entropy@silversurfer:~> env | grep -E 'LC_|LANG' LANGUAGE=it:de:en_US:zh_CN LANG=it_IT.UTF-8 LC_CTYPE=it_IT.UTF-8 entropy@silversurfer:~>
On 05.11.2022 17:03, Stakanov wrote:
In data sabato 5 novembre 2022 13:34:35 CET, Andrei Borzenkov ha scritto:
On 05.11.2022 13:51, Stakanov wrote:
a) while writing the update requests, the system does inform as expected in Italian. Then it switches to .... German????
Show output of
env | grep -E 'LC_|LANG'
entropy@silversurfer:~> env | grep -E 'LC_|LANG' LANGUAGE=it:de:en_US:zh_CN
So program tries to find the Italian translation first and if it is missing it looks for German one. You are lucky you did not get Chinese.
LANG=it_IT.UTF-8 LC_CTYPE=it_IT.UTF-8 entropy@silversurfer:~>
participants (5)
-
Andrei Borzenkov
-
Bernhard Voelker
-
Carlos E. R.
-
David C. Rankin
-
Stakanov