|
小弟的Linux是F7,yum设置的网络源已可以使用,但使用本地镜像源的时候就会出错:
Component: Software Manager
Summary: TB21f8f94d packages.py:485:getDiscNum:ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/sbin/pirut", line 337, in _apply
self.applyChanges(self.mainwin)
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 722, in applyChanges
dlpkgs = self.downloadPackages(mainwin)
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 417, in downloadPackages
probs = self.downloadPkgs(dlpkgs)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 798, in downloadPkgs
remote_pkgs.sort(mediasort)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 747, in mediasort
a = a.getDiscNum()
File "/usr/lib/python2.5/site-packages/yum/packages.py", line 485, in getDiscNum
return int(fragid)
ValueError: invalid literal for int() with base 10: ''
我在用yum安装本地镜像源上的软件包时已经把网络源关闭了。设置本地源的repo是:
[ISO]
name=iso
baseurl=file:///mnt/iso
failovermethod=priority
enabled=1
gpgcheck=0
本地源已经挂载,而且yum也可以找到本地源的软件包,就是安装的时候出上面的错误。
不知是何问题,请高手指点。 |
|