Troubleshooting of errors in Chinese and month in Ubuntu server, ubuntu Chinese

Source: Internet
Author: User

Troubleshooting of errors in Chinese and month in Ubuntu server, ubuntu Chinese

A month error may affect the running of shell scripts. modify it.

1
Zxw @ hostUbuntu1 :~ $ Ifconfig
Eth0 Link encap
Inet clipboard labels: 255.255.255.255.255.255.255.255.0
Inet6 clipboard detail: fe80: 20c: 29ff: fefb: c04c/64 Scope: Link
Up broadcast running multicast mtu: 1500 broadcast multicast interval limit 1
Zookeeper trial version: 177 zookeeper: 0 Juan (I): 0 zookeeper: 0 zookeeper: 0 zookeeper: 0
€: 294 : 0 (I): 0: 0: 0
Incorrect version: 0 faster than € 1000 faster than RMB
When there are too many rows: 30562 (30.5 KB) then € 47721 (47.7 KB)

Zxw @ hostUbuntu1 :~ $ Ll
Ls: zookeeper has been used to handle flood attacks.
20171000000000000000072
Drwxr-xr-x 6 zxw 4096 September 19 10:21 ./
Drwxr-xr-x 9 root 4096 September 9 14:18 ../
-Rw ------- 1 zxw 13754 12:00. bash_history
-Rw-r -- 1 zxw 220 18:01. bash_logout
-Rw-r -- 1 zxw 3486 18:01. bashrc
Drwx ------ 2 zxw 4096 August 29 13:53. cache/

2
Modify securecrt as follows:
"Options"-> "session options"-> "appearance" to change the character encoding to UTF8

3
Zxw @ hostUbuntu1 :~ $ Ll
Ls: An error occurred while initializing the month string.
Total usage 72
Drwxr-xr-x 6 zxw 4096 99 ./
Drwxr-xr-x 9 root 4096 99 ../
-Rw ------- 1 zxw 13754 98. bash_history
-Rw-r -- 1 zxw 220 88 18:01. bash_logout
-Rw-r -- 1 zxw 3486 88 18:01. bashrc
Drwx ------ 2 zxw 4096 89. cache/

4
In this step, modify the/var/lib/locales/supported. d/local and/etc/default/locale files.
You need the administrator privilege to modify these two files. For details, see the following:

Zxw @ hostUbuntu1 :~ $ Ll/var/lib/locales/supported. d/local
Ls: An error occurred while initializing the month string.
-Rw-r -- 1 root 31 84 23:13/var/lib/locales/supported. d/local
Zxw @ hostUbuntu1 :~ $ Cat/var/lib/locales/supported. d/local
Zh_CN GB2312
En_US.UTF-8 UTF-8

Zxw @ hostUbuntu1 :~ $ Ll/etc/default/locale
Ls: An error occurred while initializing the month string.
-Rw-r -- 1 root 216 84 23:13/etc/default/locale

Zxw @ hostUbuntu1 :~ $ Cat/etc/default/locale
LANG = "zh_CN.UTF-8"
LANGUAGE = "zh_CN: zh"
LC_NUMERIC = "zh_CN"
LC_TIME = "zh_CN"
LC_MONETARY = "zh_CN"
LC_PAPER = "zh_CN"
LC_NAME = "zh_CN"
LC_ADDRESS = "zh_CN"
LC_TELEPHONE = "zh_CN"
LC_MEASUREMENT = "zh_CN"
LC_IDENTIFICATION = "zh_CN"

5
Vi/var/lib/locales/supported. d/local
Add:
En_US.UTF-8 UTF-8
Zh_CN.UTF-8 UTF-8

Zxw @ hostUbuntu1 :~ $ Nl/var/lib/locales/supported. d/local
1 zh_CN GB2312
2 en_US.UTF-8 UTF-8

3 zh_CN.UTF-8 UTF-8

Then:

Locale-gen

7
Then, modify:
Vi/etc/default/locale
Here is an important step:
LANG = "zh_CN.UTF-8"
LANGUAGE = "zh_CN: zh"
LC_NUMERIC = "zh_CN.UTF-8"
LC_TIME = "zh_CN.UTF-8"
LC_MONETARY = "zh_CN"
LC_PAPER = "zh_CN"
LC_NAME = "zh_CN"
LC_ADDRESS = "zh_CN"
LC_TELEPHONE = "zh_CN"
LC_MEASUREMENT = "zh_CN"
LC_IDENTIFICATION = "zh_CN"

Save and restart.

8
Ll display, normal.
Zxw @ hostUbuntu1 :~ $ Ll
Drwxr-xr-x 6 zxw 4096 99 ./
Drwxr-xr-x 9 root 4096 99 ../
-Rw ------- 1 zxw 13754 12:00. bash_history
-Rw-r -- 1 zxw 220 18:01. bash_logout
-Rw-r -- 1 zxw 3486 18:01. bashrc
Drwx ------ 2 zxw 4096 August 29 13:53. cache/



Refer:
Solve Chinese garbled characters in SecureCRT
Http://blog.csdn.net/malundao/article/details/6584209
Solution for "initialization month string error" in Ubuntu server
Http://blog.163.com/squall_smile/blog/static/6034984020132143819854/




Configure a static IP address for the Nic In ubuntu.
Edit the file/etc/network/interfaces:
Sudo vi/etc/network/interfaces
Replace eth0 with The following rows: # The primary network interface
Auto eth0
Iface eth0 inet static
Address 192.168.3.11
Gateway 192.168.3.1
Netmask 255.255.255.0
Replace the preceding IP address and other information with your own. Use the following command to make the network settings take effect:

Sudo/etc/init. d/networking restart



-----------------

Please refer to the following source for reprinting:
Blog.csdn.net/beiigang

When you use ll to view the file in ubuntu1204, the following error occurs: ls: The month string is initialized.

I also encountered this situation, which is caused by incomplete language support.
1. Set "region format" in "language support" to English and apply it to the entire system.
2. log out and log out again. In "language support", the system prompts incomplete support.
3. After the repair, set "region format" to Chinese and apply it to the entire system.
4. log out and log on to the system again. Haha
The following link contains example images.
Reference: forum.ubuntu.org.cn/...713326

An error occurred while installing mysql-server in ubuntu.

It should be because apt-get update was interrupted. You can try:
Sudo first
Dpkg-r TPD
Dpkg-r evolution-plugin
Apt-get install mysql-server
Hope to help you


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.