Change language in Ubuntu tty2 login mode
I have login problem of this kind:
A start job is running for Hold until boot process finishes up (Xmin Xs/no limit)
Do when I press Alt+Shift+F2, so it going to login page and the problem is that I can not change language from Persian to English to insert my user and pass.
I already I changing the language at Ubuntu by pressing the Ctrl+Shift+Alt, but it doesn't work here.
So how can I change the language in this mode?
Update:I have this problem in advance boot option (safe mode), grub ...
I also tried to switch language by holding (if I remember correctly) "the Alt + 122 at numpad" to type English yes at dpkg repair option.
1 Answer
It seems you have configured your system locale incorrectly.
Using the next command we could get list of available locales:
locale -aIn my case I have:
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX
uk_UA.utf8To get your current locales configuration run locale:
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=uk_UA.UTF-8
LC_TIME=uk_UA.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=uk_UA.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=uk_UA.UTF-8
LC_NAME=uk_UA.UTF-8
LC_ADDRESS=uk_UA.UTF-8
LC_TELEPHONE=uk_UA.UTF-8
LC_MEASUREMENT=uk_UA.UTF-8
LC_IDENTIFICATION=uk_UA.UTF-8
LC_ALL=Login as root in your gui terminal, where you could change to English and do:
update-locale LC_ALL=en_US.UTF-8 && . /etc/default/localeMake sure, you have us the first keyboard layout in /etc/default/keyboard
$ cat /etc/default/keyboard
XKBLAYOUT=us,ua,ru
XKBVARIANT=,winkeys,
BACKSPACE=guessIf us not the first keyboard layout, make it the first and execute:
. /etc/default/keyboardAlso, try update-grub2 and update-initramfs -u after previous commands using.
If you could not get into your system because of wrong locales configuration, then
- boot from Live CD (Try without installing option in Ubuntu installation image)
- identify your root partition by
sudo fdisk -l - mount your root partition in read/write mode
- configure
/etc/default/keyboardfile as said previously add into
/etc/bash.bashrcthe next at the end:export LC_ALL= "en_US.UTF-8" export LANG = "en_US.UTF-8" export LANGUAGE = "en_US.UTF-8"try to boot into your system