• Serveurs
  • Debian 7 sous KS-1 et locales cassées

Bonjour à tous,
J'ai cassé les locales de mon vénérable KS-1, ce serveur me sert de seedbox avec un plexmediaserver, (merci ex_rat!).
Avant hier j'ai fait un apt-get update && apt-get upgrade et soudain plus de plex 🙁
J'ai alors voulu faire un apt-get remove plexmediaserver puis un apt-get install plexmediaserver mais la :

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (fr_FR.iso885915)
Can't set locale; make sure $LC_* and $LANG are correct!
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (fr_FR.iso885915)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr_FR.UTF-8",
        LC_ALL = "fr_FR.iso885915",
        LANG = "fr_FR.UTF-8"
    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
(Reading database ... 62390 files and directories currently installed.)
Removing plexmediaserver ...
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (fr_FR.iso885915)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (fr_FR.iso885915)
Plex Media Server is not running (no process found)...
update-rc.d: using dependency based boot sequencing
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (fr_FR.iso885915)

Et depuis j'ai fait beaucoup de tentatives pour rétablir les locales (plex ne fonctionne plus biensur) impossible pour moi de rétablir la situation.
Lorsque j'essaye de réinstaller "locales" voila ce que j'obtiens :

root@thor:~# apt-get install locales
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libapr1 : Depends: libuuid1 (>= 2.16) but it is not going to be installed
 libaprutil1 : Depends: libexpat1 (>= 2.0.1) but it is not going to be installed
               Depends: libuuid1 (>= 2.16) but it is not going to be installed
 libbz2-1.0 : PreDepends: multiarch-support but it is not going to be installed
 libc6 : Depends: libgcc1 but it is not going to be installed
         Breaks: locales (< 2.24)
 libcap2 : Depends: libattr1 (>= 1:2.4.46-8) but it is not going to be installed
           PreDepends: multiarch-support but it is not going to be installed
 libcomerr2 : PreDepends: multiarch-support but it is not going to be installed
 libdb5.1 : PreDepends: multiarch-support but it is not going to be installed
 libgssapi-krb5-2 : Depends: libkeyutils1 but it is not going to be installed
                    Depends: libkrb5support0 (>= 1.7dfsg~beta2) but it is not going to be installed
                    PreDepends: multiarch-support but it is not going to be installed
 libk5crypto3 : Depends: libkeyutils1 but it is not going to be installed
                Depends: libkrb5support0 (>= 1.7dfsg~beta2) but it is not going to be installed
                PreDepends: multiarch-support but it is not going to be installed
 libkrb5-3 : Depends: libkeyutils1 but it is not going to be installed
             Depends: libkrb5support0 (= 1.10.1+dfsg-5+deb7u8) but it is not going to be installed
             PreDepends: multiarch-support but it is not going to be installed
             Recommends: krb5-locales but it is not going to be installed
 libldap-2.4-2 : Depends: libgcrypt11 (>= 1.4.5) but it is not going to be installed
                 Depends: libgnutls26 (>= 2.12.17-0) but it is not going to be installed
                 Depends: libsasl2-2 (>= 2.1.24) but it is not going to be installed
                 PreDepends: multiarch-support but it is not going to be installed
 libmagic1 : PreDepends: multiarch-support but it is not going to be installed
 libpcre3 : PreDepends: multiarch-support but it is not going to be installed
 libsqlite3-0 : PreDepends: multiarch-support but it is not going to be installed
 libssl1.0.0 : Depends: debconf (>= 0.5) but it is not going to be installed or
                        debconf-2.0
               PreDepends: multiarch-support but it is not going to be installed
 libstdc++6 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed
              PreDepends: multiarch-support but it is not going to be installed
 libxml2 : Depends: liblzma5 (>= 5.1.1alpha+20120614) but it is not going to be installed
           PreDepends: multiarch-support but it is not going to be installed
           Recommends: xml-core but it is not going to be installed
 locales : Depends: glibc-2.13-1
           Depends: debconf (>= 0.5) but it is not going to be installed or
                    debconf-2.0
 perl : Depends: perl-base (= 5.14.2-21+deb7u5) but it is not going to be installed
        Depends: perl-modules (>= 5.14.2-21+deb7u5) but it is not going to be installed
        Depends: libgdbm3 (>= 1.8.3) but it is not going to be installed
 php5-cli : Depends: libedit2 (>= 2.11-20080614-4) but it is not going to be installed
            Recommends: php5-readline but it is not going to be installed
 php5-common : Depends: sed (>= 4.1.1-1) but it is not going to be installed
               Depends: psmisc (>= 22.15-1~) but it is not going to be installed
               Depends: lsof but it is not going to be installed
 procps : Depends: libncurses5 (>= 5.5-5~) but it is not going to be installed
          Depends: libncursesw5 (>= 5.6+20070908) but it is not going to be installed
          Depends: libprocps0 (>= 1:3.3.2-1) but it is not going to be installed
          Depends: libtinfo5 but it is not going to be installed
          Depends: initscripts but it is not going to be installed
          Recommends: psmisc but it is not going to be installed
 ssl-cert : Depends: debconf (>= 0.5) but it is not going to be installed or
                     debconf-2.0
            Depends: openssl (>= 0.9.8g-9) but it is not going to be installed
            Depends: adduser but it is not going to be installed
 tzdata : Depends: debconf (>= 0.5) but it is not going to be installed or
                   debconf-2.0
 ucf : Depends: debconf (>= 1.5.19) but it is not going to be installed
       Depends: coreutils (>= 5.91) but it is not going to be installed
 zlib1g : PreDepends: multiarch-support but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@thor:~#

Si quelqu'un a une idée, elle sera la bienvenue 🙂

Bonsoir,

allons-y dpkg-reconfigure locales; mais c'est juste, il existe bien une option pour les réinstaller (les paquets). Toutefois, je n'ai pas l'impression qu'il faille creuser de ce côté-ci (plutôt s'orienter vers dpkg).

PS : Il n'est pas nécessaire de les installer car elles devraient être déjà là; elles font partie de l'OS.

Bonsoir @Wagner, et merci de ton aide, voici le résultat de la commande :

root@thor:~# dpkg-reconfigure locales;
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr_FR.UTF-8",
        LC_ALL = (unset),
        LANG = "fr_FR.UTF-8"
    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
root@thor:~#

Il me dit que c'est broken 🙁

Le paquet dialog est bien installé? Que te renvoies la commande "locale" ?

Salut @setsuneh,
Oui il semble bien installé (ii) mais la commande locale m'affiche cette erreur...

root@thor:~# 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.UTF-8
LANGUAGE=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=

root@thor:~# dpkg-query -l 'dialog'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                       Version            Architecture       Description
+++-==========================-==================-==================-=========================================================
ii  dialog                     1.1-20120215-2     amd64              Displays user-friendly dialog boxes from shell scripts
root@thor:~#

Dans un premier temps, essaye de rajouter dans /etc/environment

LC_ALL="fr_FR.UTF-8"

et delog / relog

ou alors, fait un backup de ton /etc/default/locale , edit le fichier et ne met que :

LANG=fr_FR.UTF-8

sinon, reprend ton backup et rajoute les lignes qu'il t'indique comme manquante dans le /etc/default/locale :

LC_CTYPE="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LANG="fr_FR.UTF-8"

    Salut @aktarus69 ,
    J'ai essayé ce que tu ma dit :

    aktarus69 LC_ALL="fr_FR.UTF-8"

    C'était déjà comme ça dans mon fichier /etc/environment

    aktarus69 ou alors, fait un backup de ton /etc/default/locale , edit le fichier et ne met que :

    LANG=fr_FR.UTF-8

    J'ai essayé pas d'amélioration 🙁

    aktarus69 sinon, reprend ton backup et rajoute les lignes qu'il t'indique comme manquante dans le /etc/default/locale :

    Idem...
    Je sent que je vais devoir tout réinstallé de 0 si ça continue...
    Merci pour ton aide !

    Je ne pourrais pas aiguiller plus mais via quelques recherches, il semble qu'il existent plusieurs pistes.

    Répondre…