Created attachment 331222 [details] metalink-hack.patch Description of problem: Upgraded from just-past-f10ish to current rawhide. Rebooted. Afterwards, tried to install something, and was told: File //var/cache/yum/rawhide/metalink.xml does not exist 'yum clean all' and retrying made that go away. Afterwards, if I manually rm that file, I get the same error. Probably the cache logic is not checking for that file? Or assuming that the existence of repomd.xml means metalink.xml should exist too? At any rate, it'll break the first update after 10->11 upgrade I suspect. Attached patch makes it wfm, but I make no claims as to correctness or good taste. Version-Release number of selected component (if applicable): yum-3.2.21-8.fc11.noarch
Created attachment 331254 [details] metalink-hack.patch Previous patch was broken, the download result would just get thrown away. So it'd work if you had no metalink data, but not if you did. Oops. Still not claiming it's correct, of course.
metalinkCurrent already checks this, and I just checked it and it works ... if run in cache-only mode (as user) it doesn't need it, if run as root yum downloads a new metalink. Did you not have a network or something? Can you paste terminal output of it failing?
Definitely have network, definitely running as root (well, sudo, but same thing). After deleting metalink.xml: synephrine:~% sudo yum install xrestop Loaded plugins: dellsysidplugin2, refresh-packagekit Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package xrestop.x86_64 0:0.4-5.fc10 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: xrestop x86_64 0.4-5.fc10 rawhide 19 k Transaction Summary ================================================================================ Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 19 k Is this ok [y/N]: y Downloading Packages: File //var/cache/yum/rawhide/metalink.xml does not exist synephrine:~%
ha ... ok, thanks ... having the fastestmirror plugin enabled makes the bug go away, my bad. I'll fix.
Ok, this is fixed upstream in commit: 510e9d47f9e5892a22f634fecbc5578fc7bd4d5c ...confirmation would be nice, but we both know I'm infallible ;).
Yep, that works. Thanks!
Bad: Yum in Fedora 11 still doesn't include this patch or it is NOT working. Pity! yum install subversion-devel Loaded plugins: dellsysidplugin2, downloadonly Excluding Packages in global exclude list Finished Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package subversion-devel.i586 0:1.6.1-5.fc11 set to be updated --> Processing Dependency: subversion = 1.6.1-5.fc11 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_wc-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_repos-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_fs_base-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_ra_neon-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_fs_fs-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_delta-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_ra-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_subr-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_ra_svn-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_diff-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_fs_util-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_ra_local-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_fs-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Processing Dependency: libsvn_client-1.so.0 for package: subversion-devel-1.6.1-5.fc11.i586 --> Running transaction check ---> Package subversion.i586 0:1.6.1-5.fc11 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================== Package Arch Version Repository Size ============================================================================================================================================================== Installing: subversion-devel i586 1.6.1-5.fc11 updates 271 k Installing for dependencies: subversion i586 1.6.1-5.fc11 updates 3.0 M Transaction Summary ============================================================================================================================================================== Install 2 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 3.3 M Is this ok [y/N]: y Downloading Packages: File /var/cache/yum/updates/metalink.xml does not exist. (Here yum has aborted).
Ok, this is to do with the mirrorlist as metalink ... it should have fixed itself now, but this patch will fix it: diff --git a/yum/yumRepo.py b/yum/yumRepo.py index 94e352c..2f67752 100644 --- a/yum/yumRepo.py +++ b/yum/yumRepo.py @@ -821,6 +821,7 @@ class YumRepository(Repository, config.RepoConf): else return False. This result is cached, so that metalink/repomd.xml are synchronized.""" if self._metadataCurrent is None: + self._hack_mirrorlist_for_anaconda() mlfn = self.cachedir + '/' + 'metalink.xml' if self.metalink and not os.path.exists(mlfn): self._metadataCurrent = False
yum-3.2.24-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/yum-3.2.24-1.fc11
yum-3.2.24-2.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
yum-3.2.24-2.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/yum-3.2.24-2.fc10
yum-3.2.24-2.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.