맛집 여행 캠핑 일상 생활

[Linux] CentOS 7.x 지원 종료로 인한 yum update 에러 본문

LINUX

[Linux] CentOS 7.x 지원 종료로 인한 yum update 에러

영은파더♥ 2025. 4. 11. 16:30
728x90

CentOS 7 지원 종료로  mirrorlist.centos.org 에서 패키지 검색이 안되는군요~
지원이 종료되면서 vault.centos.org 으로 변경해줘야 하네요~
yum 유틸을 괜히 업데이트 했나봅니다.

서버 두군데가 CentOS 7 인데 한곳은 되고 한곳은 안됩니다~
nslookup mirrorlist.centos.org
;; Got SERVFAIL reply from 168.126.63.1, trying next server
Server:         8.8.8.8
Address:        8.8.8.8#53

** server can't find mirrorlist.centos.org.co.kr: SERVFAIL

nslookup mirrorlist.centos.org 168.126.63.1
Server:         168.126.63.1
Address:        168.126.63.1#53

** server can't find mirrorlist.centos.org.co.kr: SERVFAIL

# yum update
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                                                                       | 5.1 kB  00:00:00
Could not retrieve mirrorlist http://cdn.remirepo.net/enterprise/7/safe/mirror error was
14: curl#7 - "Failed to connect to 2a00:c70:1:213:246:39:135:1: Network is unreachable"


 One of the configured repositories failed (Unknown),
 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=<repoid> ...

     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 <repoid>
        or
            subscription-manager repos --disable=<repoid>

     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=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: remi-safe

epel-release remi-release 가 먹통인듯 합니다.

일단 CentOS-Base.repo 라도 살려봐야겠습니다.

cd /etc/yum.repos.d
mkdir repo.bak
mv *.repo ./repo.bak/
cp ./repo.bak/CentOS-Base.repo ./
sed -i 's/^mirrorlist/#mirrorlist/g' CentOS-Base.repo
sed -i 's/mirror\./vault\./g' CentOS-Base.repo
sed -i 's/^#baseurl=/baseurl=/g' CentOS-Base.repo
yum clean all
yum update

 

728x90
반응형
Trackback : | Comments :