Cannot set LC_CTYPE to default locale
Months ago I had asked about Setting of 'locale' (in Qn 202428). The problem is not solved yet. Read http://
But didn't try anything. Which one should I try. I am using 12.04 LTS.
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
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Please start by running steps 1 to 6 of https:/
Revision history for this message
|
#2 |
madhu@madhu-
Traceback (most recent call last):
File "/usr/bin/
(still_
File "/usr/bin/
raise Exception("No date tag found")
Exception: No date tag found
madhu@madhu-
[sudo] password for madhu:
Sorry, try again.
[sudo] password for madhu:
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
cat: /etc/apt/apt.conf: No such file or directory
madhu@madhu-
madhu@madhu-
madhu@madhu-
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
madhu@madhu-
madhu@madhu-
Linux madhu-desktop 3.2.0-57-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
sudo mv /var/lib/
sudo cp /var/lib/
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
madhu@madhu-
Reading package lists... Done
Building dependency tree
Reading state information... Done
madhu@madhu-
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
46 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up libavahi-
Setting up libavahi-common3 (0.6.30-5ubuntu2.1) ...
Setting up libavahi-client3 (0.6.30-5ubuntu2.1) ...
Setting up libavahi-core7 (0.6.30-5ubuntu2.1) ...
Setting up libavahi-glib1 (0.6.30-5ubuntu2.1) ...
Setting up libavahi-gobject0 (0.6.30-5ubuntu2.1) ...
Setting up libavahi-ui-gtk3-0 (0.6.30-5ubuntu2.1) ...
Setting up libcurl3 (7.22.0-3ubuntu4.6) ...
Setting up libcurl3-gnutls (7.22.0-3ubuntu4.6) ...
Setting up libnss3 (3.15.3.
Setting up libcurl3-nss (7.22.0-3ubuntu4.6) ...
Setting up libjpeg-turbo8 (1.1.90+
Setting up libqtcore4 (4:4.8.
Setting up libqt4-xml (4:4.8.
Setting up libqt4-dbus (4:4.8.
Setting up libqt4-network (4:4.8.
Setting up libqt4-sql (4:4.8.
Setting up libqt4-script (4:4.8.
Setting up libqt4-xmlpatterns (4:4.8.
Setting up qdbus (4:4.8.
Setting up libqt4-sql-mysql (4:4.8.
Setting up libqt4-sql-sqlite (4:4.8.
Setting up libqt4-test (4:4.8.
Setting up libaccountsservice0 (0.6.15-2ubuntu9.7) ...
Setting up accountsservice (0.6.15-2ubuntu9.7) ...
Setting up avahi-autoipd (0.6.30-5ubuntu2.1) ...
Setting up avahi-daemon (0.6.30-5ubuntu2.1) ...
Setting up avahi-utils (0.6.30-5ubuntu2.1) ...
Setting up gir1.2-
Setting up gnome-desktop3-data (3.4.2-0ubuntu0.2) ...
Setting up grub-common (1.99-21ubuntu3.14) ...
Setting up grub2-common (1.99-21ubuntu3.14) ...
Setting up grub-pc-bin (1.99-21ubuntu3.14) ...
Setting up grub-pc (1.99-21ubuntu3.14) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Installation finished. No error reported.
Generating grub.cfg ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Setting up libdjvulibre-text (3.5.24-9ubuntu0.1) ...
Setting up libdjvulibre21 (3.5.24-9ubuntu0.1) ...
Setting up libgnome-
Setting up libnss3-1d (3.15.3.
Setting up libqtgui4 (4:4.8.
Setting up libqt4-help (4:4.8.
Setting up libqt4-designer (4:4.8.
Setting up libqt4-opengl (4:4.8.
Setting up libqt4-qt3support (4:4.8.
Setting up libqt4-scripttools (4:4.8.
Setting up libqt4-svg (4:4.8.
Setting up libqt4-declarative (4:4.8.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
madhu@madhu-
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Fetched 19.5 MB in 1min 50s (177 kB/s)
Reading package lists... Done
madhu@madhu-
madhu@madhu-
madhu@madhu-
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
madhu@madhu-
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
madhu@madhu-
Hit http://
Get:1 http://
Get:2 http://
Hit http://
Get:3 http://
Get:4 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Fetched 2250 kB in 17s (126 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-
linux-
The following packages will be upgraded:
linux-generic-pae linux-headers-
linux-libc-dev
4 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 51.8 MB of archives.
After this operation, 181 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Fetched 51.8 MB in 17min 31s (49.3 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Selecting previously unselected package linux-image-
(Reading database ... 830693 files and directories currently installed.)
Unpacking linux-image-
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Done.
Preparing to replace linux-generic-pae 3.2.0.57.68 (using .../linux-
Unpacking replacement linux-generic-pae ...
Preparing to replace linux-image-
Unpacking replacement linux-image-
Selecting previously unselected package linux-headers-
Unpacking linux-headers-
Selecting previously unselected package linux-headers-
Unpacking linux-headers-
Preparing to replace linux-headers-
Unpacking replacement linux-headers-
Preparing to replace linux-libc-dev 3.2.0-57.87 (using .../linux-
Unpacking replacement linux-libc-dev ...
Setting up linux-image-
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Generating grub.cfg ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Setting up linux-image-
Setting up linux-headers-
Setting up linux-headers-
Setting up linux-headers-
Setting up linux-generic-pae (3.2.0.58.69) ...
Setting up linux-libc-dev (3.2.0-58.88) ...
madhu@madhu-
/etc/apt/
1 # deb http://
/etc/apt/
/etc/apt/
1 # deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted
2
3 # See http://
4 # newer versions of the distribution.
5 deb http://
6 deb-src http://
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://
11 deb-src http://
12
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
14 ## team. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16 deb http://
17 deb-src http://
18 deb http://
19 deb-src http://
20
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
22 ## team, and may not be under a free licence. Please satisfy yourself as to
23 ## your rights to use the software. Also, please note that software in
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
25 ## security team.
26 deb http://
27 deb-src http://
28 deb http://
29 deb-src http://
30
31 ## N.B. software from this repository may not have been tested as
32 ## extensively as that contained in the main release, although it includes
33 ## newer versions of some applications which may provide useful features.
34 ## Also, please note that software in backports WILL NOT receive any review
35 ## or updates from the Ubuntu security team.
36
37 deb http://
38 deb-src http://
39 deb http://
40 deb-src http://
41 deb http://
42 deb-src http://
43
44 ## Uncomment the following two lines to add software from Canonical's
45 ## 'partner' repository.
46 ## This software is not part of Ubuntu, but is offered by Canonical and the
47 ## respective vendors as a service to Ubuntu users.
48 # deb http://
49 # deb-src http://
50
51 ## This software is not part of Ubuntu, but is offered by third-party
52 ## developers who want to ship their latest software.
53 # deb http://
54 # deb http://
55 # deb-src http://
56 # deb-src http://
madhu@madhu-
Revision history for this message
|
#3 |
The package manager troubleshooting procedure shows that there apparently was some minor problem, and it was able to solve it. As far as I can see, the package management system now is in a consistent state.
Now try the terminal commands
sudo dpkg-reconfigure locales
locale
and copy/paste all output into this question document as done before.
Revision history for this message
|
#4 |
madhu@madhu-
[sudo] password for madhu:
Generating locales...
en_AG.UTF-8... up-to-date
en_AU.UTF-8... up-to-date
en_BW.UTF-8... up-to-date
en_CA.UTF-8... up-to-date
en_DK.UTF-8... up-to-date
en_GB.UTF-8... up-to-date
en_HK.UTF-8... up-to-date
en_IE.UTF-8... up-to-date
en_IN.UTF-8... up-to-date
en_NG.UTF-8... up-to-date
en_NZ.UTF-8... up-to-date
en_PH.UTF-8... up-to-date
en_SG.UTF-8... up-to-date
en_US.UTF-8... up-to-date
en_ZA.UTF-8... up-to-date
en_ZM.UTF-8... up-to-date
en_ZW.UTF-8... up-to-date
Generation complete.
madhu@madhu-
LANG=en_IN
LANGUAGE=en_IN:en
LC_CTYPE="en_IN"
LC_NUMERIC="en_IN"
LC_TIME="en_IN"
LC_COLLATE="en_IN"
LC_MONETARY="en_IN"
LC_MESSAGES="en_IN"
LC_PAPER="en_IN"
LC_NAME="en_IN"
LC_ADDRESS="en_IN"
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
madhu@madhu-
Revision history for this message
|
#5 |
It seems everything is OK. But still wish to know it from you. If OK, can I enable the other softwares now? Can I change the server?
Revision history for this message
|
#6 |
Your last post shows that LC_ALL is still not set.
You might try using the system language settings dialogue to switch your default language to plain English (or UK English), close the dialogue, open it again and set back to English (India).
Please provide the output of the terminal command
cat /etc/environment
Revision history for this message
|
#7 |
> You might try using the system language settings dialogue
Don't know where I can find system language settings dialogue
Need I do anything in the System setup before booting?
This is the output ( without doing anything ):
madhu@madhu-
PATH="/
madhu@madhu-
Revision history for this message
|
#8 |
It depends on the Ubuntu version and the desktop environment in use, where to find the system settings dialogue.
By clicking in the "gear" icon in the top right corner of the screen you should see an entry "System settings".
Or just search for "system settings" in the dash (if you are using the desktop with the dash)
Or use the menu Applications - system Tools - ... (if you are using the desktop with the menu)
Revision history for this message
|
#9 |
I am using 12.04 LTS. So I have Dash Home. When I clicked on Language Support, the following pop-up window appeared:
-------
The language support is not installed completely
Some translations or writing aids available for your chosen languages are not installed yet. Do you want to install them now?
DETAILS:
libreoffice-
poppler-data
language-
openoffice.
hunspell-en-ca
hyphen-en-us
myspell-en-au
mythes-en-au
kde-l10n-engb
myspell-en-gb
libreoffice-
myspell-en-za
wbritish
libreoffice-
mythes-en-us
-------
Since I couldn't find anything in 'in' (as India's) and to avoid further problems I didn't install anything. Need I install all these items?
Revision history for this message
|
#10 |
Yes, I think you should install all these proposed packages. Even if they do not provide English as spoken/written in India, they make sure that British English is available as fallback for any items that are missing in English for India.
Revision history for this message
|
#11 |
Did as you said. set back to English (India). Restarted. But no change in the output
madhu@madhu-
LANG=en_IN
LANGUAGE=en_IN:en
LC_CTYPE="en_IN"
LC_NUMERIC="en_IN"
LC_TIME="en_IN"
LC_COLLATE="en_IN"
LC_MONETARY="en_IN"
LC_MESSAGES="en_IN"
LC_PAPER="en_IN"
LC_NAME="en_IN"
LC_ADDRESS="en_IN"
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
madhu@madhu-
-------
madhu@madhu-
PATH="/
madhu@madhu-
Revision history for this message
|
#12 |
A jerking only .... when I clicked on Apply System-Wide. No Authentication needed to change to this Regional language. So I am not sure whether it has been changed or not.
Revision history for this message
|
#13 |
For testing, I tried to select another language from REGIONAL FORMATS...Clicked on APPLY SYSTEM-WIDE...Then I was asked to enter password to authenticate. But I didn't enter it to switch over to that one. Can I use any terminal command? Or Need I report this as a bug?
Revision history for this message
|
#14 |
I have not seen any warning or error messages in your output any more. LANG and LANGUAGE are defined now. LC_ALL is not set on all system, so this can be ok on your system.
You have to be aware that whenever you provide your password for an admin action, this is temporarily store and you will not be asked again for the next ten minutes. Maybe this was the case also in the situation above.
So in the moment I do not see anything wrong.
Do you see more problems on your system? If yes, please provide details.
Revision history for this message
|
#15 |
As you said I COULDN'T SEE ANYTHING WRONG this time after the change of Regional language. The following three lines in the Update Manager has disappeared when I updated today.
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
I shall post if there is any problem in the next Updating.
Thanks a lot, Manfred Hampl for treating this chronic disease.
Revision history for this message
|
#16 |
Thanks Manfred Hampl, that solved my question.