GNU/Linux >> Tutoriels Linux >  >> Ubuntu

Erreur locale avec Apt-get Install ?

Impossible d'installer un nouveau package ou logiciel à l'aide de apt-get install sur Ubuntu 14.04,
détails de l'erreur

Échec de
installArchives() failed: perl: warning: Setting locale failed. 
perl: warning: Please check that your locale settings: 
    LANGUAGE = (unset), 
    LC_ALL = (unset), 
    LANG = "en_IN.ISO8859-1" 
    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 = (unset), 
    LC_ALL = (unset), 
    LANG = "en_IN.ISO8859-1" 
    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 = (unset), 
    LC_ALL = (unset), 
    LANG = "en_IN.ISO8859-1" 
    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 ... 
(Reading database ... 5% 
(Reading database ... 10% 
(Reading database ... 15% 
(Reading database ... 20% 
(Reading database ... 25% 
(Reading database ... 30% 
(Reading database ... 35% 
(Reading database ... 40% 
(Reading database ... 45% 
(Reading database ... 50% 
(Reading database ... 55% 
(Reading database ... 60% 
(Reading database ... 65% 
(Reading database ... 70% 
(Reading database ... 75% 
(Reading database ... 80% 
(Reading database ... 85% 
(Reading database ... 90% 
(Reading database ... 95% 
(Reading database ... 100% 
(Reading database ... 337820 files and directories currently installed.) 
Preparing to unpack .../python-colorama_0.2.5-0.1ubuntu2_all.deb ... 
Unpacking python-colorama (0.2.5-0.1ubuntu2) ... 
dpkg: error processing archive /var/cache/apt/archives/python-colorama_0.2.5-0.1ubuntu2_all.deb (--unpack): 
 trying to overwrite '/usr/lib/python2.7/dist-packages/colorama/ansi.py', which is also in package python-batteryonboardservices 0.1-1 
Preparing to unpack .../python-setuptools_3.3-1ubuntu2_all.deb ... 
Unpacking python-setuptools (3.3-1ubuntu2) ... 
dpkg: error processing archive /var/cache/apt/archives/python-setuptools_3.3-1ubuntu2_all.deb (--unpack): 
 trying to overwrite '/usr/lib/python2.7/dist-packages/setuptools/dist.py', which is also in package python-batteryonboardservices 0.1-1 
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) 
Errors were encountered while processing: 
 /var/cache/apt/archives/python-colorama_0.2.5-0.1ubuntu2_all.deb 
 /var/cache/apt/archives/python-setuptools_3.3-1ubuntu2_all.deb 
Error in function: 
dpkg: dependency problems prevent configuration of python-pip: 
 python-pip depends on python-colorama; however: 
  Package python-colorama is not installed. 
 python-pip depends on python-setuptools (>= 0.6c1); however: 
  Package python-setuptools is not installed. 

dpkg: error processing package python-pip (--configure): 
 dependency problems - leaving unconfigured 

Réponse acceptée :

Pour corriger les paramètres régionaux, vérifiez vos paramètres de prise en charge linguistique - l'anglais (Inde) doit être installé. Sinon, installez-le. Exécutez ensuite :

sudo locale-gen en_IN.UTF-8

Si cela ne génère pas les paramètres régionaux, vous pouvez utiliser

sudo dpkg-reconfigure locales

et choisissez en_IN UTF-8 de la liste massive pour faire la même chose

En relation:Est-il possible de "mettre à niveau" d'une installation 32 bits à une installation 64 bits dans Ubuntu ?

Après avoir généré les paramètres régionaux souhaités, vérifiez la sortie de locale . Vous voulez voir :

LANG=en_IN.UTF-8
LANGUAGE=en_IN:en
LC_CTYPE="en_IN.UTF-8"
LC_NUMERIC=en_IN.UTF-8
LC_TIME=en_IN.UTF-8
LC_COLLATE="en_IN.UTF-8"
LC_MONETARY=en_IN.UTF-8
LC_MESSAGES="en_IN.UTF-8"
LC_PAPER=en_IN.UTF-8
LC_NAME=en_IN.UTF-8
LC_ADDRESS=en_IN.UTF-8
LC_TELEPHONE=en_IN.UTF-8
LC_MEASUREMENT=en_IN.UTF-8
LC_IDENTIFICATION=en_IN.UTF-8
LC_ALL=

Si vous ne voyez pas en_IN.UTF-8 pour tout, faites ceci :

sudo update-locale LANG="en_IN.UTF-8" LANGUAGE=en_IN:en

et vérifiez locale de nouveau. Si le LC variables sont toujours fausses, alors faites :

nano ~/.pam_environment

et modifiez-le pour qu'il ressemble à ceci :

LANGUAGE=en_IN:en
LANG=en_IN.UTF-8
LC_NUMERIC=en_IN.UTF-8
LC_TIME=en_IN.UTF-8
LC_MONETARY=en_IN.UTF-8
LC_PAPER=en_IN.UTF-8
LC_NAME=en_IN.UTF-8
LC_ADDRESS=en_IN.UTF-8
LC_TELEPHONE=en_IN.UTF-8
LC_MEASUREMENT=en_IN.UTF-8
LC_IDENTIFICATION=en_IN.UTF-8
PAPERSIZE=a4

(laissez le papersize seul - je ne sais pas ce que cela devrait être pour vous !)

Enregistrez, quittez, tapez :source ~/.pam_environment et maintenant votre locale est fixe.


Ubuntu
  1. Installer Java sur Ubuntu avec Apt-get

  2. Jungledisk échoue avec une erreur Libnotify ?

  3. Erreur lors de l'exécution de Sudo Apt-get -f Install ?

  4. erreur autoconf sur ubuntu 11.04

  5. Comment installer des packages .deb locaux avec apt-get

Comment installer Mailpile avec Nginx sur Ubuntu 15.10

Comment installer Redmine 3 avec Nginx sur Ubuntu 15.10

Comment installer Piwik avec Nginx sur Ubuntu 15.10

Installer Ubuntu 16.04 - Avec des captures d'écran

Installer Portainer avec Docker sur Ubuntu

Comment installer NCDU sur Ubuntu 17.04