linux - Pecl / Python: unsupported locale setting - Ubuntu 13.10 -
i want install pecl ssh2 extension. when try:
sorry, command-not-found has crashed! please file bug report at: https://bugs.launchpad.net/command-not-found/+filebug please include following information report: command-not-found version: 0.3 python version: 3.3.2 final 0 distributor id: ubuntu description: ubuntu 13.10 release: 13.10 codename: saucy exception information: unsupported locale setting traceback (most recent call last): file "/usr/lib/python3/dist-packages/commandnotfound/util.py", line 24, in crash_guard callback() file "/usr/lib/command-not-found", line 69, in main enable_i18n() file "/usr/lib/command-not-found", line 40, in enable_i18n locale.setlocale(locale.lc_all, '') file "/usr/lib/python3.3/locale.py", line 541, in setlocale return _setlocale(category, locale) locale.error: unsupported locale setting
i'v tried everything, yes found on google!
what i'v tried:
1- on terminal
export language=en_us.utf-8 export lang=en_us.utf-8 export lc_all=en_us.utf-8 locale-gen en_us.utf-8 dpkg-reconfigure locales
2- editing environment (/etc/environment)
lc_all="en_us.utf-8" lang="en_us.utf-8"
3- editing locale (/etc/default/locale)
lang="en_us.utf-8"
4- apt-get update & upgrade
5- rebooting system
locale command:
locale: cannot set lc_ctype default locale: no such file or directory locale: cannot set lc_all default locale: no such file or directory lang= language= lc_ctype=utf-8 lc_numeric="posix" lc_time="posix" lc_collate="posix" lc_monetary="posix" lc_messages="posix" lc_paper="posix" lc_name="posix" lc_address="posix" lc_telephone="posix" lc_measurement="posix" lc_identification="posix" lc_all=
you need give following command :
sudo apt-get install language-pack-en-base -y && sudo locale-gen en_us en_us.utf-8 && sudo dpkg-reconfigure locales
this should fix problem.
Comments
Post a Comment