961664 wrote:You need to disable and enable channels when you update the local yum system. On mine, I have the same setup, but all of my local repos are set to enabled=0 (so that the mirror script doesn't try to mirror itself). Then, when I want to upgrade the yum server itself, I run:
Afterwards I tried to do a yum update of my repo server and that looked like it attempted to hit every channel the server is subscribed to incuding el4.X el5.X and el6.X. To get around this I created a Base-ULN.repo file in /etc/yum.repos.d to point at my local mirror (itself)
That disables all the repositories that are connected via ULN, but re-enables the local OL6 copy. Note that you must have different repo names for the local repositories to the ones that come from ULN.
# yum upgrade --disablerepo=* --enablerepo=local-ol6_x86_64_latest
961664 wrote:I suspect that given your previous run with the wrong repos installed, you've managed to get the wrong packages installed, i.e. an ol4, ol6 or ovm package on ol5. Can you do an rpm -qa and look for packages with a version that doesn't match your base distro? You may have to manually clean this up, unfortunately.
That works as far as updating the local system but I'm still getting the error above when running the mirror script to download all of my subscribed channels for local systems to update from.
Brian Bray wrote:Ok, that's exhausted my ideas. :) If you have Oracle Linux support, please open an SR for this. If not, please email firstname.lastname@example.org with your error so that the guys that manage ULN and the mirror script can take a look?
I'm not seeing anything that looks out of place