阿里云云服務器 ,安裝了CentOS6.2後,在其上按照《32和64位的CentOS 6.0下 安裝 Mono 2.10.8 和Jexus 5.0》,在執行yum 更新系統的時候就發生了以下錯誤: php
--> Running transaction check
---> Package gc.x86_64 0:7.1-10.el6 will be installed
---> Package glibc-headers.x86_64 0:2.12-1.80.el6_3.5 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2. 12-1.80.el6_3.5.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.80.e l6_3.5.x86_64
--> Finished Dependency Resolution
Error: Package: glibc-headers-2.12-1.80.el6_3.5.x86_64 (updates)
Requires: kernel-headers
Error: Package: glibc-headers-2.12-1.80.el6_3.5.x86_64 (updates)
Requires: kernel-headers >= 2.2.1
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
kernel-2.6.32-220.13.1.el6.x86_64 has missing requires of kernel-firmware >= ('0 ', '2.6.32', '220.13.1.el6') html
解決方法:修改文件vi /etc/yum.conf 將exclude=kernel*前加註釋便可解決:#exclude=kernel*,此參數的意思是排除安裝或更新kernel開頭的軟件,而咱們安裝gcc須要依賴kernel相關的軟件glibc-headers-2.12-1.80.el6_3.5.x86_64 。 服務器
在安裝完畢後瀏覽中文網頁或查看中文文檔時老是宣誓亂碼,所以須要安裝中文語言包,若是不能 從安裝盤進行安裝,能夠經過yum進行安裝,安裝辦法爲: ui
1
2
|
yum groupinstall <language>-support
eg:yum groupinstall chinese-support
|
在上面的命令中, 是下列之一: assamese, bengali, chinese, gujarati, hindi, japanese, kannada, korean, malayalam, marathi, oriya, punjabi, sinhala, tamil, thai, 或 telegu。 阿里雲
locale -a查看系統支持的語言 spa
vi /etc/sysconfig/i18n code
改爲LANG=」zh_CN.UTF-8″ htm
source /etc/sysconfig/i18n 便可生效 blog