惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
雷峰网
雷峰网
量子位
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
The Cloudflare Blog
博客园 - Franky
罗磊的独立博客
宝玉的分享
宝玉的分享
博客园_首页
腾讯CDC
The GitHub Blog
The GitHub Blog
D
DataBreaches.Net
IT之家
IT之家
D
Docker
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
V
V2EX
月光博客
月光博客
N
Netflix TechBlog - Medium
爱范儿
爱范儿
I
InfoQ
P
Proofpoint News Feed

博客园 - stone8386

微信调试工具,内网穿透工具,Localtunnel 使用 BackgroundService 创建 Windows 服务 c# 连接 sql server 数据库时报错,证书链是由不受信任的颁发机构颁发的。 锐浪报表 手工注册发布软件 - C/S报表开发 免COM DLL注册发布(绿色发布) - C/S报表开发 net 6 使用 加密sqlite 如何修复identity 2的默认登录路由中的错误 docker 启动 redis集群 android studio 生成 keystore 命令 identityserver4 对接钉钉 centos yum install 找不到软件包 docker 挂载文件出错 在linux 或docker中使用 system.drawing.common docker 发布到私有docker registry docker 不能访问外网 centos 网卡状态 ngxin 配置ssl Install Docker Compose docker registry
centos8在更新yum源时提示失败 错误:为 repo ‘AppStream’下载...
stone8386 · 2023-06-05 · via 博客园 - stone8386

https://blog.csdn.net/Remberthename/article/details/124070710

centos8在更新yum源时提示

失败 错误:为 repo 'AppStream’下载元数据失败

解决方法:

原因:因原有系统中使用的镜像访问地址在国内访问过慢导致

解决方案:

1、将目录切换到/etc/yum.repos.d目录下

2、修改CentOS-Linux-AppStream.repo、CentOS-Linux-BaseOS.repo、CentOS-Linux-Extras.repo三个文件

3、修改CentOS-Linux-BaseOS.repo

将mirrorlist地址注释掉,取消baseurl的注释,将baseurl的指向地址更改为阿里云镜像的地址

[BaseOS]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
baseurl=http://mirrors.aliyun.com/centos/8-stream/BaseOS/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[AppStream] name=CentOS-$releasever - AppStream

#mirrorlist=http://mirrorlist.centos.org/release=$releasever&arch=$basearch&repo=AppStream&infra=$infra

baseurl=http://mirrors.aliyun.com/centos/8-stream/AppStream/x86_64/os/

gpgcheck=1

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[extras] name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=http://mirrors.aliyun.com/centos/8-stream/extras/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

6、修改完文件后保存,清楚缓存,从新生成元数据

##清楚缓存

yum clean all

##生成元数据

yum makecache

Linux 运维-0006-CentOS 8 升级内核 - 知乎 (zhihu.com)