0
点赞
收藏
分享

微信扫一扫

centos7使用阿里云yum源安装软件时报错connection reset by peer

陈情雅雅 2023-04-27 阅读 40

yum install安装软件时在downloading时报错,如下图

centos7使用阿里云yum源安装软件时报错connection reset by peer_yum

解决方法:

阿里云官方拉取的镜像文件内容为http地址,需换成https

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
sed -i 's/http/https/g' /etc/yum.repos.d/CentOS-Base.repo


举报

相关推荐

0 条评论