Debian Sarge Problem: Setting locale failed

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
tulpenknicker
Posts: 6
Joined: 2005-07-21 20:51
 

Debian Sarge Problem: Setting locale failed

Post by tulpenknicker »

Hallo zusammen,

ich brauche dringend eure Hilfe, ich bekomme seit graumer Zeit immer
eine Fehlermeldung wenn ich versuche ein neues Paket zu, die wie folgt lautet:
apt-get install heartbeat
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
heartbeat
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/494kB of archives.
After unpacking 1499kB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MONETARY = "de_DE@euro",
LC_COLLATE = "de_BE.UTF-8",
LANG = "de_DE@euro"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: Datei oder Verzeichnis nicht gefunden
Selecting previously deselected package heartbeat.
(Reading database ... 24648 files and directories currently installed.)
Unpacking heartbeat (from .../heartbeat_1.2.3-9sarge2_i386.deb) ...
Setting up heartbeat (1.2.3-9sarge2) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MONETARY = "de_DE@euro",
LC_COLLATE = "de_BE.UTF-8",
LANG = "de_DE@euro"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Heartbeat not configured: /etc/ha.d/ha.cf not found.
Heartbeat failure [rc=1]. Failed.
Ich habe die locales schon mehrmals konfiguriert, leider ohne Erfolg... :(
Wie kann ich das wieder gerade biegen ohne das komplette System neu installieren zu lassen?

Gruß,

Nils
superuser1
Posts: 291
Joined: 2003-11-26 18:43
Location: earth
 

Re: Debian Sarge Problem: Setting locale failed

Post by superuser1 »

Hi...
Ich habe die locales schon mehrmals konfiguriert, leider ohne Erfolg...
mit

Code: Select all

dpkg-reconfigure locales
keinen Erfolg gehabt?

:roll:
tulpenknicker
Posts: 6
Joined: 2005-07-21 20:51
 

Re: Debian Sarge Problem: Setting locale failed

Post by tulpenknicker »

Hi,

habe ich schon versucht, leider klappte es nicht .... warum auch immer :cry:
es erscheint schon beim Aufruf dpkg-reconfigure locales die Fehlermeldung:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MONETARY = "de_DE@euro",
LC_COLLATE = "de_BE.UTF-8",
LANG = "de_DE@euro"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: Datei oder Verzeichnis nicht gefunden
superuser1
Posts: 291
Joined: 2003-11-26 18:43
Location: earth
 

Re: Debian Sarge Problem: Setting locale failed

Post by superuser1 »

Hi...

entweder

Code: Select all

apt-get remove locales && apt-get install locales
oder möglicherweisse direkt über

Code: Select all

wget http://ftp.de.debian.org/debian/pool/main/g/glibc/locales_2.3.2.ds1-22_all.deb
dpkg -i locales_2.3.2.ds1-22_all.deb
versuchen, die locales neu zu installieren?

Was ist das denn für ein System - Woody oder Sarge?

Seit wann tritt denn die Fehlermeldung auf? Kannst du das auf eine Aktion deinerseits zurückführen bzw. zeitlich etwas eingrenzen?

:roll:
tulpenknicker
Posts: 6
Joined: 2005-07-21 20:51
 

Re: Debian Sarge Problem: Setting locale failed

Post by tulpenknicker »

Hallo,

es handelt sich um Sarge, leider brachte eine neuinstallation keine Abhilfe, zetilich eingrenzen kann ich das Problem nicht, da der Fehler nur bei der Neuinstallation eines Paketes erscheint und ich eine Zeit lang nichts Neues installiert habe, bei Updates erscheint diese Fehlermeldung nicht....

Mal eine andere Frage, könnte es sein, daß diese Fehlermeldung mit einer fehlenden Pathangabe zusammenhängen kann??? :?: :roll:
superuser1
Posts: 291
Joined: 2003-11-26 18:43
Location: earth
 

Re: Debian Sarge Problem: Setting locale failed

Post by superuser1 »

Hi...

was gibt denn ein Aufruf von 'set' aus?

EDIT: http://www.unixboard.de/vb3/showthread.php?t=5079

:roll:
tulpenknicker
Posts: 6
Joined: 2005-07-21 20:51
 

Re: Debian Sarge Problem: Setting locale failed

Post by tulpenknicker »

Set gibt folgendes aus:


root@213-203-244-117:~# set
BASH=/bin/bash
BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="i386-pc-linux-gnu")
BASH_VERSION='2.05b.0(1)-release'
COLUMNS=115
DIRSTACK=()
EUID=0
GROUPS=()
HISTFILE=/root/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/root
HOSTNAME=xxx-xxx-xxx-xxx
HOSTTYPE=i386
IFS=$' tn'
LANG=de_DE@euro
LC_COLLATE=de_BE.UTF-8
LC_MONETARY=de_DE@euro
LINES=33
LOGNAME=xxx
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:ex=01;32:*.
tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.
deb=01;31:*.rpm=01;31:*.jar=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:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*
.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:'
MACHTYPE=i386-pc-linux-gnu
MAIL=/var/mail/xxx
MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
PIPESTATUS=([0]="0")
PPID=15251
PS1='u@h:w$ '
PS2='> '
PS4='+ '
PWD=/root
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=2
SSH_CLIENT='xxx.xxx.xxx.xxx'
SSH_CONNECTION='xxx.xxx.xxx.xxx'
SSH_TTY=/dev/pts/2
TERM=xterm
UID=0
USER=root
_=

Der Thread hat mir leider auch nicht geholfen :?
tulpenknicker
Posts: 6
Joined: 2005-07-21 20:51
 

Re: Debian Sarge Problem: Setting locale failed

Post by tulpenknicker »

locale gibt die folgende Meldung aus:

locale: Cannot set LC_ALL to default locale: Datei oder Verzeichnis nicht gefunden
LANG=de_DE@euro
LC_CTYPE="de_DE@euro"
LC_NUMERIC="de_DE@euro"
LC_TIME="de_DE@euro"
LC_COLLATE=de_BE.UTF-8
LC_MONETARY=de_DE@euro
LC_MESSAGES="de_DE@euro"
LC_PAPER="de_DE@euro"
LC_NAME="de_DE@euro"
LC_ADDRESS="de_DE@euro"
LC_TELEPHONE="de_DE@euro"
LC_MEASUREMENT="de_DE@euro"
LC_IDENTIFICATION="de_DE@euro"
LC_ALL=

Verdächtig... :)
superuser1
Posts: 291
Joined: 2003-11-26 18:43
Location: earth
 

Re: Debian Sarge Problem: Setting locale failed

Post by superuser1 »

Hi...

Code: Select all

echo "de_DE@euro ISO-8859-15" > /etc/locale.gen && locale-gen && dpkg-reconfigure locales
und in der /etc/environment

Code: Select all

LANGUAGE="de_DE@euro:en_US:en_GB:en"
LANG=de_DE@euro
und evtl.

Code: Select all

dpkg-reconfigure console-data
dpkg-reconfigure console-common
dpkg-reconfigure console-tools
Noch etwas zu lesen.

Woher kommt eigentlich das LC_COLLATE=de_BE.UTF-8 ?

:roll:
Last edited by superuser1 on 2005-07-22 14:58, edited 1 time in total.
tulpenknicker
Posts: 6
Joined: 2005-07-21 20:51
 

Re: Debian Sarge Problem: Setting locale failed

Post by tulpenknicker »

Es funktioniert!!! :-D

Keine Ahnung was ich da vermasselt habe, aber jetzt geht es wieder...

Ich glaube der Eintrag LC_COLLATE=de_BE.UTF-8 kommt eigentlich nur daher, daß ich mich bei dpkg-reconfigure locales verklickert habe

Danke für die schnelle Hilfe :wink:

Gruß,

Nils