일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- PHP-FPM
- KB증권
- 가상서버호스팅
- jQuery
- 시놀로지
- 킹북이초월
- 소비전력
- Rocky
- Apache
- OpenWrt
- 자바스크립트
- proxmox
- mysql
- SKT
- ConoHa
- 보르비스초월
- php
- iptime
- 윈도우10
- 스톤에이지
- 복현오거리
- KB국민카드
- 알뜰폰
- 아파치
- nginx
- 알리익스프레스
- 티스토리
- 리눅스
- 램가스초월
- centos
- Today
- Total
맛집 여행 캠핑 일상 생활
[Linux] CentOS 7.x 지원 종료로 인한 yum update 에러 본문
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
'LINUX' 카테고리의 다른 글
[Linux] CentOS 7.x xtables-addons 설치 방법 (0) | 2025.04.04 |
---|---|
[Linux] Rocky 9 리눅스 xtables-addons 설치 방법 (0) | 2025.04.04 |
[Linux] sendmail no local interface found for ::1 (0) | 2025.03.31 |
[LINUX] IPTABLES CensysInspect 차단 (0) | 2024.10.31 |
[CentOS] mrtg snmpd 안되는 경우 (0) | 2024.10.22 |