Siv*_*iva 5 networking linux dns centos yum
我在企业实验室使用 CentOS 6.4,yum 更新失败并出现以下错误:
我可以通过浏览器访问相同的存储库。
[root@LAB1 ~]# yum 更新 加载的插件:refresh-packagekit、security 基地| 3.7 KB 00:00 http://centosmirror.go4hosting.in/centos/6.4/os/x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primerno/1e584feac3f3fb76ad4b6fb7e1bc8d44e9d186dc913ded3c63a216b3-primor. x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 seconds of the last byte/30sec 尝试其他镜像。 . . . 错误:失败:repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.bz2 来自基地:[Errno 256] 没有更多的镜像可以尝试。
下面是我所拥有的 /etc/yum.repos.d/CentOS-Base.repo
[根据] 名称=CentOS-$releasever - 基础 mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #发布更新 [更新] name=CentOS-$releasever - 更新
这是我所拥有的 /etc/resolv.conf
# 由网络管理器生成 搜索 xxx.xxx 名称服务器 192.168.1.3
yum.conf
文件:
[主要的] cachedir=/var/cache/yum/$basearch/$releasever 保持缓存=0 调试级别=2 日志文件=/var/log/yum.log 精确定位=1 过时=1 gpgcheck=1 插件=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 http_caching=packages
我能够 ping 上面的名称服务器。我已经尝试了yum update
after runningyum clean all
但结果相同。
我能够wget
/curl
相同的链接,它连接和下载。之后我也尝试过yum update
,但再次失败并出现相同的错误。这是输出:
[root@LAB1 ~]# wget http://centosmirror.go4hosting.in/centos/6.4/os/x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a-primer --2013-11-15 21:29:45-- http://centosmirror.go4hosting.in/centos/6.4/os/x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e93b124814e93b124814e93b124814e931a124814e93bprimary2 正在连接 centosmirror.go4hosting.in|111.118.183.138|:80... 已连接。 已发送 HTTP 请求,正在等待响应... 200 OK 长度:4578998 (4.4M) [application/x-bzip2] 保存到:“1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.bz2” 100%[======================================>] 4,578,998 5.52M/s in 0.8秒 2013 年 11 月 15 日 21:30:50(5.52 MB/s)-“1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.989872]saved57895728789872 完成 --2013-11-15 21:30:50-- 已下载:1 个文件,0.8 秒内 4.4M (5.52 MB/s) [root@LAB1 ~]# curl -O http://centosmirror.go4hosting.in/centos/6.4/os/x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded16c63a-d % Total % Received % Xferd Average Speed Time Time Time Current 下载上传总花费的剩余速度 100 4471k 100 4471k 0 0 67874 0 0:01:07 0:01:07 --:--:-- 1071k
有时我也会在一些镜子上收到以下错误:
http://centos.aol.in/6.4/os/x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.bz2" -a216b3-primary.sqlite.bz2."-p'centos.sqlite.bz2: [hosta.sqlite.bz2. 尝试其他镜像。
由于我是 Linux 和网络的新手,因此非常感谢这里的任何帮助。
归档时间: |
|
查看次数: |
11466 次 |
最近记录: |