| 
 | |||||||
| 
 | 
|  | 
|  | 
|  | Strumenti | 
|  21-02-2009, 23:52 | #1 | 
| Senior Member Iscritto dal: Dec 2006 Città: Ex Crema (cr) 
					Messaggi: 1025
				 | 
				
				[RISOLTO] Debian lenny ed errore ridondande.
			 
		Vi posto l'errore che compare quando installo o rimuovo pacchetti: Codice: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "lt_LT",
        LANG = "lt_LT"
    are supported and installed on your systemDove correggo l'errore? Grazie a tutti. | 
|   |   | 
|  22-02-2009, 00:21 | #2 | 
| Senior Member Iscritto dal: Dec 2006 Città: Ex Crema (cr) 
					Messaggi: 1025
				 | 
		Ho provato a rigenerare il locale cosi: Codice:  sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "lt_LT",
        LANG = "lt_LT"
    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_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
  it_IT.UTF-8... done
  it_IT.ISO-8859-1... done
  it_IT.ISO-8859-15@euro... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "lt_LT",
        LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "lt_LT",
        LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C") | 
|   |   | 
|  22-02-2009, 02:00 | #3 | 
| Senior Member Iscritto dal: Feb 2006 Città: Parma 
					Messaggi: 3010
				 | 
		Controlla il contenuto del file /etc/environment: nel mio trovo LANG="it_IT.UTF-8"
		 
				__________________ ~Breve riferimento ai comandi GNU/Linux (ormai non molto breve...) | 
| ![Gimli[2BV!2B] è offline](images_hwu/statusicon/user_offline.gif)  |   | 
|  23-02-2009, 18:23 | #4 | 
| Senior Member Iscritto dal: Dec 2006 Città: Ex Crema (cr) 
					Messaggi: 1025
				 | |
|   |   | 
|  26-02-2009, 22:22 | #5 | 
| Senior Member Iscritto dal: Dec 2006 Città: Ex Crema (cr) 
					Messaggi: 1025
				 | 
		....Ancora niente. Posso solo aggiungere questo. Il problema è comparso già con la etch. HO effettuato un allegerimento con la sostituzione di gnome con fluxbox. Ho eliminato anche diversi servizi inutili. Inavvertitamente, ricordo di aver fatto confusione con la lingua lituana. Infatti lithuanian lt_LT.ISO-8859-13 e italian it_IT.ISO-8859-1 Forse ho eliminato qualche pacchetto ma adesso non riesco + a risalire all'origine. E dire anche che ho eseguito l'upgrade della distro a lenny ed il problema persiste! bho!   | 
|   |   | 
|  27-02-2009, 00:27 | #6 | 
| Senior Member Iscritto dal: Dec 2006 Città: Ex Crema (cr) 
					Messaggi: 1025
				 | 
		Ho provato anche ad installare il pacchetto localepurge Codice: RIPULIRE IL SISTEMA DALLE LOCALIZZAZIONI NON USATE
Installiamo questo piccolo programmino con
    * sudo apt-get install localepurge
che ci chiederà quali lingue mantenere;
selezioniamo le seguenti:
    * IT
    * IT_IT
    * IT_IT@euro
    * IT_IT.utf-8
diamo ok, verrà così creato il file contenente quello che non deve eliminare. Per eseguire la pulizia eseguiamo invece:
    * sudo localepurge
in questo modo libereremo il sistema dalle lingue che non usiamo (per un totale di circa 60MB).Vi posto anche : Codice: Processing triggers for man-db ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "lt_LT",
        LANG = "lt_LT"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct | 
|   |   | 
|  27-02-2009, 20:59 | #7 | 
| Senior Member Iscritto dal: Feb 2006 Città: Parma 
					Messaggi: 3010
				 | 
		Ma dove diavolo è finito questo tuo lituano? Prova a lanciare questo comando e controlla il contenuto dei file riportati: grep -lrs "lt_LT" /etc /home 
				__________________ ~Breve riferimento ai comandi GNU/Linux (ormai non molto breve...) | 
| ![Gimli[2BV!2B] è offline](images_hwu/statusicon/user_offline.gif)  |   | 
|  28-02-2009, 09:55 | #8 | 
| Senior Member Iscritto dal: Dec 2006 Città: Ex Crema (cr) 
					Messaggi: 1025
				 | 
		grep -lrs "lt_LT" /etc /home Codice: /etc/locale.alias /etc/locale.gen /home/gianluca/.bashrc in /etc/locale.alias ci troviamo ovviamente tutti gli alias ed ovviamente tutti decommentati. invece in /home/gianluca/.bashrc : Codice: # ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color)
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    ;;
*)
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    ;;
esac
# Comment in the above and uncomment this below for a color prompt
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
    ;;
*)
    ;;
esac
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
#if [ -f ~/.bash_aliases ]; then
#    . ~/.bash_aliases
#fi
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'
fi
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
# ---- language-env DON'T MODIFY THIS LINE!
	unset LC_ALL
	LANG=lt_LT
	LC_CTYPE=lt_LT
	export LANG
	export LC_CTYPE
	consolechars -f LatArCyrHeb-16 -m iso13.acm
# ---- language-env end DON'T MODIFY THIS LINE! | 
|   |   | 
|  28-02-2009, 14:13 | #9 | 
| Senior Member Iscritto dal: Feb 2006 Città: Parma 
					Messaggi: 3010
				 | 
		Perfetto, non so quale programma abbia aggiunto questi comandi al tuo profilo utente, in ogni caso non preoccuparti del DON'T MODIFY e cancella tutte queste dannosissime righe: Codice: # ---- language-env DON'T MODIFY THIS LINE! unset LC_ALL LANG=lt_LT LC_CTYPE=lt_LT export LANG export LC_CTYPE consolechars -f LatArCyrHeb-16 -m iso13.acm # ---- language-env end DON'T MODIFY THIS LINE! 
				__________________ ~Breve riferimento ai comandi GNU/Linux (ormai non molto breve...) | 
| ![Gimli[2BV!2B] è offline](images_hwu/statusicon/user_offline.gif)  |   | 
|  01-03-2009, 10:17 | #10 | 
| Senior Member Iscritto dal: Dec 2006 Città: Ex Crema (cr) 
					Messaggi: 1025
				 | 
		Brutte notizie. Ho eliminato le righe suddette, ma il problema rimane. Ho provato a ridare: Codice: gianluca@cesira:~$ grep -lrs "lt_LT" /etc /home /etc/locale.alias /etc/locale.gen /home/gianluca/.bash_history   Codice: gianluca@cesira:~$ env IFS= SHELL=/bin/bash TERM=Eterm COLORTERM_BCE=Eterm WINDOWID=18874437 HUSHLOGIN=FALSE ETERM_THEME_ROOT=/usr/share/Eterm/themes/Eterm USER=gianluca LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36: MAIL=/var/mail/gianluca PATH=/usr/local/bin:/usr/bin:/bin:/usr/games PWD=/home/gianluca LANG=lt_LT ETERM_VERSION=0.9.5 HISTCONTROL=ignoredups COLORFGBG=7;default;0 SHLVL=4 HOME=/home/gianluca LOGNAME=gianluca LC_CTYPE=lt_LT LESSOPEN=| /usr/bin/lesspipe %s WINDOWPATH=3 DISPLAY=:0.0 LESSCLOSE=/usr/bin/lesspipe %s %s COLORTERM=Eterm XAUTHORITY=/home/gianluca/.Xauthority _=/usr/bin/env gianluca@cesira:~$ sudo env TERM=Eterm LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36: MAIL=/var/mail/gianluca PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin LANG=lt_LT HOME=/home/gianluca LC_CTYPE=lt_LT DISPLAY=:0.0 COLORTERM=Eterm XAUTHORITY=/home/gianluca/.Xauthority SHELL=/bin/bash LOGNAME=root USER=root USERNAME=root SUDO_COMMAND=/usr/bin/env SUDO_USER=gianluca SUDO_UID=1000 SUDO_GID=1000 Correggetemi. Daltra parte (IMHO) non credo che un semplice file di testo nella propria home riuscisse a condizionare tutto il sistema.  Avremmo scoperto un pericoloso exploit......non so. Ultima modifica di gianlucab70 : 01-03-2009 alle 10:19. | 
|   |   | 
|  01-03-2009, 10:34 | #11 | 
| Senior Member Iscritto dal: Jan 2008 
					Messaggi: 424
				 | 
		Sono passati più di due anni ma e forse mi sbaglio ma anche io avevo quel problema che si è risolto con questo comando Codice: dpkg-reconfigure locales | 
|   |   | 
|  01-03-2009, 11:30 | #12 | 
| Senior Member Iscritto dal: Dec 2006 Città: Ex Crema (cr) 
					Messaggi: 1025
				 | 
		....è la prima cosa che ho provato. Senza riuscire a concludere niente. Infatti è scritto (ma non è evidenziato) come comando all'inizio del secondo post. | 
|   |   | 
|  01-03-2009, 13:34 | #13 | 
| Senior Member Iscritto dal: Feb 2006 Città: Parma 
					Messaggi: 3010
				 | 
		Le modifiche al profilo (in particolare se si tratta di variabili globali) vengono applicate solo dopo un logout-login, mi son dimenticato di specificarlo.
		 
				__________________ ~Breve riferimento ai comandi GNU/Linux (ormai non molto breve...) | 
| ![Gimli[2BV!2B] è offline](images_hwu/statusicon/user_offline.gif)  |   | 
|  01-03-2009, 13:56 | #14 | 
| Member Iscritto dal: Mar 2009 Città: Varese 
					Messaggi: 175
				 | 
		Anche io avevo questo problema sulla 3.0r, però con il rebuild del locale era andato a posto. Provare un purge dei pacchetti?    | 
|   |   | 
|  02-03-2009, 19:19 | #15 | |
| Senior Member Iscritto dal: Dec 2006 Città: Ex Crema (cr) 
					Messaggi: 1025
				 | Quote: 
    Grandioso, Bestiale!.Tutto risolto. Eppure non capisco come possa un file .bashrc riuscire a condizionare tutto un sistema. Io sento puzza di Exploit. Cmq. Grazie mille Gimli.   ps. Ancora una volta mi hai tirato fuori dai guai!       | |
|   |   | 
|  02-03-2009, 20:51 | #16 | 
| Senior Member Iscritto dal: Feb 2006 Città: Parma 
					Messaggi: 3010
				 | 
		Prego, tra l'altro direi che hai ragione, il .bashrc è un gran brutto file. Di solito sui miei sistemi lo rendo sola lettura con proprietario root, visto che ogni tanto qualche programma rompi... decide di farci quel che vuole. 
				__________________ ~Breve riferimento ai comandi GNU/Linux (ormai non molto breve...) | 
| ![Gimli[2BV!2B] è offline](images_hwu/statusicon/user_offline.gif)  |   | 
|  02-03-2009, 21:39 | #17 | 
| Senior Member Iscritto dal: Dec 2006 Città: Ex Crema (cr) 
					Messaggi: 1025
				 | 
		.......  Allora direi che sia proprio da segnalare agli sviluppatori Debian. Visto e considerato che l'eliminazione di ogni bug (stabilità) è alla base della loro filosofia.   | 
|   |   | 
|   | 
| Strumenti | |
| 
 | 
 | 
Tutti gli orari sono GMT +1. Ora sono le: 14:52.









 
		 
		 
		 
		
![L'Avatar di Gimli[2BV!2B]](customavatars/avatar128392_3.gif)









 
  
 



 
                        
                        










