Language-pack-ru terminal howto set?


#1

Can’t setup ru_RU.UTF-8
How to do this?

shkur:~/workspace $ sudo update-locale LANG='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_CTYPE='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_NUMERIC='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_TIME='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_COLLATE='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_MONETARY='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_MESSAGES='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_PAPER='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_NAME='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_ADDRESS='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_TELEPHONE='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_MEASUREMENT='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_IDENTIFICATION='ru_RU.UTF-8'
shkur:~/workspace $ sudo update-locale LC_ALL='ru_RU.UTF-8'
shkur:~/workspace $ locale
LANG=C
LANGUAGE=C.UTF-8
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
shkur:~/workspace $ langague-selector
bash: langague-selector: command not found
shkur:~/workspace $ language-selector                                                                                                                                                                                                       
bash: language-selector: command not found
shkur:~/workspace $ sudo apt-get install language-pack-ru
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  firefox-locale-ru language-pack-ru-base
The following NEW packages will be installed:
  firefox-locale-ru language-pack-ru language-pack-ru-base
0 upgraded, 3 newly installed, 0 to remove and 35 not upgraded.
Need to get 387 kB/2972 kB of archives.
After this operation, 11.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main firefox-locale-ru amd64 41.0.2+build2-0ubuntu0.14.04.1
  404  Not Found [IP: 91.189.91.15 80]
Err http ://archive.ubuntu.com/ubuntu/ trusty-security/main firefox-locale-ru amd64 41.0.2+build2-0ubuntu0.14.04.1
  404  Not Found [IP: 91.189.91.15 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox-locale-ru_41.0.2+build2-0ubuntu0.14.04.1_amd64.deb  404  Not Found [IP: 91.189.91.15 80]    

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
shkur:~/workspace $ cat /etc/default/locale                                                                                                                                                                                                 
#  File generated by update-locale
LC_ALL=ru_RU.UTF-8
LANGUAGE=ru_RU.UTF-8
LANG=ru_RU.UTF-8
LC_CTYPE=ru_RU.UTF-8
LC_NUMERIC=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8
LC_COLLATE=ru_RU.UTF-8
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES=ru_RU.UTF-8
LC_PAPER=ru_RU.UTF-8
LC_NAME=ru_RU.UTF-8
LC_ADDRESS=ru_RU.UTF-8
LC_TELEPHONE=ru_RU.UTF-8
LC_MEASUREMENT=ru_RU.UTF-8
LC_IDENTIFICATION=ru_RU.UTF-8
shkur:~/workspace $ sudo reboot`

#2

Hey @Shkur :slightly_smiling:,

I’m checking on old left out posts tonight and you made the list. However I’m not of knowing to help out directly on your issue. If this is still an issue for you, don’t be shy to @mention the C9 Support guys. :wink:

Maybe the resurrection may help other community members see it as well. :family: :waning_crescent_moon:

Best,
Mike
:alien:


#3

modifying /etc/default/locale doesn’t work because bashrc sets locale to c.utf-8, if you add

export LC_ALL=ru_RU.UTF-8
export LANG=ru_RU.UTF-8
export LANGUAGE=ru_RU.UTF-8

at the end of .bashrc it should work