반응형
CentOS 에서 yum install wget을 하려고 하면 다음과 같은 오류가 나타난다.
[hwisaek@localhost ~]$ sudo yum install wget
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
http://mirror.centos.org/altarch/7Server/os/aarch64/repodata/repomd.xml:
[Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use
https://bugs.centos.org/.
One of the configured repositories failed (CentOS-7Server - Base),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=base ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable base
or
subscription-manager repos --disable=base
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=base.skip_if_unavailable=true
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
http://mirror.centos.org/altarch/7Server/os/aarch64/repodata/repomd.xml:
[Errno 14] HTTP Error 404 - Not Found
이 오류는 해당 모듈을 다운받을 수 있는 mirror가 없을때 나타나는 것으로 "/etc/yum.repos.d/" 폴더에 존재하는 미러를 추가해줘야 한다.
기존에 있는 파일들은 모두 다른 폴더로 백업하거나 지우는 것을 추천한다.
ftp.yz.yamagata-u.ac.jp.repo
[ftp.yz.yamagata-u.ac.jp]
name=ftp.yz.yamagata-u.ac.jp
baseurl=http://ftp.yz.yamagata-u.ac.jp/pub/linux/centos-altarch/7/os/$basearch/
gpgcheck=1
[0]
name=1
baseurl=http://mirror.surf/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[1]
name=2
baseurl=http://mirror.papua.go.id/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[2]
name=3
baseurl=http://mirror.cepatcloud.id/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[3]
name=4
baseurl=http://mirror.webmaster.my.id/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[4]
name=5
baseurl=http://mirror.cloudweeb.com/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[5]
name=6
baseurl=http://mirror.gi.co.id/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[6]
name=7
baseurl=http://mirror.repository.id/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[7]
name=8
baseurl=http://vpsmurah.jagoanhosting.com/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[8]
name=9
baseurl=http://mirror.beon.co.id/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[9]
name=10
baseurl=http://mirrors.ipserverone.com/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[10]
name=11
baseurl=http://mirror.freethought-internet.co.uk/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[11]
name=12
baseurl=http://mirror.telepoint.bg/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[12]
name=13
baseurl=http://mirror.cloudhosting.lv/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[13]
name=14
baseurl=http://centos-altarch.mirror.server24.net/7.9.2009/os/$basearch/
gpgcheck=1
[14]
name=15
baseurl=http://mirror.esecuredata.com/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[15]
name=16
baseurl=http://mirrors.xtom.de/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[16]
name=17
baseurl=http://mirrors.xtom.com/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[17]
name=18
baseurl=http://mirror.ufro.cl/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[18]
name=19
baseurl=http://mirror.ufs.ac.za/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[19]
name=20
baseurl=http://mirror.usenet.farm/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
[20]
name=21
baseurl=http://mirror.hoster.kz/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
CentOS 7, aarch64 미러를 찾다가 발견하여 하나의 파일에 정리했다. 해당 미러를 폴더에 추가하고 다음 명령어를 통해 확인한다.
[hwisaek@localhost ~]$ yum repolist
repo id repo name status
ftp.yz.yamagata-u.ac.jp/aarch64 ftp.yz.yamagata-u.ac.jp 7,629
repolist: 7,629
미러가 추가된 것을 확인 할 수 있으며, yum install로 원하는 모듈을 설치하면 된다. 만약 같은 에러가 발생하면, 다른 미러 주소를 찾아서 폴더에 추가해야한다.
반응형
'Linux' 카테고리의 다른 글
CentOS nginx 설치 (0) | 2022.08.09 |
---|---|
CentOS 7 - Jenkins 설치 (1) | 2022.04.29 |
CentOS - sendmail 설정 (0) | 2022.04.28 |
CentOS - whois 설정 (0) | 2022.04.27 |
CentOS - fail2ban 설정 (1) | 2022.04.25 |