BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: yum yum ¾ÈµÉ¶§ Á¶È¸¼ö: 3175


YumRepo Error: All mirror URLs are not using ftp, http[s] or file. ÇØ°á ¹æ¹ý

¾Æ·¡¿Í °°ÀÌ CentOS 6¿¡¼­ ¹ß»ýµÇ´Â À̽´ÀÔ´Ï´Ù.


[root@fastvm-centos-6-10-51 ~]# yum repolist
Loaded plugins: fastestmirror
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/x86_64/6/base/mirrorlist.txt
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/x86_64/6/extras/mirrorlist.txt
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/x86_64/6/updates/mirrorlist.txt
repo id repo name status
base CentOS-6 - Base 0
extras CentOS-6 - Extras 0
updates CentOS-6 - Updates 0
repolist: 0


¹ß»ýµÇ´Â ÀÌÀ¯´Â CentOS 6 ÀÇ EOL ÀÌ 2020-11-30 ·Î ÀÎÇØ fastmirror site ¿¡¼­ CentOS 6 Package°¡ Á¦°Å µÇ¾î¼­ ±×·¸½À´Ï´Ù.

ÇØ°á ¹æ¹ý(ÀÓ½Ã)

¾Æ·¡¿Í °°ÀÌ mirrorlist.txt ¿¡ CentOS Vault Repository ¸¦ Ãß°¡ÇÕ´Ï´Ù.


$ echo "https://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt
$ echo "https://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
$ echo "https://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt


Ãß°¡ ÀÌÈÄ¿¡ ¾Æ·¡¿Í °°ÀÌ yum repolist °¡ Á¤»ó ÀÛµ¿ µÇ´Â °ÍÀ» º¼ ¼ö ÀÖ½À´Ï´Ù.


[root@fastvm-centos-6-10-51 ~]# yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:03
extras | 3.4 kB 00:00
extras/primary_db | 29 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 12 MB 00:07
repo id repo name status
base CentOS-6 - Base 6,713
extras CentOS-6 - Extras 47
updates CentOS-6 - Updates 1,193
repolist: 7,953


À§¿Í °°ÀÌ Àû¿ëÇϸé yum clean all ¸í·É¾î°¡ ¼öÇàÀÌ µÇ¸é ´Ù½Ã µ¿ÀÏÇÑ ¹®Á¦°¡ ¹ß»ý µÉ °ÍÀÔ´Ï´Ù.

ÇØ°á ¹æ¹ý(¿µ±¸)

¾Æ·¡¿Í °°ÀÌ /etc/yum.repos.d/ ÇÏÀ§ÀÇ repo ÆÄÀÏÀ» ¼öÁ¤ÇÕ´Ï´Ù.


$ sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\/mirrorlist.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo
$ sed -i -e "s/^#baseurl=http:\/\/mirror.centos.org/baseurl=https:\/\/vault.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo


¾Æ·¡¿Í °°ÀÌ repo °¡ ¼öÁ¤µË´Ï´Ù.


$ diff CentOS-Base.repo.old CentOS-Base.repo
15,16c15,16
< mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
< #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
---
> #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
> baseurl=https://vault.centos.org/centos/$releasever/os/$basearch/
23,24c23,24
< mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
< #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
---
> #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
> baseurl=https://vault.centos.org/centos/$releasever/updates/$basearch/
31,32c31,32
< mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
< #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
---
> #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
> baseurl=https://vault.centos.org/centos/$releasever/extras/$basearch/

°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2021/04/26 15:01 from 218.152.230.207

  expect + rsync ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ Á¶Á÷ÀÇ º¸¾È Á¤Ã¥¿¡¼­ ÀÎÁõµÇÁö  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡