yum problem with local repositories

Mohammed El-Afifi mohammed_elafifi at yahoo.com
Thu Sep 27 08:31:37 UTC 2007


Thank you very much, David. Actually, just updating the packages yum and yum-updatesd solved the problem. I didn't try any of the other solutions you suggested, especially that of using createrepo with fedora 7 to rebuild the repodata file.
However, I once applied this solution(using createrepo) with fedora 6 a few months ago, because I had a similar problem with using the fedora 6 installation DVD as a repository. At that time, the repodata file was totally corrupted, and I had to mount the DVD manually and rebuild the repodata file, just as you described.
I even discovered that the problem I've encountered with fedora 7 wasn't with devel packages, it was the ability of yum to deal with multiple packages as matches for a name. For example, when I issue the command
sudo yum install qt-devel
it matched both qt-devel.i386 and qt-devel.x86_64(; remember that I'm using the 64-bit edition of fedora). I've even encountered the same problem with uninstalling packages using a command like
sudo yum erase qt-devel
Anyway, the problem is now gone; the updated version of yum can deal with multiple packages seamlessly, both in installation and uninstallation.
Thanks again for the support.


----- Original Message ----
From: fedora-list <fedora-list at redhat.com>
To: Mohammed El-Afifi <mohammed_elafifi at yahoo.com>
Sent: Thuesday, September 25, 2007 00:44:38 AM
Subject: Re: yum problem with local repositories


Mohammed El-Afifi wrote:  
I'm using fedora 7, 64-bit edition. I'm using yum version 3.2.0. I've added a repository for the fedora 7 installation DVD by adding the following files to the file /etc/yum.repos.d/fedora.repo:  [DVD]  name=Fedora $releasever - DVD  baseurl=file:///media/Fedora%207%20x86_64%20DVD  enabled=1  gpgcheck=0  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GP  G-KEY  When I try to install any development package from this repository(e.g. qt-devel), yum fetches the package and asks for confirmation to download it. After I confirm, it echos the following error messages:  Downloading Packages:  Then, I get the following error messages:  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 172, in main      base.doTransaction()    File "/usr/share/yum-cli/cli.py", line 302, in doTransaction      problems =
 self.downloadPkgs(downloadpkgs)    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: ''  Is this a bug in this version of yum?  
Maybe yum update yum to get the current yum version first.    
Or am I just missing something else?  
yum -d 15 {whatever} can give some useful info on what is going wrong. Without that info, my guess is: If you look at the dvd's /repodata, in particular the repomd.xml, and other referred files, you see: 
<location xml:base="media://{digits.digits} href=repodata/{a file} />    
So it tries to look for a thing called media://digits... to find the actual rpm's. 

If this is the case, it wont just be *-devel-*.rpm that are a problem, but all files from the repo. 

I resolved this myself sometime ago by mounting the dvd, then running createrepo {yum-utils} one directory higher in the hierarchy. 
Let us know what you find.    DaveT.



Pinpoint customers who are looking for what you sell.


       
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20070927/9a1fee72/attachment-0001.html 


More information about the users mailing list