最近在fedora中yum install gdb时报错:

Failed to download metadata for repo 'fedora-modular'
Error: Failed to download metadata for repo 'fedora-modular'

解决方案1:

在/etc/dnf/dnf.conf结尾添加sslverify=0

参考:

http://fossdev.blogspot.com/2015/12/fedora-update-with-dnf-cannot.html

解决方案2:

su
cd /etc/yum.repos.d/
mv fedora.repo fedora.repo.backup
mv fedora-updates.repo fedora-updates.repo.backup
wget -O /etc/yum.repos.d/fedora.repo http://mirrors.aliyun.com/repo/fedora.repo
wget -O /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo
dnf clean all
dnf makecache

参考:

https://blog.csdn.net/kajweb/article/details/80202175

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-09-12
  • 2021-07-10
  • 2022-12-23
猜你喜欢
  • 2021-06-16
  • 2021-10-11
  • 2021-04-25
  • 2022-12-23
  • 2021-10-07
  • 2021-07-16
  • 2021-05-02
相关资源
相似解决方案