【问题标题】:Centos 6.8 - Updates repo issuesCentos 6.8 - 更新 repo 问题
【发布时间】:2017-03-03 16:49:24
【问题描述】:

我正在运行 CenotOS 6.8 x64。每当我尝试安装某些东西或更新我的软件包时,我都会收到以下错误:

Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
epel-custom/metalink                                                                                                                       |  25 kB     00:00
 * base: ftp.pbone.net
 * centosplus: ftp.wcss.pl
 * epel-custom: ftp.pbone.net
 * extras: ftp.pbone.net
 * updates: ftp.wcss.pl
base                                                                                                                                       | 3.7 kB     00:00
base/primary_db                                                                                                                            | 4.7 MB     00:01
centosplus                                                                                                                                 | 3.4 kB     00:00
centosplus/primary_db                                                                                                                      | 1.4 MB     00:00
epel-custom                                                                                                                                | 4.3 kB     00:00
epel-custom/primary_db                                                                                                                     | 5.9 MB     00:00
extras                                                                                                                                     | 3.4 kB     00:00
extras/primary_db                                                                                                                          |  37 kB     00:00
puppetlabs-deps                                                                                                                            | 2.5 kB     00:00
puppetlabs-deps/primary_db                                                                                                                 |  27 kB     00:00
puppetlabs-deps-custom                                                                                                                     | 2.5 kB     00:00
puppetlabs-deps-custom/primary_db                                                                                                          |  27 kB     00:00
puppetlabs-products                                                                                                                        | 2.5 kB     00:00
puppetlabs-products/primary_db                                                                                                             | 170 kB     00:00
puppetlabs-products-custom                                                                                                                 | 2.5 kB     00:00
puppetlabs-products-custom/primary_db                                                                                                      | 170 kB     00:00
talanx                                                                                                                                     | 1.5 kB     00:00
talanx/primary                                                                                                                             | 6.2 kB     00:00
talanx                                                                                                                                                      18/18
talanx_custom                                                                                                                              | 1.5 kB     00:00
talanx_custom/primary                                                                                                                      | 1.9 kB     00:00
talanx_custom                                                                                                                                               12/12
updates                                                                                                                                    | 3.4 kB     00:00
http://ftp.wcss.pl/pub/linux/centos/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

http://centos.komster.pl/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror-pl.kielcetechnologypark.net/centos/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://centos.hitme.net.pl/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://centos2.hti.pl/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://centos1.hti.pl/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.ps.pl/pub/Linux/CentOS/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://centos.po.opole.pl/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.prz.edu.pl/centos/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
ftp://ftp.man.szczecin.pl/pub/Linux/centos/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 19 - "Given file does not exist"
Trying other mirror.
http://ftp.wcss.pl/pub/linux/centos/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://centos.komster.pl/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror-pl.kielcetechnologypark.net/centos/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://centos.hitme.net.pl/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://centos2.hti.pl/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://centos1.hti.pl/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.ps.pl/pub/Linux/CentOS/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://centos.po.opole.pl/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.prz.edu.pl/centos/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
ftp://ftp.man.szczecin.pl/pub/Linux/centos/6.8/updates/x86_64/repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 19 - "Given file does not exist"
Trying other mirror.
Error: failure: repodata/7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.
 updates: [Errno 256] No more mirrors to try.

我检查了更新 repo 的镜像路径,看起来 2016 年 10 月 19 日有更新。我尝试通过运行以下命令来解决此问题:

yum clean all
yum clean metadata
yum update

但上面没有工作。我知道我可以禁用回购,但这不是我需要的解决方案。有没有人遇到过类似的问题?

提前谢谢你

编辑 答案是: 以防万一问题是日期和时间不正确。

【问题讨论】:

  • 您可能需要更新repo.conf/etc/yum.repos.d中指定的地址。
  • 我想我不明白。我假设您希望我编辑例如CentOS-Base.repo。如果是,那么我可以说地址没问题。 /etc/ 目录中 yum.repos.d 或 yum.conf 的配置没有任何变化。
  • 啊,是的。非常遗憾。我的错。我的意思是每当更新镜像正在寻找 7a5afcba7da77c73ceb53ea76c8d05a258d74d38bc0f63b0666a9ee8ebb58f99-primary.sqlite.bz2 时,它都会给我 404 错误。原因是因为它的镜子没有了。当我去例如ftp.wcss.pl/pub/linux/centos/6.8/updates/x86_64/repodata 我看到 gz 文件在 10 月 19 日更新。
  • 哦,现在我明白了。抱歉,我不知道在哪里修改该代码的输入,或者是否有可能。
  • Stack Overflow 是一个编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参阅帮助中心的What topics can I ask about here。也许Super UserUnix & Linux Stack Exchange 会是一个更好的提问地方。另见Where do I post questions about Dev Ops?

标签: linux centos centos6 mirror


【解决方案1】:

是时间和日期漂移造成的。

【讨论】:

  • 时间和日期漂移是什么意思?以及你是如何解决这个问题的
【解决方案2】:

很抱歉回复太晚了。但我认为我的建议可能有助于其他人解决这个问题。

首先,您必须查看来自 yum 更新的错误消息repo 会导致 yum 的工作进程崩溃。例如,在我的情况下,我遇到了错误消息中显示的 home_dtufys 问题。因此,我已经知道我必须通过使用 home_dtufys repo 文件来解决问题。

...我去这个目录

cd /etc/yum.repos.d

...我列出存储在此目录中的repo文件并找到与home_dtufys有关的repo文件,然后我看到了home:dtufys.repo

...然后我打开遇到 yum update

错误的 repo 文件
sudo vi home:dtufys.repo

...为了在下次更新时禁用请求此 repo,我将启用行中的数字 1 更改为 0。

enable=0

...然后我保存并退出并再次执行yum更新。

yum clean all
yum update

希望您和其他用户解决此问题。

【讨论】:

    【解决方案3】:

    /etc/yum/pluginconf.d/fastestmirror.conf 在“启用”选项上将 1 更改为 0

    百胜清理

    百胜更新

    在此之后您可以启用fastestmirror插件。

    我也有这个问题。

    【讨论】:

      猜你喜欢
      • 2017-03-17
      • 1970-01-01
      • 2015-11-29
      • 2018-10-13
      • 1970-01-01
      • 1970-01-01
      • 2018-04-22
      • 2016-11-12
      • 2016-12-26
      相关资源
      最近更新 更多