Forum de discussions NFrance - Support offres dédiées et mutualisées
Vous n'êtes pas identifié.
We are trying to configure a newly setup vds and are getting the following errors.
Has anyone had similar problems?
Thanks in advance.
1)Attempt to reconfigure the installation language (it was succesful only the first time)
root@vds74734:/# dpkg-reconfigure -plow locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "fr_FR:fr:en_GB:en",
LC_ALL = (unset),
LANG = "fr_FR@euro"
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
dpkg-query: parse error, in file `/var/lib/dpkg/available' near line 196017 package `libmodule-load-perl':
field name `#load' must be followed by colon
/usr/sbin/dpkg-reconfigure: locales is not installed
2)It's impossible to upgrade the system, errors on language (and fallback to default 'c' ), and
errors on format of files and filenames.
3)Shutdown -r now
root@vds74734:/# shutdown -r now
shutdown: /dev/initctl: No such file or directory
init: /dev/initctl: No such file or directory
Hors ligne
sshah a écrit:
1)Attempt to reconfigure the installation language (it was succesful only the first time)
root@vds74734:/# dpkg-reconfigure -plow locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "fr_FR:fr:en_GB:en",
LC_ALL = (unset),
LANG = "fr_FR@euro"
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
dpkg-query: parse error, in file `/var/lib/dpkg/available' near line 196017 package `libmodule-load-perl':
field name `#load' must be followed by colon
/usr/sbin/dpkg-reconfigure: locales is not installed
Can you show us what returns a "locale" command on your system ?
Normaly you only should have one language, and not "fr_FR:fr:en_GB:en" in "LANGUAGE". Could you check your /etc/profile and .bashrc files too
?
sshah a écrit:
2)It's impossible to upgrade the system, errors on language (and fallback to default 'c' ), and
errors on format of files and filenames.
This should be in relation with 1st problem
.
sshah a écrit:
3)Shutdown -r now
root@vds74734:/# shutdown -r now
shutdown: /dev/initctl: No such file or directory
init: /dev/initctl: No such file or directory
The command for reboot is vreboot on a vds
.
Hors ligne
Simeon a écrit:
Can you show us what returns a "locale" command on your system ?
Normaly you only should have one language, and not "fr_FR:fr:en_GB:en" in "LANGUAGE". Could you check your /etc/profile and .bashrc files too smile ?
Hello. I'm a sshah partner and working on the same server.
****************************************************************
As you requested : the locale command return the following output :
****************************************************************
$>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=fr_FR@euro
LC_CTYPE="fr_FR@euro"
LC_NUMERIC="fr_FR@euro"
LC_TIME="fr_FR@euro"
LC_COLLATE="fr_FR@euro"
LC_MONETARY="fr_FR@euro"
LC_MESSAGES="fr_FR@euro"
LC_PAPER="fr_FR@euro"
LC_NAME="fr_FR@euro"
LC_ADDRESS="fr_FR@euro"
LC_TELEPHONE="fr_FR@euro"
LC_MEASUREMENT="fr_FR@euro"
LC_IDENTIFICATION="fr_FR@euro"
LC_ALL=
***************************************************
.bashrc
***************************************************
$>cat /root/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
export PS1='\h:\w\$ '
umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
****************************************************
cat /etc/profile
****************************************************
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH
umask 022
Dernière modification par mizar (08-10-2007 14:18:55)
Hors ligne
On Debian serveur, you should have a file named /etc/locale.gen. For changing your locales, edit this file and set your locales (available locales are listed in file /usr/share/i18n/SUPPORTED). And after that run command locale-gen. You should see your locales configurating, and "Generation complete." at the end
.
And now re-run dpkg-reconfigure locales ; is it better ?
Hors ligne
my locale.gen file has the following content :
fr_FR@euro ISO-8859-15
#en_US.UTF-8 UTF-8
en_GB.UTF-8 UTF-8
and all those languages are supported in /usr/share/i18n/SUPPORTED
However executing locale-gen give me the following errors :
root@vds74734:~# locale-gen
Generating locales (this might take a while)...
fr_FR.ISO-8859-15@euro.../usr/share/i18n/locales/iso14651_t1:264: LC_COLLATE: syntax error
/usr/share/i18n/locales/iso14651_t1:266: LC_COLLATE: syntax error
/usr/share/i18n/locales/iso14651_t1:268: LC_COLLATE: syntax error
/usr/share/i18n/locales/iso14651_t1:287: LC_COLLATE: syntax error
/usr/share/i18n/locales/iso14651_t1:291: order for `MIN' already defined at /usr/share/i18n/locales/iso14651_t1:267
/usr/share/i18n/locales/iso14651_t1:294: LC_COLLATE: syntax error
/usr/share/i18n/locales/iso14651_t1:295: order for `IMI' already defined at /usr/share/i18n/locales/iso14651_t1:292
/usr/share/i18n/locales/iso14651_t1:296: order for `EMI' already defined at /usr/share/i18n/locales/iso14651_t1:293
/usr/share/i18n/locales/iso14651_t1:297: order for `CAP' already defined at /usr/share/i18n/locales/iso14651_t1:265
/usr/share/i18n/locales/iso14651_t1:298: order for `ICA' already defined at /usr/share/i18n/locales/iso14651_t1:288
/usr/share/i18n/locales/iso14651_t1:299: order for `ECA' already defined at /usr/share/i18n/locales/iso14651_t1:289
/usr/share/i18n/locales/iso14651_t1:300: order for `AMI' already defined at /usr/share/i18n/locales/iso14651_t1:290
/usr/share/i18n/locales/iso14651_t1:301: LC_COLLATE: syntax error
/usr/share/i18n/locales/iso14651_t1:775: LC_COLLATE: syntax error
/usr/share/i18n/locales/iso14651_t1:777: LC_COLLATE: syntax error
/usr/share/i18n/locales/iso14651_t1:779: LC_COLLATE: syntax error
and i have to stop with ctrl-c command.
Only the first time it worked.
Hors ligne
Sorry. No way. Leaving only the english language set in locale.gen give the same errors.
I wish at least return to the original french setting, but i have the same results.
The way i done this sometimes never gave me errors before, but i was not on a vserver system.
What the problem can be ? Is the system broken ?
Hors ligne
is you that launched this command ?
Now my system seems to be working.
Anyway ,,, if i wish it en english what i should do ?
Hors ligne
mizar a écrit:
is you that launched this command ?
Yes, i was not sure that it works
.
mizar a écrit:
Anyway ,,, if i wish it en english what i should do ?
You can retry the operation below, with locale.gen etc...
.
Hors ligne