不改变yum源为光盘的话会报错,好像是版本不对的问题。
我一开始没有设置光盘源,直接yum list 没有问题
yum -y install httpd 也没有问题,
就是在
yum -y install gcc 的时候 报错
--> Finished Dependency Resolution Error: Package: glibc-common-2.12-1.80.el6.x86_64 (@anaconda-CentOS-201207061011.x86_64/6.3) Requires: glibc = 2.12-1.80.el6 Removing: glibc-2.12-1.80.el6.x86_64 (@anaconda-CentOS-201207061011.x86_64/6.3) glibc = 2.12-1.80.el6 Updated By: glibc-2.12-1.192.el6.x86_64 (base) glibc = 2.12-1.192.el6 You could try using --skip-broken to work around the problem ** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows: glibc-common-2.12-1.192.el6.x86_64 is a duplicate with glibc-common-2.12-1.80.el6.x86_64 glibc-common-2.12-1.192.el6.x86_64 has missing requires of glibc = ('0', '2.12', '1.192.el6') tzdata-2016f-1.el6.noarch is a duplicate with tzdata-2012c-1.el6.noarch
完成依赖决议 错误:包装:glibc-common-2.12-1.80.el6.x86_64(@ anaconda-centos-201207061011。x86_64 / 6.3) 要求:2.12-1.80.el6 glibc = 拆卸:glibc-2.12-1.80.el6.x86_64(@ anaconda-centos-201207061011。x86_64 / 6.3) 2.12-1.80.el6 glibc = 更新:glibc-2.12-1.192.el6.x86_64(基地) 2.12-1.192.el6 glibc = 你可以尝试使用-跳过破碎的工作的问题 *发现3存在在数据库中的偏移问题(S),百胜检查输出如下: glibc-common-2.12-1.192.el6.x86_64是重复与glibc-common-2.12-1.80.el6.x86_64 glibc-common-2.12-1.192.el6.x86_64缺少glibc =需要('0 ',' 2.12 ',' 1.192 '。16) tzdata-2016f-1.el6.noarch是重复与tzdata-2012c-1.el6.noarch