Error: Failed to download metadata for repo ‘appstream‘解决方案

  • A+
所属分类:系统文档

Error: Failed to download metadata for repo ‘appstream‘解决方案

爱可乐的松鼠
Error: Failed to download metadata for repo ‘appstream‘解决方案
于 2022-03-19 18:21:15 发布
Error: Failed to download metadata for repo ‘appstream‘解决方案
798

Error: Failed to download metadata for repo ‘appstream‘解决方案

收藏


安装fuse-libs时出现了如下错误:
Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist
Error: Failed to download metadata for repo ‘appstream‘解决方案
https://blog.csdn.net/watson2017/article/details/122887710提供了解决方案亲测有效。
一下来自以上解决方案,进行备份:

cd /etc/yum.repos.d
vi CentOS-Linux-BaseOS.repo
vi CentOS-Linux-AppStream.repo
  • 1
  • 2
  • 3
[baseos]
name=CentOS Linux $releasever - BaseOS
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
baseurl=https://vault.centos.org/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
[appstream]
name=CentOS Linux $releasever - AppStream
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
baseurl=https://vault.centos.org/centos/$releasever/AppStream/$basearch/os/ 
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin