免费注册 查看新帖 |

Chinaunix

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

FC5 yum 软件仓库的问题----->>> [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-25 21:39 |只看该作者 |倒序浏览
装了FC5按照<FC5_Starter_Guide>的说明,安装软件仓库,默认的core、extra仓库...安装完之后问题出来了.凡是 yum 命令不管什么参数,都会一致的出现下面结果:

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 80, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 177, in getOptionsConfig
    self.doConfigSetup(fn=opts.conffile, root=root)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 104, in doConfigSetup
    self.getReposFromConfig()
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 135, in getReposFromConfig
    parser.read(files)
  File "/usr/lib/python2.4/site-packages/yum/parser.py", line 225, in read
    IncludingConfigParser.read(self,filename)
  File "/usr/lib/python2.4/site-packages/yum/parser.py", line 126, in read
    ConfigParser.read(self,filename)
  File "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
    self._read(fp, filename)
  File "/usr/lib64/python2.4/ConfigParser.py", line 490, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors: ///etc/yum.repos.d/kde-redhat.repo
        [line  5]: 'redhat/fedora/$releasever/$basearch/stable/\n'
        [line  7]: 'redhat/fedora/$releasever/$basearch/stable/\n'
        [line  9]: 'redhat/fedora/$releasever/$basearch/stable/\n'
        [line 11]: 'redhat/fedora/$releasever/$basearch/stable/\n'
        [line 13]: 'redhat/fedora/$releasever/$basearch/stable/mirrors\n'
        [line 21]: 'redhat/all/stable/\n'
        [line 30]: 'requires/depends-o stable and updates-testing\n'
        [line 35]: 'redhat/fedora/$releasever/$basearch/testing/mirrors\n'
        [line 46]: 'requires/depends-o testing\n'
        [line 51]: 'redhat/fedora/$releasever/$basearch/unstable/mirrors\n'

各位大侠帮忙啦~~~~~谢了~~~~~

论坛徽章:
0
2 [报告]
发表于 2006-10-25 22:04 |只看该作者
kde-redhat.repo 这个是你后加的吗?
如果是先把它从/etc/yum.repos.d/中删掉(或者称动到一个备份的地方)
然后yum clean all

论坛徽章:
0
3 [报告]
发表于 2006-10-26 09:45 |只看该作者
我按照 http://easylinux.info/index.php?title=Fedora_fc5 的说明配置,
具体步骤如下:

Adding RPMforge repos

    * Read #General Notes
    * Read #How to add GPG Keys

Adding the RPM forge repo is a alternative to the repos that get installed from the fedorafaq website. Note: These two groups are mutually incompatible and can cause errors in your installation if used together for automatic updates.

    * freshrpms

rpm -ivh http://ftp.freshrpms.net/pub/fre ... 1.1-1.fc.noarch.rpm

    * dries

gedit /etc/yum.repos.d/dries.repo

    Add the following lines to the new file

[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/linux/$releasever/$basearch/dries/RPMS/
http://apt.sw.be/dries/fedora/$releasever/$basearch/dries/RPMS/
failovermethod=priority
enabled=0
gpgcheck=1

    * newrpms

gedit /etc/yum.repos.d/newrpms.repo

    Add the following lines to the new file

[newrpms.sunsite.dk]
name=Fedora Core 5 i386 NewRPMS.sunsite.dk
baseurl=http://newrpms.sunsite.dk/apt/redhat/en/$basearch/fc$releasever
http://newrpms.atrpms.net/apt/redhat/en/$basearch/fc$releasever
failovermethod=priority
enabled=0
gpgcheck=1

[edit]
How to import GPG Keys

    * Remember you have to do this as root Read #General Notes

rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
rpm --import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt
rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt
rpm --import /usr/share/doc/fedora-release-*/*GPG-KEY*

[edit]
Fedora Updates
[edit]
How to manually update Fedora

    * Read #General Notes
    * Read #How to add extra repositories

yum check-update
yum update


结果运行  yum check-update
出现如下的错误结果:

[root@localhost etc]# yum check-update
Loading "installonlyn" plugin
Setting up repositories
livna                                                                [1/5]
livna                     100% |=========================|  951 B    00:00
updates                                                              [2/5]
Cannot find a valid baseurl for repo: updates
Error: Cannot find a valid baseurl for repo: updates
--------------------------------------------------
各位大虾帮帮小弟吧。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP