我在阿里云上弄了个 CentOS 6.10 64位系统的服务器,刚挂载了CentOS-6.7-x86_64-bin-DVD1.iso 后想安装gcc,结果报如下错误,百度试了
yum clean all
rpm --rebuilddb
yum update之后再安装gcc还是报如下错误
[root@BOSSDZPJ yum.repos.d]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: c6-media
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@BOSSDZPJ yum.repos.d]# rpm --rebuilddb
[root@BOSSDZPJ yum.repos.d]# yum update
Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
* c6-media:
file:///media/CentOS/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xml
Trying other mirror.
file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrecorder/repodata/repomd.xml
Trying other mirror.
file:///media/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrom/repodata/repomd.xml
Trying other mirror.
c6-media | 4.0 kB 00:00 ...
c6-media/primary_db | 4.6 MB 00:00 ...
No Packages marked for Update
[root@BOSSDZPJ yum.repos.d]# yum install gcc
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* c6-media:
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-16.el6 will be installed
--> Processing Dependency: libgomp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-16.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-16.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-16.el6.x86_64
---> Package libgomp.i686 0:4.4.7-16.el6 will be installed
--> Processing Dependency: librt.so.1(GLIBC_2.2) for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: librt.so.1 for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: libpthread.so.0(GLIBC_2.3.4) for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: libpthread.so.0(GLIBC_2.1) for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: libpthread.so.0(GLIBC_2.0) for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: libpthread.so.0 for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.6) for package: libgomp-4.4.7-16.el6.i686
--> Running transaction check
---> Package glibc.i686 0:2.12-1.166.el6 will be installed
--> Processing Dependency: glibc-common = 2.12-1.166.el6 for package: glibc-2.12-1.166.el6.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.166.el6.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.166.el6.i686
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Running transaction check
---> Package glibc.i686 0:2.12-1.166.el6 will be installed
--> Processing Dependency: glibc-common = 2.12-1.166.el6 for package: glibc-2.12-1.166.el6.i686
---> Package nss-softokn-freebl.i686 0:3.14.3-22.el6_6 will be installed
--> Finished Dependency Resolution
Error: Package: glibc-2.12-1.166.el6.i686 (c6-media)
Requires: glibc-common = 2.12-1.166.el6
Installed: glibc-common-2.12-1.212.el6_10.3.x86_64 (@updates)
glibc-common = 2.12-1.212.el6_10.3
Available: glibc-common-2.12-1.166.el6.x86_64 (c6-media)
glibc-common = 2.12-1.166.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
rpm -Va --nofiles --nodigest //先跑这个命令再安装
还是提示一样的
[root@BOSSDZPJ etc]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: c6-media
Cleaning up Everything
[root@BOSSDZPJ etc]# rpm -Va --nofiles --nodigest
[root@BOSSDZPJ etc]# yum install gcc
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* c6-media:
file:///media/CentOS/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xml
Trying other mirror.
file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrecorder/repodata/repomd.xml
Trying other mirror.
file:///media/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrom/repodata/repomd.xml
Trying other mirror.
c6-media | 4.0 kB 00:00 ...
c6-media/primary_db | 4.6 MB 00:00 ...
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-16.el6 will be installed
--> Processing Dependency: libgomp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-16.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-16.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-16.el6.x86_64
---> Package libgomp.i686 0:4.4.7-16.el6 will be installed
--> Processing Dependency: librt.so.1(GLIBC_2.2) for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: librt.so.1 for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: libpthread.so.0(GLIBC_2.3.4) for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: libpthread.so.0(GLIBC_2.1) for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: libpthread.so.0(GLIBC_2.0) for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: libpthread.so.0 for package: libgomp-4.4.7-16.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.6) for package: libgomp-4.4.7-16.el6.i686
--> Running transaction check
---> Package glibc.i686 0:2.12-1.166.el6 will be installed
--> Processing Dependency: glibc-common = 2.12-1.166.el6 for package: glibc-2.12-1.166.el6.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.166.el6.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.166.el6.i686
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Running transaction check
---> Package glibc.i686 0:2.12-1.166.el6 will be installed
--> Processing Dependency: glibc-common = 2.12-1.166.el6 for package: glibc-2.12-1.166.el6.i686
---> Package nss-softokn-freebl.i686 0:3.14.3-22.el6_6 will be installed
--> Finished Dependency Resolution
Error: Package: glibc-2.12-1.166.el6.i686 (c6-media)
Requires: glibc-common = 2.12-1.166.el6
Installed: glibc-common-2.12-1.212.el6_10.3.x86_64 (@updates)
glibc-common = 2.12-1.212.el6_10.3
Available: glibc-common-2.12-1.166.el6.x86_64 (c6-media)
glibc-common = 2.12-1.166.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
可以找一下客服人员,阿里云的客服人员还是很给力的,不像深圳腾,他们会立即找技术人员协助解决的
好,我去找下试试,谢谢