免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5287 | 回复: 4
打印 上一主题 下一主题

[网络配置] 求助:fedora 19 能上网,但是yum命令完全不能使用 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-10-07 12:10 |只看该作者 |倒序浏览
我现在的问题是,火狐浏览器能够上网,但是yum命令完全用不了,请知道的告诉一下,感激不尽!

具体情况如下:

我是在vmware下安装的fedora 19.用代理服务器上网。我网络的基本设置如下:
1、设置 -  网络 - 网络代理 - http 代理, https 代理, ftp代理,socks主机(这四个我都设置成上网的代理:10.80.239.3,端口:8080)
2、火狐浏览器代理设置为:10.80.239.3,端口:8080

结果:1、火狐浏览器能上网
      2、yum所有的命令都用不了

状况:
1、输入: yum update
   提示:Cannot retrieve metalink for repository: fedora/19/i386. Please verify its path and try again

   根据网上给的解决方法,输入以下命令:
   su -c "sed -i 's|^#baseurl|baseurl| ; s|^mirrorlist|#mirrorlist|' /etc/yum.repos.d/*"

   输入: yum update

   结果一直不停显示以下信息:
    http://download.fedoraproject.or ... epodata/repomd.xml: (28, 'Connection timed out

after 30236 milliseconds')
正在尝试其它镜像。

2、怀疑是源的问题,在网上下了网易和搜狐的源,放在/etc/yum.repos.d/中,过程如下
   
   下载好网易的源后,
    输入: yum makecache
    提示:
    已加载插件:langpacks, refresh-packagekit
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
错误:Cannot retrieve metalink for repository: fedora/19/i386. Please verify its path and try again

    下载搜狐的源后。
     输入: yum makecache
     提示:
     已加载插件:langpacks, refresh-packagekit
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
错误:Cannot retrieve metalink for repository: fedora/19/i386. Please verify its path and try again

    根据上面搜到的解决方法,输入一下命令:
    su -c "sed -i 's|^#baseurl|baseurl| ; s|^mirrorlist|#mirrorlist|' /etc/yum.repos.d/*"
  
    整个过程提示一下信息:

已加载插件:langpacks, refresh-packagekit
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration

http://mirrors.163.com/fedora/re ... epodata/repomd.xml: [Errno 12] Timeout on

http://mirrors.163.com/fedora/re ... epodata/repomd.xml: (28, 'Connection timed out after 30328 milliseconds')
正在尝试其它镜像。
http://mirrors.163.com/fedora/re ... epodata/repomd.xml: [Errno 12] Timeout on

http://mirrors.163.com/fedora/re ... epodata/repomd.xml: (28, 'Connection timed out after 30057 milliseconds')
正在尝试其它镜像。
http://mirrors.163.com/fedora/re ... epodata/repomd.xml: [Errno 12] Timeout on

http://mirrors.163.com/fedora/re ... epodata/repomd.xml: (28, 'Connection timed out after 30342 milliseconds')
正在尝试其它镜像。
http://mirrors.163.com/fedora/re ... epodata/repomd.xml: [Errno 12] Timeout on

http://mirrors.163.com/fedora/re ... epodata/repomd.xml: (28, 'Connection timed out after 30214 milliseconds')
正在尝试其它镜像。
http://mirrors.163.com/fedora/re ... epodata/repomd.xml: [Errno 12] Timeout on

http://mirrors.163.com/fedora/re ... epodata/repomd.xml: (28, 'Connection timed out after 30162 milliseconds')
正在尝试其它镜像。
http://mirrors.163.com/fedora/re ... epodata/repomd.xml: [Errno 12] Timeout on

http://mirrors.163.com/fedora/re ... epodata/repomd.xml: (28, 'Connection timed out after 30285 milliseconds')
正在尝试其它镜像。

最终的结果是依然,无法使用yum命令,连 yum makecache都用不了。请问这是怎么回事,知道的请告诉一下,感激不尽!

论坛徽章:
1
处女座
日期:2014-01-21 13:20:51
2 [报告]
发表于 2013-10-07 12:23 |只看该作者
ping mirrors.163.com

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
3 [报告]
发表于 2013-10-07 12:55 |只看该作者

论坛徽章:
0
4 [报告]
发表于 2013-10-07 13:32 |只看该作者
回复 2# webdna


    非常感谢您的回复!

   能够ping的通,但是yum使用不了。

   按照3楼的提示问题已经解决了。

论坛徽章:
0
5 [报告]
发表于 2013-10-07 13:33 |只看该作者
回复 3# chenyx


    非常感谢您的回复,问题已经解决了!
   谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP