【问题标题】:Yum just stopped woiking and gives errorYum 刚刚停止 woiking 并给出错误
【发布时间】:2017-02-18 23:29:46
【问题描述】:

yum -y 更新

加载的插件:fastestmirror 基地 | 3.6 KB 00:00 epel/x86_64/metalink | 22 KB 00:00 附加功能 | 3.4 KB 00:00 mysql 连接器社区 | 2.5 KB 00:00 mysql-工具-社区| 2.5 KB 00:00 mysql56-社区 | 2.5 KB 00:00

14:HTTP 错误 404 - 未找到 http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] HTTP 错误 404 - 未找到 尝试其他镜子。 要解决此问题,请参阅以下知识库文章

如果以上文章无法解决此问题,请在https://bugs.centos.org/ 上创建一个错误

配置的存储库之一失败(RHEL 7 - RPMforge.net - dag), 并且 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 rpmforge

 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=rpmforge.skip_if_unavailable=true

--- 每当我尝试使用 yum 时都会收到此错误

【问题讨论】:

  • 为什么添加了一个不再可用的 repo?一秒钟后,每当我的 rhel 上的 yum 找不到一个 repo 时,它就会跳过该 repo 并转到其他 repo,除非软件包需要该 repo。
  • 这不是有点离题吗?据我所知,这与编程无关。
  • 这与是否编程无关。我只是找不到修复它的方法,而且我是使用 Linux 的新手
  • @jgr208 如何删除 repo?
  • 这个问题可能更适合超级用户。

标签: linux centos yum


【解决方案1】:

是的,我通过导航到 yum 存储库目录中的错误存储库来修复它

cd /etc/yum.repos.d

然后您可以使用

列出所有 repos

ls

然后你可以删除使用 yum remove [repos-name]

【讨论】:

    猜你喜欢
    • 2011-06-11
    • 2020-03-19
    • 1970-01-01
    • 2014-12-12
    • 1970-01-01
    • 2011-12-04
    • 1970-01-01
    • 1970-01-01
    • 2013-03-29
    相关资源
    最近更新 更多