免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2742 | 回复: 4
打印 上一主题 下一主题

[系统安装] rhel6.2系统yum安装gcc报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-08-24 10:12 |只看该作者 |倒序浏览
Error: Package: glibc-devel-2.5-118.el5_10.2.i386 (update)
           Requires: glibc = 2.5-118.el5_10.2
           Installed: glibc-2.12-1.47.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               glibc = 2.12-1.47.el6
           Available: glibc-2.5-118.i386 (base)
               glibc = 2.5-118
           Available: glibc-2.5-118.el5_10.2.i386 (update)
               glibc = 2.5-118.el5_10.2
Error: Package: glibc-headers-2.5-118.el5_10.2.i386 (update)
           Requires: glibc = 2.5-118.el5_10.2
           Installed: glibc-2.12-1.47.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               glibc = 2.12-1.47.el6
           Available: glibc-2.5-118.i386 (base)
               glibc = 2.5-118
           Available: glibc-2.5-118.el5_10.2.i386 (update)
               glibc = 2.5-118.el5_10.2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
-----------------------------------------------------------------------------------------------好像安装任何软件多报错,说版本已经安装了包,存在一个更新的包。
yum的下载源是:
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


[base]
name=CentOS-5-Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#released updates
[update]
name=CentOS-5-Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#packages used/produced in the build but not released
[addons]
name=CentOS-5-Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons

baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#additional packages that may be useful
[extras]
name=CentOS-5-Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras

baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5-Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#contrib - packages by Centos Users
[contrib]
name=CentOS-5-Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# vi dag.repo
[dag]
name=Dag RPM Repository for RHEL5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=1
gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt

论坛徽章:
0
2 [报告]
发表于 2014-08-24 10:15 |只看该作者
我yum update更新报错
-----------------------------------
--> Finished Dependency Resolution
Error: Package: device-mapper-libs-1.02.66-6.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
           Requires: device-mapper = 1.02.66-6.el6
           Removing: device-mapper-1.02.66-6.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               device-mapper = 1.02.66-6.el6
           Updated By: device-mapper-1.02.67-2.el5.i386 (base)
               device-mapper = 1.02.67-2.el5
Error: Package: python-paramiko-1.7.6-1.el5.rf.noarch (dag)
           Requires: python(abi) = 2.4
           Installed: python-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               python(abi) = 2.6
           Available: python-2.4.3-56.el5.i386 (base)
               python(abi) = 2.4
Error: Package: iotop-0.4.3-4.el5.noarch (base)
           Requires: python(abi) = 2.4
           Installed: python-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               python(abi) = 2.6
           Available: python-2.4.3-56.el5.i386 (base)
               python(abi) = 2.4
Error: Package: python-ethtool-0.6-5.el5.i386 (base)
           Requires: python(abi) = 2.4
           Installed: python-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               python(abi) = 2.6
           Available: python-2.4.3-56.el5.i386 (base)
               python(abi) = 2.4
Error: Package: nss-sysinit-3.12.10-16.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
           Requires: nss = 3.12.10-16.el6
           Removing: nss-3.12.10-16.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               nss = 3.12.10-16.el6
           Updated By: nss-3.15.3-7.el5_10.i386 (update)
               nss = 3.15.3-7.el5_10
           Available: nss-3.14.3-18.el5.i386 (base)
               nss = 3.14.3-18.el5
           Available: nss-3.15.3-3.el5_10.i386 (update)
               nss = 3.15.3-3.el5_10
           Available: nss-3.15.3-4.el5_10.i386 (update)
               nss = 3.15.3-4.el5_10
Error: Package: python-netaddr-0.7.10-1.el5.rf.noarch (dag)
           Requires: python(abi) = 2.4
           Installed: python-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               python(abi) = 2.6
           Available: python-2.4.3-56.el5.i386 (base)
               python(abi) = 2.4
Error: Package: libssh2-1.2.9-1.el5.rf.i386 (dag)
           Requires: libcrypto.so.6
           Available: openssl-0.9.8e-26.el5_9.1.i386 (base)
               libcrypto.so.6
           Available: openssl-0.9.8e-27.el5_10.1.i386 (update)
               libcrypto.so.6
           Available: openssl-0.9.8e-27.el5_10.3.i386 (update)
               libcrypto.so.6
           Available: openssl-0.9.8e-27.el5_10.4.i386 (update)
               libcrypto.so.6
           Installed: openssl-1.0.0-20.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               Not found
Error: Package: xmlrpc-c-client-1.16.24-1206.1840.4.el5.i386 (base)
           Requires: libcrypto.so.6
           Available: openssl-0.9.8e-26.el5_9.1.i386 (base)
               libcrypto.so.6
           Available: openssl-0.9.8e-27.el5_10.1.i386 (update)
               libcrypto.so.6
           Available: openssl-0.9.8e-27.el5_10.3.i386 (update)
               libcrypto.so.6
           Available: openssl-0.9.8e-27.el5_10.4.i386 (update)
               libcrypto.so.6
           Installed: openssl-1.0.0-20.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               Not found
Error: Package: libssh2-1.2.9-1.el5.rf.i386 (dag)
           Requires: libssl.so.6
           Available: openssl-0.9.8e-26.el5_9.1.i386 (base)
               libssl.so.6
           Available: openssl-0.9.8e-27.el5_10.1.i386 (update)
               libssl.so.6
           Available: openssl-0.9.8e-27.el5_10.3.i386 (update)
               libssl.so.6
           Available: openssl-0.9.8e-27.el5_10.4.i386 (update)
               libssl.so.6
           Installed: openssl-1.0.0-20.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               Not found
Error: Package: xmlrpc-c-client-1.16.24-1206.1840.4.el5.i386 (base)
           Requires: libssl.so.6
           Available: openssl-0.9.8e-26.el5_9.1.i386 (base)
               libssl.so.6
           Available: openssl-0.9.8e-27.el5_10.1.i386 (update)
               libssl.so.6
           Available: openssl-0.9.8e-27.el5_10.3.i386 (update)
               libssl.so.6
           Available: openssl-0.9.8e-27.el5_10.4.i386 (update)
               libssl.so.6
           Installed: openssl-1.0.0-20.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               Not found
Error: Package: python-simplejson-2.0.9-8.el5.i386 (base)
           Requires: python(abi) = 2.4
           Installed: python-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               python(abi) = 2.6
           Available: python-2.4.3-56.el5.i386 (base)
               python(abi) = 2.4
Error: Package: sssd-1.5.1-70.el5.i386 (base)
           Requires: python(abi) = 2.4
           Installed: python-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               python(abi) = 2.6
           Available: python-2.4.3-56.el5.i386 (base)
               python(abi) = 2.4
Error: Package: lvm2-2.02.88-12.el5.i386 (base)
           Requires: libreadline.so.5
           Available: readline-5.1-3.el5.i386 (base)
               libreadline.so.5
           Installed: readline-6.0-3.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               Not found
Error: Package: xmlrpc-c-client-1.16.24-1206.1840.4.el5.i386 (base)
           Requires: libcurl.so.3
           Available: curl-7.15.5-17.el5_9.i386 (base)
               libcurl.so.3
           Installed: curl-7.19.7-26.el6_1.2.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               Not found
Error: Package: libipa_hbac-python-1.5.1-70.el5.i386 (base)
           Requires: python(abi) = 2.4
           Installed: python-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               python(abi) = 2.6
           Available: python-2.4.3-56.el5.i386 (base)
               python(abi) = 2.4
Error: Package: libipa_hbac-python-1.5.1-70.el5.i386 (base)
           Requires: libpython2.4.so.1.0
           Available: python-libs-2.4.3-56.el5.i386 (base)
               libpython2.4.so.1.0
           Installed: python-libs-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               Not found
Error: Package: 1:perl-Archive-Tar-1.39.1-1.el5_5.2.noarch (base)
           Requires: perl(:MODULE_COMPAT_5.8.
           Available: 4:perl-5.8.8-41.el5.i386 (base)
               perl(:MODULE_COMPAT_5.8.
           Installed: 4:perl-5.10.1-119.el6_1.1.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               Not found
Error: Package: python-crypto-2.6.1-1.el5.rf.i386 (dag)
           Requires: python(abi) = 2.4
           Installed: python-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               python(abi) = 2.6
           Available: python-2.4.3-56.el5.i386 (base)
               python(abi) = 2.4
Error: Package: sssd-1.5.1-70.el5.i386 (base)
           Requires: libpython2.4.so.1.0
           Available: python-libs-2.4.3-56.el5.i386 (base)
               libpython2.4.so.1.0
           Installed: python-libs-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               Not found
Error: Package: python-kerberos-1.1-11.el5.i386 (base)
           Requires: python(abi) = 2.4
           Installed: python-2.6.6-29.el6.i686 (@anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)
               python(abi) = 2.6
           Available: python-2.4.3-56.el5.i386 (base)
               python(abi) = 2.4
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

论坛徽章:
0
3 [报告]
发表于 2014-08-25 21:02 |只看该作者
你搭建源的时候,导入key了吗?我搭建时直接一次性导入了centos5的key,没有像你这样每一行写进去key的地址。

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
4 [报告]
发表于 2014-08-26 08:26 |只看该作者
目测是 el5 的系统使用了 el6 的源.

论坛徽章:
0
5 [报告]
发表于 2014-08-27 22:31 |只看该作者
回复 4# q1208c
厉害 对的 我搞错了

   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP