Errors during downloading metadata for repository 'appstream':
- Status code: 404 for http://mirrors.cloud.aliyuncs.com/centos/8/AppStream/x86_64/os/repodata/repomd.xml (IP: 100.100.2.148)
Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
CentOS Linux 8 - BaseOS 7.5 kB/s | 2.3 kB 00:00
Errors during downloading metadata for repository 'baseos':
- Status code: 404 for http://mirrors.cloud.aliyuncs.com/centos/8/BaseOS/x86_64/os/repodata/repomd.xml (IP: 100.100.2.148)
Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决办法
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos8_base.repo
- 执行命令
yum clean all
yum makecache
-
此时会出现报错 -
分别从生成的CentOS-Base.repo 替换以下文件中的 相对应标签内容 CentOS-Linux-AppStream.repo CentOS-Linux-BaseOS.repo -
重新执行
yum makecache
- 安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
参考 https://www.cnblogs.com/bpzblog/p/13918199.html
|