CentOS8 yum install报错:Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare intern

刚买了一台华为云服务器,99块钱/年,配置是:2C4G2M,装了CentOS8系统,配置环境报错了…

以下命名安装docker-compose报错

sudo yum install docker-compose-plugin

在这里插入图片描述

解决办法:
分别执行以下3条命令命令

cd /etc/yum.repos.d/

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*

sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

详情见原文链接:点击这里

CentOS8 yum install报错:Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare intern_第1张图片

你可能感兴趣的:(linux,centos)