LinuxSir.cn,穿越时空的Linuxsir!

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

急求帮助

[复制链接]
发表于 2008-4-15 14:59:39 | 显示全部楼层 |阅读模式
我安装的是FC8,系统的yum相关文件被我无意改坏了,哪个高手把自己的给我发上来阿,我是菜鸟,最好注明是在哪个目录下的文件。谢谢啊
出错信息:
# yum upgrade


Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 85, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 163, in getOptionsConfig
    disabled_plugins=opts.disableplugins)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 160, in _getConfig
    startupconf.pluginconfpath,disabled_plugins)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 306, in doPluginSetup
    plugin_types, confpath, disabled_plugins)
  File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 145, in __init__
    self._importplugins(types)
  File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 186, in _importplugins
    self._loadplugin(modulefile, types)
  File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 195, in _loadplugin
    conf = self._getpluginconf(modname)
  File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 277, in _getpluginconf
    except ParsingError, e:
NameError: global name 'ParsingError' is not defined
发表于 2008-4-15 23:20:52 | 显示全部楼层
你说的相关文件是什么阿?
把你在命令行运行yum时候的出错信息贴出来。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-16 07:24:37 | 显示全部楼层
我已经写出原因了,希望你能帮我解答下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-16 16:38:23 | 显示全部楼层
为什么没人帮我啊?高手啊,来帮我啊
回复 支持 反对

使用道具 举报

发表于 2008-4-16 20:09:09 | 显示全部楼层
Post by War3Gamer;1838665
你说的相关文件是什么阿?
把你在命令行运行yum时候的出错信息贴出来。

人家都说了,你到底到 yum 作了什么啊?动过什么文件啊?怎么出的错?这个出错结果不说明什么。
  1. yum clean all
复制代码
试试这个命令看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-17 07:18:13 | 显示全部楼层
我把/ETC/YUM/YUM-UPDATASD。CONF文件改为:

[main]
    # how often to check for new updates (in seconds)
    run_interval = 604800

    #多久检查更新,我设置成了7天

    # how often to allow checking on request (in seconds)
    updaterefresh = 600
    #更新刷新周期,这个是为了避免服务器负担太重,建议保持默认,或者设置大点。

    # how to send notifications (valid: dbus, email, syslog)
    emit_via = dbus
    # should we listen via dbus to give out update information/check for
    # new updates
    dbus_listener = yes
    #以下三项为:是否自动安装更新,是否自动下载更新,是否自动下载依赖,建议全部设置成no,否则系统会在后台自动更新,导致前台的所有安装和更新程序被锁死。

    # automatically install updates
    do_update = no
    # automatically download updates
    do_download = no
    # automatically download deps of updates
    do_download_deps = no



不知道可不可以用你们的这个文件,可以的话,给我发你的这个文件上来,好吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-18 19:45:47 | 显示全部楼层
怎么路过的人多,都没进来回答问题啊
回复 支持 反对

使用道具 举报

发表于 2008-4-19 14:00:01 | 显示全部楼层
我的 /etc/yum/yum-updatesd.conf
应该从没动过。
  1. [main]
  2. # how often to check for new updates (in seconds)
  3. run_interval = 3600
  4. # how often to allow checking on request (in seconds)
  5. updaterefresh = 600
  6. # how to send notifications (valid: dbus, email, syslog)
  7. emit_via = dbus
  8. # should we listen via dbus to give out update information/check for
  9. # new updates
  10. dbus_listener = yes
  11. # automatically install updates
  12. do_update = no
  13. # automatically download updates
  14. do_download = no
  15. # automatically download deps of updates
  16. do_download_deps = no
复制代码
PS:你试过 yum clean all 了吗?
回复 支持 反对

使用道具 举报

发表于 2008-4-19 14:05:25 | 显示全部楼层
main]
# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on request (in seconds)
updaterefresh = 600

# how to send notifications (valid: dbus, email, syslog)
emit_via = dbus

# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-20 09:52:36 | 显示全部楼层
试过了  和上面的错误一样啊
回复 支持 反对

使用道具 举报

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

本版积分规则

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