找回密碼
 註冊
搜索
查看: 585|回復: 0

[CentOS] 更新 CentOS Stream 8 出現錯誤(載點失效更新)

[複製鏈接]
發表於 2024-7-25 18:29:53 | 顯示全部樓層 |閱讀模式
 
Push to Facebook
更新時出現錯誤

[root@centos8 ~]# yum update
CentOS-8 - AppStream 71 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

更新鏡像載點
  1. cd /etc/yum.repos.d/
  2. sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
  3. sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
複製代碼

再次更新
  1. dnf update
複製代碼
  1. dnf clean packages
複製代碼

https://gist.github.com/hkneptun ... 1db79a1c6b72c251b25
 
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|小黑屋|TShopping

GMT+8, 2025-4-30 19:32 , Processed in 0.023640 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回復 返回頂部 返回列表