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을 얻을 수 있는지 확인하세요 . 다음 명령을 실행할 때 URL 목록이 표시되는지 확인하세요.

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

관련 정보