无法在 CentOs 6.6 上安装 gcc

无法在 CentOs 6.6 上安装 gcc

我无法在 centOs 上安装 gcc,因为它找不到某些文件,这是我执行“yum install gcc*”时控制台的最后一部分: 有人知道如何修复它吗? --> Processing Dependency: binutils-hppa64-linux-gnu >= 2.23 for package: gcc-hppa64-linux-gnu-4.7.2-2.aa.20121114svn.el6.1.i686 ---> Package gcc-ia64-linux-gnu.i686 0:4.7.2-2.aa.20121114svn.el6.1 will be installed --> Processing Dependency: binutils-ia64-linux-gnu >= 2.23 for package: gcc-ia64-linux-gnu-4.7.2-2.aa.20121114svn.el6.1.i686 ---> Package gcc-java.i686 0:4.4.7-11.el6 will be installed http://mirrors.coreix.net/centos/6.6/updates/i386/repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://centos.mirroring.pulsant.co.uk/6.6/updates/i386/repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://mirror.ox.ac.uk/sites/mirror.centos.org/6.6/updates/i386/repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2: [Errno 14] PYC URL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://mirror.mhd.uk.as44574.net/mirror.centos.org/6.6/updates/i386/repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://www.mirrorservice.org/sites/mirror.centos.org/6.6/updates/i386/repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2: [Errno 1 4] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://mirrors-uk.go-parts.com/centos/6.6/updates/i386/repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://mirrors.ukfast.co.uk/sites/ftp.centos.org/6.6/updates/i386/repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2: [Errno 14] P YCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://mirror.synergyworks.co.uk/centos/6.6/updates/i386/repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2: [Errno 14] PYCURL ERR OR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://mirrors.melbourne.co.uk/sites/ftp.centos.org/centos/6.6/updates/i386/repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2: [E rrno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://mirrors.vooservers.com/centos/6.6/updates/i386/repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. Error: failure: repodata/0433e65e37015feb8fd655bdfba7785145fd36885449aa672573ba028a0df2b3-filelists.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.

答案1

您的镜像列表有问题。事实上,您得到 404 肯定意味着您的互联网连接良好(假设您的 DNS 配置正确)

GCC 来自基础存储库,因此请检查 的内容/etc/yum.repos.d/CentOS-Base.repo并查看[base]条目。

例如,在我的 CentOS 6.6 系统上,我有:

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

另请检查您是否可以获取curl镜像列表网址。查看运行以下命令时是否获得 URL 列表:

curl "http://mirrorlist.centos.org/?release=6&arch=i386&repo=os"

相关内容