Fedora32 dnf install程序时出现Error: Failed to download metadata for repo ‘fedora-modular‘

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

出现以上错误时,需要替换fedora的下载源及更新源

# 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

 

 

你可能感兴趣的:(Linux,dnf)