블로그 이미지
Rootrator
1개를 알면 모르는 10개가 튀어나온다..!

calendar

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 31

Notice

2021. 7. 5. 16:12 Linux

[서버 환경]

CentOS6.5 32bit

 

CentOS6은 2020/11/30 시점으로 end of life cycle 에 따라 지원 종료되었다.

따라서 기본 yum repositary도 전부 사용이 불가능하게 변경되었다.

 

이럴 경우 repo 변경으로 임시로 사용이 가능하지만

EOL(End-of-life)된 버전은 새로운 버전으로 마이그레이션 해주는 것이 좋다.

 

 

[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)

[root@localhost ~]# yum info httpd
Loaded plugins: fastestmirror, security
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/i386/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

 

지원종료된 상태에선 yum 실행시 위와 같은 메세지를 보게 된다.

 

centos에선 EOL제품의 repo를 별도로 제공하고 있으니 repo를 변경해 주자.

 

[root@localhost ~]# cd /etc/yum.repo.d/

[root@localhost ~]# mv CentOS-Base.repo CentOS-Base.repo_EOL

[root@localhost ~]# vi CentOS-Base.repo

[base]
name=CentOS-$releasever -  Base
baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/
gpgcheck=0
priority=1
protect=1

[update]
name=CentOS-$releasever -  Updates
baseurl=http://vault.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=0
priority=1
protect=1

 

위 내용을 넣어주고 yum을 다시 실행 시켜보자.

워낙 오래된 버전일 경우 openssl 버전이 낮아 ssl오류 메시지가 보이지만 실행은 된다.

 

[root@localhost /etc/yum.repos.d]# yum info httpd
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * epel: d2lzkl7pfhq30w.cloudfront.net
base                                                                                                                                                                                       | 3.7 kB     00:00
http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-6/i386/repodata/repomd.xml: [Errno 14] problem making ssl connection
Trying other mirror.
http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-6/SRPMS/repodata/repomd.xml: [Errno 14] problem making ssl connection
Trying other mirror.
update                                                                                                                                                                                     | 3.4 kB     00:00
update/primary_db                                                                                                                                                                          |  11 MB     00:35
Available Packages
Name        : httpd
Arch        : i686
Version     : 2.2.15
Release     : 69.el6.centos
Size        : 844 k
Repo        : base
Summary     : Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
            : web server.

반응형

'Linux' 카테고리의 다른 글

PHP Composer 설치시 오류  (0) 2022.03.10
CentOS8 설치 : Raid Disk가 안보일 경우  (0) 2021.03.04
libphp5.so: undefined symbol: unixd_config  (1) 2019.08.29
tar exclude 옵션 사용  (0) 2019.08.09
R 설치와 devtools 설치  (0) 2019.07.22
posted by Rootrator