[Résolu] Problème Samba et locales :/

Voilà le contexte un serveur debian 4 suite a un apt-get dist–upgrade j’ai eu un message concernant l’install de samba :

Do you want to continue [Y/n]? y
Get:1 ftp://ftp2.fr.debian.org stable/main samba 3.0.24-6 [3258kB]
Get:2 ftp://ftp2.fr.debian.org stable/main samba-common 3.0.24-6 [2379kB]
Fetched 5637kB in 2m26s (38.4kB/s)
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
Preconfiguring packages ...
(Reading database ... 35410 files and directories currently installed.)
Preparing to replace samba 3.0.23d-1 (using .../samba_3.0.24-6_i386.deb) ...
Stopping Samba daemons: nmbd smbd.
Unpacking replacement samba ...
dpkg: error processing /var/cache/apt/archives/samba_3.0.24-6_i386.deb (--unpack):
 trying to overwrite `/usr/bin/profiles', which is also in package samba-common
dpkg-deb: subprocess paste killed by signal (Broken pipe)
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").
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
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").
Preparing to replace samba-common 3.0.23d-1 (using .../samba-common_3.0.24-6_i386.deb) ...
Unpacking replacement samba-common ...
dpkg: error processing /var/cache/apt/archives/samba-common_3.0.24-6_i386.deb (--unpack):
 trying to overwrite `/usr/share/man/man5/smbpasswd.5.gz', which is also in package samba
dpkg-deb: subprocess paste killed by signal (Broken pipe)
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
Errors were encountered while processing:
 /var/cache/apt/archives/samba_3.0.24-6_i386.deb
 /var/cache/apt/archives/samba-common_3.0.24-6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ensuite un apt-get -f install ne change rien j’ai toujours le même message d’erreur …

l’un de vous serait-il me guider pour résourdre ce soucis

dpkg-reconfigure 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
/usr/sbin/dpkg-reconfigure: locales is broken or not fully installed

Personne pour m aider à résoudre ce soucis ? dpkg-reconfigure locales ne fonctionne pas non plus :s …

hello,

export LC_ALL="fr_FR"

Ensuite a mettre dans le fichier /etc/profile

Merci mais
J’ai fait les modifs mais j’ai toujours le meme message avec une différence pr LC_ALL …

dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “fr_FR:fr:en_GB:en”,
LC_ALL = “fr_FR”,
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
/usr/sbin/dpkg-reconfigure: locales is broken or not fully installed

[quote=“LudOo”]Merci mais
J’ai fait les modifs mais j’ai toujours le meme message avec une différence pr LC_ALL …

dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “fr_FR:fr:en_GB:en”,
LC_ALL = “fr_FR”,
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
/usr/sbin/dpkg-reconfigure: locales is broken or not fully installed[/quote]

Houla, il semble y avoir un pbm d’installation: fais un

apt-get install --reinstall locales

J’ai eu une merde y a pas longtemps avec locales suite à un aptitude dist-upgrade, et j’ai dû tourner avec locales-all pendant quelques jours (problèmes de dépendances concernant locales dans les dépôts pendant quelques jours).

apt-get install --reinstall locales
Reading package lists… Done
Building dependency tree… Done
You might want to run `apt-get -f install’ to correct these:
The following packages have unmet dependencies:
smbclient: Depends: samba-common (= 3.0.24-6) but 3.0.23d-1 is to be installed
smbfs: Depends: samba-common (= 3.0.24-6) but 3.0.23d-1 is to be installed
swat: Depends: samba (= 3.0.24-6) but 3.0.23d-1 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

voila ce qu il me dit lorsque que je veu reinstaller locales.

comment je peut résoudre le problème samba avant ?

D’où sort ton Samba, tu as modifié sources.list car il veut installer la version précédente… D’ailleurs

francois@totoche:/var/tmp$ apt-cache policy samba
samba:
Installé : (aucun)
Candidat : 3.0.24-6
Table de version :
3.0.24-6 0
500 ftp.fr.debian.org etch/main Packages
francois@totoche:/var/tmp$

Ton sources.list n’est pas celui de la Etch…

voici mon sources.list modifier avant maj vers etch :

deb ftp://ftp2.fr.debian.org/debian/ stable main
deb ftp://ftp.proxad.net/mirrors/ftp.debian.org stable main non-free

deb-src ftp://ftp2.fr.debian.org/debian/ stable main
deb-src ftp://ftp.proxad.net/mirrors/ftp.debian.org stable main non-free

deb security.debian.org/ stable/updates main contrib non-free

comment je peut résoudre ce soucis car meme avec apt-get clean il me met toujours le meme message.

Refais un apt-get update et donne le résultat de

apt-cache policy samba

Voici les résultats

apt-get clean
peyronnet:~# apt-get update
Get:1 security.debian.org stable/updates Release.gpg [189B]
Get:2 security.debian.org stable/updates Release [22.5kB]
Hit ftp://ftp2.fr.debian.org stable Release.gpg
Get:3 ftp://ftp2.fr.debian.org stable Release [58.2kB]
Ign security.debian.org stable/updates/main Packages/DiffIndex
Ign security.debian.org stable/updates/contrib Packages/DiffIndex
Ign security.debian.org stable/updates/non-free Packages/DiffIndex
Hit security.debian.org stable/updates/main Packages
Hit security.debian.org stable/updates/contrib Packages
Hit security.debian.org stable/updates/non-free Packages
Hit ftp://ftp.proxad.net stable Release.gpg
Get:4 ftp://ftp2.fr.debian.org stable/main Packages/DiffIndex
Get:5 ftp://ftp.proxad.net stable Release [58.2kB]
Ign ftp://ftp2.fr.debian.org stable/main Packages/DiffIndex
Get:6 ftp://ftp2.fr.debian.org stable/main Sources/DiffIndex
Ign ftp://ftp2.fr.debian.org stable/main Sources/DiffIndex
Hit ftp://ftp2.fr.debian.org stable/main Packages
Hit ftp://ftp2.fr.debian.org stable/main Sources
Get:7 ftp://ftp.proxad.net stable/main Packages/DiffIndex
Ign ftp://ftp.proxad.net stable/main Packages/DiffIndex
Get:8 ftp://ftp.proxad.net stable/non-free Packages/DiffIndex
Ign ftp://ftp.proxad.net stable/non-free Packages/DiffIndex
Get:9 ftp://ftp.proxad.net stable/main Sources/DiffIndex
Ign ftp://ftp.proxad.net stable/main Sources/DiffIndex
Get:10 ftp://ftp.proxad.net stable/non-free Sources/DiffIndex
Ign ftp://ftp.proxad.net stable/non-free Sources/DiffIndex
Hit ftp://ftp.proxad.net stable/main Packages
Hit ftp://ftp.proxad.net stable/non-free Packages
Hit ftp://ftp.proxad.net stable/main Sources
Hit ftp://ftp.proxad.net stable/non-free Sources
Fetched 139kB in 13s (9964B/s)
Reading package lists… Done
peyronnet:~# apt-cache policy samba
samba:
Installed: 3.0.23d-1
Candidate: 3.0.24-6
Version table:
3.0.24-6 0
500 ftp://ftp2.fr.debian.org stable/main Packages
500 ftp://ftp.proxad.net stable/main Packages
*** 3.0.23d-1 0
100 /var/lib/dpkg/status
peyronnet:~#

Il te faut faire une mise à jour, le paquet de Etch est la version 3.24 et non 3.23.
Essayes un apt-get -f install comme il le suggère.

Voila ce que cela me renvoi :confused: :

peyronnet:~# apt-get -f install
Reading package lists… Done
Building dependency tree… Done
Correcting dependencies… Done
The following extra packages will be installed:
samba samba-common
Recommended packages:
smbldap-tools
The following packages will be upgraded:
samba samba-common
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
207 not fully installed or removed.
Need to get 5637kB of archives.
After unpacking 238kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 ftp://ftp2.fr.debian.org stable/main samba 3.0.24-6 [3258kB]
Get:2 ftp://ftp2.fr.debian.org stable/main samba-common 3.0.24-6 [2379kB]
Fetched 5637kB in 1m39s (56.7kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “fr_FR:fr:en_GB:en”,
LC_ALL = “fr_FR”,
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
Preconfiguring packages …
(Reading database … 35410 files and directories currently installed.)
Preparing to replace samba 3.0.23d-1 (using …/samba_3.0.24-6_i386.deb) …
Stopping Samba daemons: nmbd smbd.
Unpacking replacement samba …
dpkg: error processing /var/cache/apt/archives/samba_3.0.24-6_i386.deb (–unpack):
trying to overwrite /usr/bin/profiles', which is also in package samba-common dpkg-deb: subprocess paste killed by signal (Broken pipe) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "fr_FR:fr:en_GB:en", LC_ALL = "fr_FR", LANG = "fr_FR@euro" 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 = "fr_FR:fr:en_GB:en", LC_ALL = "fr_FR", 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 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "fr_FR:fr:en_GB:en", LC_ALL = "fr_FR", LANG = "fr_FR@euro" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Preparing to replace samba-common 3.0.23d-1 (using .../samba-common_3.0.24-6_i386.deb) ... Unpacking replacement samba-common ... dpkg: error processing /var/cache/apt/archives/samba-common_3.0.24-6_i386.deb (--unpack): trying to overwrite/usr/share/man/man5/smbpasswd.5.gz’, which is also in package samba
dpkg-deb: subprocess paste killed by signal (Broken pipe)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “fr_FR:fr:en_GB:en”,
LC_ALL = “fr_FR”,
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
Errors were encountered while processing:
/var/cache/apt/archives/samba_3.0.24-6_i386.deb
/var/cache/apt/archives/samba-common_3.0.24-6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

essayes de faire des ‘aptitude remove’ de samba et samba-common (la config restera pour la reinstall), puis essayes un ‘aptitude reinstall’ de locales.
Si ça ne passe pas pour locales, essayes à ce moment d’installer belocs-locales

+1 sur ce que dit Matt:

francois@totoche:~$ dpkg -S /usr/share/man/man5/smbpasswd.5.gz
samba-common: /usr/share/man/man5/smbpasswd.5.gz
francois@totoche:~$

Le fichier a changé de place on dirait…, il faut virer le paquet samba et samba-common et les réinstaller.

Je vous remercie de votre aide car pour Samba il a pu le reinstaller sans soucis :

apt-cache policy samba
samba:
  Installed: 3.0.24-6
  Candidate: 3.0.24-6
  Version table:
 *** 3.0.24-6 0
        500 ftp://ftp2.fr.debian.org stable/main Packages
        500 ftp://ftp.proxad.net stable/main Packages
        100 /var/lib/dpkg/status

par contre locale donne toujours des signes de résistance.

aptitude reinstall locales
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Building tag database... Done
The following packages will be REINSTALLED:
  locales
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 4004kB of archives. After unpacking 0B will be used.
Writing extended state information... Done
Get:1 ftp://ftp2.fr.debian.org stable/main locales 2.3.6.ds1-13 [4004kB]
Fetched 4004kB in 1m33s (42.7kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr_FR:fr:en_GB:en",
        LC_ALL = "fr_FR",
        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
Preconfiguring packages ...
(Reading database ... 35143 files and directories currently installed.)
Preparing to replace locales 2.3.6.ds1-13 (using .../locales_2.3.6.ds1-13_all.deb) ...
Unpacking replacement locales ...
Setting up locales (2.3.6.ds1-13) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr_FR:fr:en_GB:en",
        LC_ALL = "fr_FR",
        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
Generating locales (this might take a while)...
  fr_FR.ISO-8859-15@euro... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr_FR:fr:en_GB:en",
        LC_ALL = "fr_FR",
        LANG = "fr_FR@euro"
    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 = "fr_FR:fr:en_GB:en",
        LC_ALL = "fr_FR",
        LANG = "fr_FR@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

peyronnet:~# apt-get update
Get:1 http://security.debian.org stable/updates Release.gpg [189B]
Hit ftp://ftp2.fr.debian.org stable Release.gpg
Hit http://security.debian.org stable/updates Release
Hit ftp://ftp.proxad.net stable Release.gpg
Get:2 ftp://ftp2.fr.debian.org stable Release [58.2kB]
Ign http://security.debian.org stable/updates/main Packages/DiffIndex
Get:3 ftp://ftp.proxad.net stable Release [58.2kB]
Ign http://security.debian.org stable/updates/contrib Packages/DiffIndex
Ign http://security.debian.org stable/updates/non-free Packages/DiffIndex
Hit http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/contrib Packages
Hit http://security.debian.org stable/updates/non-free Packages
Get:4 ftp://ftp2.fr.debian.org stable/main Packages/DiffIndex
Get:5 ftp://ftp.proxad.net stable/main Packages/DiffIndex
Ign ftp://ftp2.fr.debian.org stable/main Packages/DiffIndex
Ign ftp://ftp.proxad.net stable/main Packages/DiffIndex
Get:6 ftp://ftp2.fr.debian.org stable/main Sources/DiffIndex
Get:7 ftp://ftp.proxad.net stable/non-free Packages/DiffIndex
Ign ftp://ftp2.fr.debian.org stable/main Sources/DiffIndex
Ign ftp://ftp.proxad.net stable/non-free Packages/DiffIndex
Get:8 ftp://ftp.proxad.net stable/main Sources/DiffIndex
Hit ftp://ftp2.fr.debian.org stable/main Packages
Ign ftp://ftp.proxad.net stable/main Sources/DiffIndex
Hit ftp://ftp2.fr.debian.org stable/main Sources
Get:9 ftp://ftp.proxad.net stable/non-free Sources/DiffIndex
Ign ftp://ftp.proxad.net stable/non-free Sources/DiffIndex
Hit ftp://ftp.proxad.net stable/main Packages
Hit ftp://ftp.proxad.net stable/non-free Packages
Hit ftp://ftp.proxad.net stable/main Sources
Hit ftp://ftp.proxad.net stable/non-free Sources
Fetched 116kB in 8s (13.3kB/s)
Reading package lists... Done
peyronnet:~# locales
-bash: locales: command not found
peyronnet:~# 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
LANGUAGE=fr_FR:fr:en_GB:en
LC_CTYPE="fr_FR"
LC_NUMERIC="fr_FR"
LC_TIME="fr_FR"
LC_COLLATE="fr_FR"
LC_MONETARY="fr_FR"
LC_MESSAGES="fr_FR"
LC_PAPER="fr_FR"
LC_NAME="fr_FR"
LC_ADDRESS="fr_FR"
LC_TELEPHONE="fr_FR"
LC_MEASUREMENT="fr_FR"
LC_IDENTIFICATION="fr_FR"
LC_ALL=fr_FR
peyronnet:~#

je viens d’essayer dpkg-reconfigure locales mais meme message pr les locales.

Bon essayes de faire dans l’ordre

dpkg-reconfigure locales

et selectionnes les bonnes locales

Puis

set-language-env

Je vous remercie de m’avoir aider
j’ai refait un dpkg-reconfigure locales et sélectionner toutes les fr ^^ peut etre pas trés propre et mis Fr_fr par défault et cela fonctionne.

bon me reste 5 serveurs sarge à migrer vers etch …

Un conseil dans la migration: faire d’abord un dist-upgrade sous sarge puis un upgrade ou dist-upgrade vers Etch…