Re: Problems eith yum (wrong releasever)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Thanks for the comments. I had /var directory that contained files from an old Fedora 7 installation and I think that yum did read the $release variable, as well as package information, from some file in /var. I fixed the problem the easy way and reinstalled the whole system (with having a clean /var directory). Now everything works perfectly.
I should had figured this out before posting to the mailing-list, sorry.

Sami

On Sat, Apr 25, 2009 at 8:10 PM, D Tucny <d@xxxxxxxxx> wrote:
2009/4/26 Sam Piippo <sampiippo@xxxxxxxxx>

After installing clean Centos 5.3 and updating with "yum update" yum starts to fail. I get the following error message


YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. 7 is not a valid release or hasnt been released yet/
removing mirrorlist with no valid mirrors: //var/cache/yum/base/mirrorlist.txt

It looks like the $releasever variable has value 7. Why does this happen and how do I fix this?

Check that distroverpkg in /etc/yum.conf is redhat-release, if it is, check that centos-release is the only package providing redhat-release by running rpm -q --whatprovides redhat-release, you should see

centos-release-5-3.el5.centos.1

which shows a single package and the version is 5, this is what yum uses to determine releasever... Do you have another package installed that also provides redhat-release?

d
 


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux