我 在 fedoramagzine.org 上阅读了这篇文章 并遵循了这个过程。从那以后,我无法从 yum 和 dnf 执行更新、安装等。
这是我从 DNF 得到的错误
Abhinav@localhost ~$ sudo dnf update
[sudo] Abhinav 密码:
错误:无法从“ https://mirrors.fedoraproject.org/metalink?repo=fedora-21&arch=x86_64 ”同步 repo 'fedora' 的缓存:不能准备内部镜像列表:Curl 错误:超时已达到 https://mirrors.fedoraproject.org/metalink?repo=fedora-21&arch=x86_64 [连接在 120002 毫秒后超时]
这是我在使用 YUM 时遇到的错误
Abhinav@localhost ~$ sudo yum update 加载的插件:langpacks
配置的存储库之一失败(Fedora 21 - x86_64),yum 没有足够的缓存数据来继续。在这一点上,yum 能做的唯一安全的事情就是失败。有几种方法可以“解决”这个问题:1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Disable the repository, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable fedora 4. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=fedora.skip_if_unavailable=true
无法检索存储库的金属链接:fedora/21/x86_64。请验证其路径并重试
我什至清空了所有的 repos,/etc/yum.repos.d
除了你在安装发行版时获得的原始 3 个 repos。
更新 ::
@Etan Reisner 这是输出rpm -qa nss\*
Abhinav@localhost ~$ rpm -qa nss\*
nss-softokn-freebl-3.17.3-1.fc21.x86_64
nss-util-devel-3.17.3-1.fc21.x86_64 nss-sysinit-3.17.3-2.fc21.x86_64
nss-util-3.17.3-1.fc21.x86_64 nss-tools-3.17.3-2.fc21.x86_64
nss-softokn-freebl-3.17.3-1.fc21.i686 nss-3.17.3-2.fc21.x86_64
nss-softokn-freebl-devel-3.17.3-1.fc21.x86_64
nss-mdns-0.10-15.fc21.x86_64 nss-mdns-0.10-15.fc21.i686
nss-util-3.17.3-1.fc21.i686 nss-softokn-3.17.3-1.fc21.i686
nss-devel-3.17.3-2.fc21.x86_64 nss-softokn-devel-3.17.3-1.fc21.x86_64
nss-3.17.3-2.fc21.i686 nss-softokn-3.17.3-1.fc21.x86_64
更新 2
格式化我的笔记本电脑并重新安装 Fedora 21。在 3 之后sudo dnf updates
。我又被这个问题困住了。这次我没有按照上一篇文章中的步骤进行操作。
在进一步的谷歌搜索中,我发现https://fedorahosted.org/fedora-infrastructure/ticket/4517谈到了同样的错误。它已关闭,但我再也找不到合适的解决方案。