LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 983|回复: 5

Fedora 12的yum update 突然不能用了。(已解决,可参考!)

[复制链接]
发表于 2010-3-9 12:26:22 | 显示全部楼层 |阅读模式
yum突然不能用了,网络是正常的。浏览网页也正常。检查了yum配置也很正常。之前修改好后一直正常的。之后就没有改过yum配置了。

No metadata available for adobe-linux-i386
No metadata available for fedora
No metadata available for google-chrome
No metadata available for livna
No metadata available for rpmfusion-free
No metadata available for rpmfusion-free-updates
No metadata available for rpmfusion-nonfree
No metadata available for rpmfusion-nonfree-updates
No metadata available for updates
Finish Download MetaData of Enabled Repo
Loading mirror speeds from cached hostfile
* fedora: ftp.cuhk.edu.hk
* livna: ftp-stud.fht-esslingen.de
* rpmfusion-free: mirrors.cat.pdx.edu
* rpmfusion-free-updates: mirrors.cat.pdx.edu
* rpmfusion-nonfree: mirrors.cat.pdx.edu
* rpmfusion-nonfree-updates: mirrors.cat.pdx.edu
* updates: ftp.cuhk.edu.hk
错误:Cannot retrieve repository metadata (repomd.xml) for repository: livna. Please verify its path and try again

运行yum update -y 老提示这个,说找不到数据。但我在浏览器直接打开那些yum更新的源又可以。大家又遇到这个问题吗?有的请说说。


问题已解决!原来是adsl拨号参数的问题导致。因为之前是不用拨号的(小区局域网),前几天管理的人说要改用拨号认证。类似adsl,只是拨号分配的地址是10.0.0.*的内网IP。改用拨号之后,其他网络服务都正常,就yum不能用。

解决方法:在用pppoe-setup设置拨号参数时,在下面的这项里

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped.  If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses.  You may have some problems with demand-activated links.
Enter the demand value (default no): 就是这里的问题了,默认是no,要改为yes。否则yum在使用时会自动瞬时断线,导致无法使用。
这项设置叫Activate-on-demand,实质是每次联网超时时间的设置!fedora上用adsl拨号上网的朋友可以参考。之前google没有找到说这个问题的。
发表于 2010-3-9 13:34:23 | 显示全部楼层
/etc/yum.repo.d/livna.repo
改成enabled=0吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-10 13:45:31 | 显示全部楼层
Post by usertesting;2074142
/etc/yum.repo.d/livna.repo
改成enabled=0吧


与这个无关,之前也试过关闭过了。也不行。郁闷。
回复 支持 反对

使用道具 举报

发表于 2010-3-10 16:00:43 | 显示全部楼层
有启用什么**之类的么,或者装什么插件,你贴出来的信息就显示这个不行。。
回复 支持 反对

使用道具 举报

发表于 2010-3-10 16:39:37 | 显示全部楼层
对这种问题,我一般是先Yum clean all,你试试看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-11 16:45:00 | 显示全部楼层
问题已解决!原来是adsl拨号参数的问题导致。因为之前是不用拨号的(小区局域网),前几天管理的人说要改用拨号认证。类似adsl,只是拨号分配的地址是10.0.0.*的内网IP。改用拨号之后,其他网络服务都正常,就yum不能用。

解决方法:在用pppoe-setup设置拨号参数时,在下面的这项里

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped.  If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses.  You may have some problems with demand-activated links.
Enter the demand value (default no): 就是这里的问题了,默认是no,要改为yes。否则yum在使用时会自动瞬时断线,导致无法使用。fedora上用adsl拨号上网的朋友可以参考。之前google没有找到说这个问题的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表