Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

when I want to install any repo I found this error

 Error: Cannot find a valid baseurl for repo: rpmfusion-free

I'm using centos 6.4

I tried to check other packages I found the same error ... so it's not on specific pacakge .. (i.e PostgreSQL)

yum install postgresql postgresql-server postgresql-libs

here is my rpmfusion-free.repo

[rpmfusion-free]
name=RPM Fusion for Fedora $releasever - Free
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch

[rpmfusion-free-debuginfo]
name=RPM Fusion for Fedora $releasever - Free - Debug
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch

[rpmfusion-free-source]
name=RPM Fusion for Fedora $releasever - Free - Source
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch
share|improve this question

1 Answer 1

up vote 1 down vote accepted

You need to paste the rpmfusion.repo (or whatever) file from your /etc/yum.repos.d directory. That being said that error either means the file is incomplete or the mirrorurl that is configured is broken (i.e. not returning any values) or no longer exists (assuming yum wouldn't give a different error for either of those conditions).

Given the contents of that file it appears as if you have misconfigured the repo. You can see this by trying to load http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-6&arch=i386 in your browser and inspecting the output. Notice the error indication and the fact that all lines are commented out. You need to adjust the mirrorlist entries in those repository configuration blocks to match your system. You probably want to use something like http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-6&arch=i386 and friends.

share|improve this answer
    
updated with rpmfusion-free.repo –  maged Mohammed Jul 15 '13 at 15:07
    
that's all files about rpmfusion rpmfusion-free-rawhide.repo rpmfusion-nonfree-rawhide.repo rpmfusion-free.repo, rpmfusion-nonfree.repo,rpmfusion-free-updates.repo,rpmfusion-nonfree-updates.rep‌​o,rpmfusion-free-updates-testing.repo, rpmfusion-nonfree-updates-testing.repo –  maged Mohammed Jul 15 '13 at 15:10
    
Where did you get these repo files from? Did you install a package which added them? If you did then it appears you installed a package for the wrong distribution. If you created them by hand (or copied them from somewhere) you also used the wrong distribution version but in that case you should be able to just edit them in place (as opposed to removing the wrong package and installing the correct one). –  Etan Reisner Jul 15 '13 at 15:13
    
yum install postgresql postgresql-server postgresql-libs ... that's an example of what I want to install ... it's for centos 6.4 .. so nothing created by hand :). I tried to install postgresql from other mirros but the same error raise –  maged Mohammed Jul 15 '13 at 15:19
    
Not what you are trying to install now. I was discussing how you got your rpmfusion.repo files in the first place. They aren't part of CentOS itself. You (or someone else) had to add them to the system. –  Etan Reisner Jul 15 '13 at 15:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.