- 论坛徽章:
- 0
|
系统:RHEL AS 3 U4
YUM版本:yum-2.2.0-1.noarch.rpm
/etc/yum.conf如下:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[base]
name=Red Hat Linux $releasever - $basearch - Base
#baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/
baseurl=http://ftp.freshrpms.net/pub/redhat/linux/updates/enterprise/3AS/en/os/SRPMS/
[updates]
name=Red Hat Linux $releasever - Updates
#baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/
baseurl=http://ftp.freshrpms.net/pub/redhat/linux/updates/enterprise/3AS/en/os/SRPMS/
安装成功了,可是运行yum check-update的时候出错:
Traceback (most recent call last):
File "/usr/bin/yum", line 6, in ?
import yummain
File "/usr/share/yum-cli/yummain.py", line 23, in ?
import yum
ImportError: No module named yum
望高手指点 |
|