可能有的朋友在安装CentOS的时候选择的语言是English,但是安装好系统之后把语言更改为简体中文,这时发现系统的功能菜单会出现乱码,包括网页等等,这是由于没有安装简体中文语言包导致,要解决此问题有两种方法,第一种是用CentOS系统光盘或者ISO镜像安装缺失的语言包,第二种是通过网络来更新,只要你可以接入互联网就可以实现,我采用的是第二种方法更新的,具体如下,只要在终端输入以下命令即可更新:
yum -y groupinstall chinese-support
具体的过程如下,仅供参考!
[root@test ~]# yum -y groupinstall chinese-support
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.ustc.edu.cn
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Group Process
Checking for new repos for mirrors
Resolving Dependencies
--> Running transaction check
---> Package Deployment_Guide-zh-CN.noarch 0:5.2-11.el5.centos set to be updated
---> Package Deployment_Guide-zh-TW.noarch 0:5.2-11.el5.centos set to be updated
---> Package fonts-chinese.noarch 0:3.02-12.el5 set to be updated
---> Package kde-i18n-Chinese.noarch 1:3.5.4-1 set to be updated
---> Package kde-i18n-Chinese-Big5.noarch 1:3.5.4-1 set to be updated
---> Package lv.i386 0:4.51-8.1 set to be updated
---> Package openoffice.org-langpack-zh_CN.i386 1:3.1.1-19.5.el5_5.1 set to be updated
---> Package openoffice.org-langpack-zh_TW.i386 1:3.1.1-19.5.el5_5.1 set to be updated
---> Package scim-bridge-gtk.i386 0:0.4.5-9.el5 set to be updated
--> Processing Dependency: scim-bridge = 0.4.5-9.el5 for package: scim-bridge-gtk
---> Package scim-chewing.i386 0:0.3.1-11.el5 set to be updated
--> Processing Dependency: libscim-gtkutils-1.0.so.8 for package: scim-chewing
--> Processing Dependency: scim for package: scim-chewing
--> Processing Dependency: libscim-1.0.so.8 for package: scim-chewing
--> Processing Dependency: libchewing.so.3 for package: scim-chewing
--> Processing Dependency: libscim-1.0.so.8(LIBSCIM_1.0) for package: scim-chewing
---> Package scim-chinese-standard.i386 0:0.0.2-1.el5 set to be updated
---> Package scim-pinyin.i386 0:0.5.91-16.el5 set to be updated
---> Package scim-qtimm.i386 0:0.9.4-5 set to be updated
---> Package scim-tables-chinese.i386 0:0.5.6-7 set to be updated
--> Processing Dependency: scim-tables = 0.5.6 for package: scim-tables-chinese
---> Package stardict.i386 0:2.4.5-5 set to be updated
--> Running transaction check
---> Package libchewing.i386 0:0.3.0-8.el5 set to be updated
---> Package scim.i386 0:1.4.4-41.el5 set to be updated
---> Package scim-bridge.i386 0:0.4.5-9.el5 set to be updated
---> Package scim-libs.i386 0:1.4.4-41.el5 set to be updated
---> Package scim-tables.i386 0:0.5.6-7 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
Deployment_Guide-zh-CN noarch 5.2-11.el5.centos base 2.2 M
Deployment_Guide-zh-TW noarch 5.2-11.el5.centos base 2.9 M
fonts-chinese noarch 3.02-12.el5 base 24 M
kde-i18n-Chinese noarch 1:3.5.4-1 base 2.1 M
kde-i18n-Chinese-Big5 noarch 1:3.5.4-1 base 2.2 M
lv i386 4.51-8.1 base 423 k
openoffice.org-langpack-zh_CN i386 1:3.1.1-19.5.el5_5.1 updates 15 M
openoffice.org-langpack-zh_TW i386 1:3.1.1-19.5.el5_5.1 updates 16 M
scim-bridge-gtk i386 0.4.5-9.el5 base 37 k
scim-chewing i386 0.3.1-11.el5 base 62 k
scim-chinese-standard i386 0.0.2-1.el5 base 87 k
scim-pinyin i386 0.5.91-16.el5 base 2.3 M
scim-qtimm i386 0.9.4-5 base 63 k
scim-tables-chinese i386 0.5.6-7 base 6.2 M
stardict i386 2.4.5-5 base 833 k
Installing for dependencies:
libchewing i386 0.3.0-8.el5 base 2.8 M
scim i386 1.4.4-41.el5 base 517 k
scim-bridge i386 0.4.5-9.el5 base 109 k
scim-libs i386 1.4.4-41.el5 base 453 k
scim-tables i386 0.5.6-7 base 346 k
Transaction Summary
================================================================================
Install 20 Package(s)
Upgrade 0 Package(s)
Total download size: 79 M
Downloading Packages:
(1/20): scim-bridge-gtk-0.4.5-9.el5.i386.rpm | 37 kB 00:00
(2/20): scim-chewing-0.3.1-11.el5.i386.rpm | 62 kB 00:00
(3/20): scim-qtimm-0.9.4-5.i386.rpm | 63 kB 00:01
(4/20): scim-chinese-standard-0.0.2-1.el5.i386.rpm | 87 kB 00:00
(5/20): scim-bridge-0.4.5-9.el5.i386.rpm | 109 kB 00:00
(6/20): scim-tables-0.5.6-7.i386.rpm | 346 kB 00:01
(7/20): lv-4.51-8.1.i386.rpm | 423 kB 00:01
(8/20): scim-libs-1.4.4-41.el5.i386.rpm | 453 kB 00:01
(9/20): scim-1.4.4-41.el5.i386.rpm | 517 kB 00:01
(10/20): stardict-2.4.5-5.i386.rpm | 833 kB 00:02
(11/20): kde-i18n-Chinese-3.5.4-1.noarch.rpm | 2.1 MB 00:05
(12/20): kde-i18n-Chinese-Big5-3.5.4-1.noarch.rpm | 2.2 MB 00:05
(13/20): Deployment_Guide-zh-CN-5.2-11.el5.centos.noarch | 2.2 MB 00:05
(14/20): scim-pinyin-0.5.91-16.el5.i386.rpm | 2.3 MB 00:05
(15/20): libchewing-0.3.0-8.el5.i386.rpm | 2.8 MB 00:06
(16/20): Deployment_Guide-zh-TW-5.2-11.el5.centos.noarch | 2.9 MB 00:07
(17/20): scim-tables-chinese-0.5.6-7.i386.rpm | 6.2 MB 00:15
(18/20): openoffice.org-langpack-zh_CN-3.1.1-19.5.el5_5. | 15 MB 00:38
(19/20): openoffice.org-langpack-zh_TW-3.1.1-19.5.el5_5. | 16 MB 00:39
(20/20): fonts-chinese-3.02-12.el5.noarch.rpm | 24 MB 01:07
--------------------------------------------------------------------------------
Total 381 kB/s | 79 MB 03:31
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : fonts-chinese 1/20
Installing : openoffice.org-langpack-zh_CN 2/20
Installing : openoffice.org-langpack-zh_TW 3/20
Installing : Deployment_Guide-zh-TW 4/20
Installing : kde-i18n-Chinese 5/20
Installing : Deployment_Guide-zh-CN 6/20
Installing : kde-i18n-Chinese-Big5 7/20
Installing : scim-libs 8/20
Installing : scim 9/20
Installing : scim-tables 10/20
Installing : scim-bridge 11/20
Installing : libchewing 12/20
Installing : scim-chinese-standard 13/20
Installing : scim-tables-chinese 14/20
Installing : scim-bridge-gtk 15/20
Installing : scim-qtimm 16/20
Installing : scim-chewing 17/20
Installing : stardict 18/20
Installing : scim-pinyin 19/20
Installing : lv 20/20
Installed:
Deployment_Guide-zh-CN.noarch 0:5.2-11.el5.centos
Deployment_Guide-zh-TW.noarch 0:5.2-11.el5.centos
fonts-chinese.noarch 0:3.02-12.el5
kde-i18n-Chinese.noarch 1:3.5.4-1
kde-i18n-Chinese-Big5.noarch 1:3.5.4-1
lv.i386 0:4.51-8.1
openoffice.org-langpack-zh_CN.i386 1:3.1.1-19.5.el5_5.1
openoffice.org-langpack-zh_TW.i386 1:3.1.1-19.5.el5_5.1
scim-bridge-gtk.i386 0:0.4.5-9.el5
scim-chewing.i386 0:0.3.1-11.el5
scim-chinese-standard.i386 0:0.0.2-1.el5
scim-pinyin.i386 0:0.5.91-16.el5
scim-qtimm.i386 0:0.9.4-5
scim-tables-chinese.i386 0:0.5.6-7
stardict.i386 0:2.4.5-5
Dependency Installed:
libchewing.i386 0:0.3.0-8.el5 scim.i386 0:1.4.4-41.el5
scim-bridge.i386 0:0.4.5-9.el5 scim-libs.i386 0:1.4.4-41.el5
scim-tables.i386 0:0.5.6-7
Complete!
整个过程是自动的,不需要人工干预,安装完成后,只要将语言更改为简体中文后,注销登录即可显示简体中文了,简单吧?