Skip to main content
  1. Errors/

Centos8: Errors during downloading metadata for repository 'base'

87 words·1 min
Linux
Table of Contents

Errors during downloading metadata for repository ‘base‘
#

CentOS-8 - Base - mirrors.aliyun.com                      0.0  B/s |   0  B     00:47    
Errors during downloading metadata for repository 'base':
  - Status code: 404 for https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/repodata/repomd.xml (IP: 120.39.197.216)
  - Curl error (7): Couldn't connect to server for http://mirrors.aliyuncs.com/centos/8/BaseOS/x86_64/os/repodata/repomd.xml [Failed to connect to mirrors.aliyuncs.com port 80: 拒绝连接]
错误:为仓库 'base' 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Centos8 官方源下架,因此需要改一下

# 进入yum目录
cd /etc/yum.repos.d

# 删除目录下所有文件(注意完整复制,不要漏了那个点)
rm -rf ./*

# 安装正确的源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

# 生成缓存
yum makecache

Related

Upgrade openssh version 9.0 on centos7
200 words·1 min
Linux
Upgrade OpenSSH to 9.
Linux 基础配置及命令行操作
585 words·3 mins
Linux
免密登录配置 # 生成公钥、私钥
PAGECACHE、DENTRIES、INODES
360 words·2 mins
Kiga-Hub
Linux Linux
/proc # /proc 是一个虚拟文件系统,通过对它的读写操作做为与Kernel实体间进行通信的一种手段 通过修改/proc中的文件,来对当前kernel的行为作出调整
50 Shades of Go
11898 words·56 mins
Golang
50 Shades of Go: Traps, Gotchas, and Common Mistakes for New Golang Devs # Traps, Gotchas, and Common Mistakes # level: beginner In most other languages that use braces you get to choose where you place them.
内存对齐-fieldalignment
33 words·1 min
Golang
fieldalignment # Install