Configuration des locales

Bonjour à tous,
je travaille sur un VPS
la commande locale me renvoie des erreurs que j'aimerais résoudre
# 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=
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=

Et quand j'essaye de réparer :
# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
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

Cela fait un bout de temps que je m'acharne sur ce problème sans succès

3 réponses

  1. Contributeur
    Salut,

    Dans un premier temps (en root) :
    apt-get install locales


    Puis :

    locale-gen fr_FR.UTF-8

    Et seulement ensuite :

    dpkg-reconfigure locales

    Voilà ^^
    1. Ceci est mon deuxième essai, j'ai entre temps installé cl-builder

      # 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:
      locales : Depends: glibc-2.11-1
      E: Broken packages
      on essaye d'installer les dépendances :

      # apt-get install glibc-2.11-1
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package glibc-2.11-1 is a virtual package provided by:
      libc6 2.11.3-4 [Not candidate version]

      E: Package 'glibc-2.11-1' has no installation candidate

      # apt-get install libc6
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      libc6 is already the newest version.
      0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.

      Pourquoi ne trouve t il pas glibc-2.11-1 si son paquet libc6 est installé?