View previous topic :: View next topic |
Author |
Message |
drudox l33t
Joined: 28 Jan 2016 Posts: 919
|
Posted: Fri Apr 13, 2018 1:50 pm Post subject: problema con locale |
|
|
Scusate ma ques't ultimo upgrade mi sta dando una marea di problemi ..
se provo ad aprire una qualsiasi finestra X (io utilizzo i3WM) ottengo (ad esempio per gparted) questo messaggio :
x
Code: |
sudo gparted
(process:1775): Gtk-WARNING **: 15:49:52.397: Locale not supported by C library.
Using the fallback 'C' locale.
======================
libparted : 3.2
======================
terminate called after throwing an instance of 'Glib::ConvertError'
/usr/sbin/gparted: riga 193: 1775 Annullato $BASE_CMD
|
questo succede con zsh (la shell che vorrei usare) ma non con bash
help |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Fri Apr 13, 2018 3:33 pm Post subject: |
|
|
Cosa ritorna il comando
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
drudox l33t
Joined: 28 Jan 2016 Posts: 919
|
Posted: Fri Apr 13, 2018 3:40 pm Post subject: |
|
|
Code: | locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Impossibile impostare LC_ALL alla localizzazione predefinita: File o directory non esistente
LANG=it_IT.UTF-8
LC_CTYPE=en_GB.UTF-8
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE=C
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=
|
ancora grazie per gli aiuti |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Fri Apr 13, 2018 4:27 pm Post subject: |
|
|
Puoi postare anche locale -a _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
drudox l33t
Joined: 28 Jan 2016 Posts: 919
|
Posted: Fri Apr 13, 2018 9:34 pm Post subject: |
|
|
Code: |
locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
C
POSIX
en_US.utf8
it_IT
it_IT.iso88591
it_IT.utf8
|
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Sat Apr 14, 2018 10:46 am Post subject: |
|
|
Il problema e' LC_CTYPE=en_GB.UTF-8 che come vedi dall'ultimo comando non ce l'hai installato.
Hai per caso settato questa variabile in qualche file? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
drudox l33t
Joined: 28 Jan 2016 Posts: 919
|
Posted: Sun Apr 15, 2018 10:23 am Post subject: |
|
|
no non lo ho settato in nessun altro file ! solo in locale-gen ! come lo installo ? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Sun Apr 15, 2018 1:52 pm Post subject: |
|
|
drudox wrote: | no non lo ho settato in nessun altro file ! solo in locale-gen ! come lo installo ? |
Non e' difficile da installarlo basta seguire la guida.
Comunque il problema e' che non dovrebbe essere settato su en_GB.UTF-8.
Puoi postare il contenuto dei file /etc/env.d/02locale e del tuo .bashrc _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
drudox l33t
Joined: 28 Jan 2016 Posts: 919
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Mon Apr 16, 2018 11:22 am Post subject: |
|
|
Solo per prova prova a salvare il tuo .bashrc da qualche parte e poi sostituiscilo con uno vuoto.
Poi rilancia il terminale e controlla con il comando locale se il valore LC_CTYPE cambia. Questo solo per vedere se in tutto quel marasma di comandi che hai nel .bashrc non vada a cambiare quella variabile poi puoi tornare al tuo .bashrc _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
drudox l33t
Joined: 28 Jan 2016 Posts: 919
|
Posted: Mon Apr 16, 2018 3:04 pm Post subject: |
|
|
si se uso quello di default (/etc/bash/bashrc)
locale mi restituisce questo :
Code: | LANG=it_IT.utf8
LC_CTYPE="it_IT.utf8"
LC_NUMERIC="it_IT.utf8"
LC_TIME="it_IT.utf8"
LC_COLLATE=C
LC_MONETARY="it_IT.utf8"
LC_MESSAGES="it_IT.utf8"
LC_PAPER="it_IT.utf8"
LC_NAME="it_IT.utf8"
LC_ADDRESS="it_IT.utf8"
LC_TELEPHONE="it_IT.utf8"
LC_MEASUREMENT="it_IT.utf8"
LC_IDENTIFICATION="it_IT.utf8"
LC_ALL= |
ma se poi passo a zsh (che e` dove nasce il problema) mi restituisce nuovamente questo :
Code: |
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Impossibile impostare LC_ALL alla localizzazione predefinita: File o directory non esistente
LANG=it_IT.utf8
LC_CTYPE=en_GB.UTF-8
LC_NUMERIC="it_IT.utf8"
LC_TIME="it_IT.utf8"
LC_COLLATE=C
LC_MONETARY="it_IT.utf8"
LC_MESSAGES="it_IT.utf8"
LC_PAPER="it_IT.utf8"
LC_NAME="it_IT.utf8"
LC_ADDRESS="it_IT.utf8"
LC_TELEPHONE="it_IT.utf8"
LC_MEASUREMENT="it_IT.utf8"
LC_IDENTIFICATION="it_IT.utf8"
LC_ALL=
|
|
|
Back to top |
|
|
drudox l33t
Joined: 28 Jan 2016 Posts: 919
|
Posted: Mon Apr 16, 2018 7:22 pm Post subject: |
|
|
cosa ne pensi ? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
|
Back to top |
|
|
drudox l33t
Joined: 28 Jan 2016 Posts: 919
|
Posted: Tue Apr 17, 2018 1:25 am Post subject: |
|
|
Risolto grazie 1000 |
|
Back to top |
|
|
|