系统相关
首页 > 系统相关> > centos8的更新源

centos8的更新源

作者:互联网

http://linuxsoft.cern.ch/centos-vault/8.5.2111/


vault.centos.org 在国内有镜像的感觉。

 

  

https://www.linode.com/community/questions/22398/error-failed-to-download-metadata-for-repo-baseos-appstream-centos-8

Avatarjcardillo6 days, 4 hours agoLinode Staff  

The reason you're seeing this error is because CentOS 8 went EOL 12/31/21 (deadline extended to today - 1/31/22), and the official repo was moved to vault.centos.org. Therefore, we do not keep mirrors for this anymore.

The following page provides more information on this:

https://www.centos.org/centos-linux-eol/

Therefore, you may want to consider using CentOS 7 (EOL 2024-06-30) or CentOS Stream 8 (EOL 2024-05-31).

While it's not recommended, if you prefer to continue using CentOS 8 for the time being, you can do the following:

  1. Open your CentOS-Linux-AppStream.repo and CentOS-Linux-BaseOS.repo files in vim or nano.
  2. Comment out:

CentOS-Linux-BaseOS.repo
#baseurl=http://mirrors.linode.com/$contentdir/$releasever/BaseOS/$basearch/os/

CentOS-Linux-AppStream.repo
#baseurl=http://mirrors.linode.com/$contentdir/$releasever/AppStream/$basearch/os/

  1. Add the following line to each respective file:

CentOS-Linux-BaseOS.repo
baseurl=http://vault.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/

CentOS-Linux-AppStream.repo
baseurl=http://vault.centos.org/$contentdir/$releasever/AppStream/$basearch/os/

  1. Save each file and exit.
  2. Run yum update again.

We will continue to offer Centos 8 for six months after EOL and will mark the Centos 8 distro as deprecated soon so as not to cause further confusion.

     

标签:CentOS,centos,BaseOS,更新,repo,Linux,org,centos8
来源: https://www.cnblogs.com/tekikesyo/p/15866997.html