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

admin 2022年4月11日00:04:38系统文档评论2,411 次浏览阅读模式

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

收藏


安装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
我的微信
微信扫一扫
admin
  • 本文由 发表于 2022年4月11日00:04:38
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/xitongwendang/2022/0411/10816.html