How to fix rpmfusion-(non)free repo error in CentOS 6.4

User Rating: 5.0 (1 votes)
Sending
[Problem]: When I wanted to install any repo using yum command, I was getting error because of which nothing was getting installed properly through Yum command and I was using centos 6.4.
 
I was getting below errors.
[Error]:
  • Cannot find a valid baseurl for repo: rpmfusion-free
  • Cannot find a valid baseurl for repo: rpmfusion-nonfree

 [Solution]: After long long struggle with various provided solutions at Google search, finally it started working. It appears that it has installed RPM Fusion repositories for Fedora, rather than for Enterprise Linux. These would not be compatible with your CentOS system, so it would cause this error.
Here are few working steps which would solve the above said error.
  • First  check what rpmfusion-* repo is showing. In my case it was showing Fedora 6 core repo baseurl, but it should show EL repo base url.
[vim]yum  repolist enabled
[/vim]
will show you the below image (Make sure you have the permission to use yum else do su – or sudo –I before using yum command) :
  
  •  Now, erase the base url given for rpmfusion-*-release
[vim][root@AlienCoders ~]# rpm -e rpmfusion-free-release rpmfusion-nonfree-release  
warning: /etc/yum.repos.d/rpmfusion-free.repo saved as /etc/yum.repos.d/rpmfusion-free.repo.rpmsave                                                                    
warning: /etc/yum.repos.d/rpmfusion-free-updates.repo saved as /etc/yum.repos.d/rpmfusion-free-updates.repo.rpmsave  [/vim]
 
  • Then, replace them with correct repos for  RHEL 6 or compatible like CentOS:
Either use above given link or use below command to install correct rpmfusion package.
[vim]su -c 'yum localinstall –nogpgcheck \
http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm \
http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm'
[/vim]
 
  • Now check again yum repolist
[vim][root@AlienCoders ~]# yum repolist enabled  
[/vim]     
                                                                                   
 
You can see at the above image that rpmfusion* is showing RPM Fusion for EL 6. Now, try to install anything through yum command, it would work fine.
Hope this would solve other users problems too.
Follow Me

Sanjeev Jaiswal

Co-Founder at Alien Coders
He loves web programming and security and co-founder of Alien Coders. He usually shares and helps engineering students and IT professionals in academics and jobs.

An avid reader and quick learner.
Follow Me

FB Comments

comments

Leave a Reply


+ four = 11

  Home