gpt4 book ai didi

apache - Centos:无法检索镜像列表

转载 作者:太空宇宙 更新时间:2023-11-03 17:17:29 28 4
gpt4 key购买 nike

我无法使用 yum 命令安装任何服务。当我尝试通过键入

安装 httpd 时
[root@kstest /]# yum install httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extras error was
14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates error was
14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
* base: centos.aol.in
* extras: centos-hn.viettelidc.com.vn
* updates: centos.aol.in
http://centos.aol.in/6.5/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://centos.aol.in/6.5/os/x86_64/repodata/repomd.xml: (28, 'connect() timed out!')
Trying other mirror.

在那之后,当我尝试使用 yum 命令时,它说

Existing lock /var/run/yum.pid: another copy is running as pid 2063.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 22 M RSS (219 MB VSZ)
Started: Mon Jul 21 05:09:53 2014 - 01:09 ago
State : Traced/Stopped, pid: 2063

解锁我输入的

ps aux | grep yum
kill -9 <pid number>

当我尝试通过键入来更新 yum 时

yum update -y

我得到以下内容

[root@kstest etc]# yum update -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.aol.in
* extras: centos-hn.viettelidc.com.vn
* updates: centos.aol.in
http://centos.aol.in/6.5/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://centos.aol.in/6.5/os/x86_64/repodata/repomd.xml: (28, 'connect() timed out!')
Trying other mirror.

我该如何解决这个问题?如何安装 httpd?

我在 etc/中的 yum.repos.d 文件是空的。我的 yum.conf 文件是

[main]
proxy=http://proxy.com:8000
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

我添加的代理。以前没有。

最佳答案

我从 6.4 开始就遇到了同样的问题,我仍然很震惊没有一个容易找到的解决方案。快速解决方法是注释掉所有 mirrorlist 行并取消注释所有 baseurl 行,但根据某些论坛中的一些人的说法,这不是一件好事。

关于apache - Centos:无法检索镜像列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24861581/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com