GNU/Linux >> Linux の 問題 >  >> Ubuntu

Aptのロケールエラー-インストールを取得しますか?

apt-get installを使用して新しいパッケージまたはソフトウェアをインストールできません Ubuntu 14.04では、
エラーの詳細

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 

承認された回答:

ロケールを修正するには、言語サポート設定を確認してください–英語(インド)をインストールする必要があります。そうでない場合は、インストールしてください。次に実行します:

sudo locale-gen en_IN.UTF-8

それでもロケールが生成されない場合は、

を使用できます。
sudo dpkg-reconfigure locales

en_IN UTF-8を選択します 膨大なリストから同じことをする

関連:Ubuntuで32ビットから64ビットのインストールに「アップグレード」することは可能ですか?

必要なロケールを生成したら、localeの出力を確認します 。あなたが見たい:

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=

en_IN.UTF-8が表示されない場合 すべてについて、これを実行します:

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

localeを確認してください また。 LCの場合 変数がまだ間違っている場合は、次のようにします。

nano ~/.pam_environment

次のように編集します:

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

papersizeを残す 一人で–それがあなたにとってどうあるべきかわかりません!)

保存して終了し、次のように入力します:source ~/.pam_environment そして今、あなたのlocale 修正されました。


Ubuntu
  1. JunglediskがLibnotifyエラーで失敗しますか?

  2. Sudo Apt-get -f Installの実行中にエラーが発生しましたか?

  3. Gfortranをインストールするにはどうすればいいですか?

  1. Apt-getを使用したUbuntuへのJavaのインストール

  2. CentOSを搭載したPPC64LEマシンに鬼車をインストールする

  3. CentOS 6.x に tmux をインストールしようとすると、次のエラーで失敗する:‘EVBUFFER_EOL_LF’ undeclared

  1. Apt-getを使用してコマンドラインからパッケージのリストをインストール/削除しますか?

  2. ubuntu 11.04 での autoconf エラー

  3. エラー:CentOS でコマンド 'gcc' が終了ステータス 1 で失敗しました