最近在Fedora 8使用pirut(添加/删除软件)和安装单独的RPM软件包时,频频提示出错,部分出错信息如下:Component: pirutSummary: TBaa979ac4 priorities.py:88:exclude_hook:AttributeError: ‘NoneType’ object has no attribute ’samearch’
虽然不是什么大问题,但是总归用起来不方便,而且烦人,,网上搜索了一下,解决办法如下:
终端下运行: sudo gedit /usr/lib/yum-plugins/priorities.py编辑第88行:将”if opts.samearch:”替换成”if opts and opts.samearch:”,保存退出,即可解决。
Fedora 8系统下有效!
那里面非常漂亮,个个观景区都能看到奇形怪状的岩石。