IT/잡다구리

[Centos6] yum update 시 에러 PYCURL ERROR 404 NOT FOUND

월공 2020. 11. 4. 15:16
728x90
300x250

문제점 . SSL 적용을 위해 현재 노는 서버에 작업을 하려고했으나 mod_ssl 이 안깔린다

이게 뭔일인가 싶어서 yum update 를 해봤다

mirrorlist 로 등록되어있는 jpackage.org 뭐시기 도메인으로 접속이 안된다고 뜬다

다른건 모르겠고 그냥 간략하게 말하면 repo 는 yum install 이나 update 할때

그 해당 파일들 받아오는 링크를 정리해놓은 파일이다

보통 아래 경로에 위치해있다.

/etc/yum.repos.d

CentOS-Base.repo  부터 시작해서 여러 repo 가 있었는데 자꾸 하나씩 하나씩 뻑이 나고 404 에러만 이빠이 뜨는 증상발생 슬슬 열받기 시작함

 

자꾸 jpackage 에서 오류나는데 저게 뭐하는건지도 모르겠고 사이트 가보니까 죽은건지 뭔지 ..

그래서 저것만 enabled 0 으로 비활성화 시키면 되겠지 하고 다시 돌려봤는데 이번엔 또 다른 곳에서 에러 발생

 

repo.ius.io ....

 

실제로 해당 도메인 접속해보니 404 가 뜬다 이러니까 받아올리가 없지 ..

repo 파일에서는 repo.ius.io/6/i386 으로 인식하는데 i386 이라는 디렉토리는 없다

 

 

 

여튼 삽질 좀 하다 CentOS-Base.repo 파일 내용을 아래와 같이 바꿔주고 해결
그리고 나머지 쓰잘데기 없는(?) repo 파일들은 백업해두고 다 지워버렸다

 

괜히 이것저것 남겨놨다가 서비스 종료해버리면 repo 에러만 생기니 왜 다른 개발자분들이 mirrorlist 를 카카오로 바꾸는지 알거같다

 

#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]

name=CentOS-$releasever - Base

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

baseurl=http://ftp.daumkakao.com/centos/$releasever/os/$basearch/

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6



#released updates

[updates]

name=CentOS-$releasever - Updates

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates

baseurl=http://ftp.daumkakao.com/centos/$releasever/updates/$basearch/

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6



#additional packages that may be useful

[extras]

name=CentOS-$releasever - Extras

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras

baseurl=http://ftp.daumkakao.com/centos/$releasever/extras/$basearch/

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-$releasever - Plus

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus

baseurl=http://ftp.daumkakao.com/centos/$releasever/centosplus/$basearch/

gpgcheck=0

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6



#contrib - packages by Centos Users

[contrib]

name=CentOS-$releasever - Contrib

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib

baseurl=http://ftp.daumkakao.com/centos/$releasever/contrib/$basearch/

gpgcheck=0

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

 

728x90
300x250