TypechoJoeTheme

Dcr163的博客

统计

centos8 wget: 无法解析主机地址 “mirrors.aliyun.com”

2023-04-23
/
0 评论
/
1,557 阅读
/
正在检测是否收录...
04/23

wget: 无法解析主机地址 “mirrors.aliyun.com”

1. 备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2. 下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

centos8(centos8官方源已下线,建议切换centos-vault源)

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
#或
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

3.清除yum缓存

yum clean all && yum makecache
朗读
赞(0)
版权属于:

Dcr163的博客

本文链接:

https://www.dcr163.cn/690.html(转载时请注明本文出处及文章链接)

评论 (0)

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

最新回复

  1. William Tardent
    2024-02-27
  2. Maryann Hamer
    2024-02-27
  3. Sanora Pantano
    2024-02-24
  4. aa
    2024-02-21
  5. Kassie Baum
    2024-01-28

标签云