阿里云云服务器 ,安装了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