LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-25-2008, 07:31 AM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,564
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
using centos repos under rhel


Hi,
I downloaded a 30-day evaluation version of RHEL 5.1.
I installed it and registered with RHN.
However, I'd like to a few systems, so I installed
it on a different partition as well (obviously I can
register this system with RHN as I don't have any more
subscriptions).
I'd like to use Centos repos. I copied centos-base.repo and centos-media.repo to /etc/yum.repos.d/ on RHEL
but when I yum update, I get the following error:

Code:
[root@localhost xtd8865]# yum update
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Update Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - 5Server is not a valid release or hasnt been released yet
Error: Cannot find a valid baseurl for repo: base
How can I solve it?
thanks
 
Old 05-25-2008, 09:57 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
You need to shut off the RHN repos. Open the RedHat repo files in /etc/yum.repos.d and set enable=0 rather than enable=1.
 
Old 05-26-2008, 10:49 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,564
Blog Entries: 1

Original Poster
Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Thanks for the reply, however it's already set to 0
Quote:
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
I also disabled /yum/pluginconf.d/rhnplugin.conf (actually I disabled all the plugins) but still I get this error.

Quote:
[root@localhost pluginconf.d]# yum update
Setting up Update Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - 5Server is not a valid release or hasnt been released yet
Error: Cannot find a valid baseurl for repo: extras
This is my base centos repository:

Quote:
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Quote:
[root@localhost pluginconf.d]# yum update
Setting up Update Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - 5Server is not a valid release or hasnt been released yet
Error: Cannot find a valid baseurl for repo: extras
I then uncommented all those 'baseurl' lines, but it didn't help:

Quote:
root@localhost yum.repos.d]# yum update
Setting up Update Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - 5Server is not a valid release or hasnt been released yet
http://mirror.centos.org/centos/5Ser...ta/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: base

Last edited by sycamorex; 05-26-2008 at 10:51 AM.
 
Old 05-26-2008, 11:05 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Sorry I missed it. The problem is that rather than saying version 5 your setup is saying version 5 server.
Try switching to something like:
Quote:
mirror.centos.org/centos/5.1/os/i386
 
Old 05-26-2008, 11:35 AM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,564
Blog Entries: 1

Original Poster
Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
thanks, it makes sense now. I had to run 'yum update' a few times, but finally it works.

regards
sycamorex
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS (RHEL) vs. Fedora dangerousdave Linux - Newbie 4 12-04-2009 08:40 PM
RHEL - kernel-devel, repos and cml tools. mtravis Red Hat 24 11-07-2007 02:35 PM
Is CentOS RHEL or RHEL Server? mikes63737 Linux - Distributions 1 02-28-2006 04:35 PM
Migrate from RHEL 3 to centos t2dreamer Red Hat 9 11-05-2005 08:27 AM
CentOS as a Replacement for RHEL drbill Linux - Enterprise 2 01-02-2005 09:41 PM


All times are GMT -5. The time now is 06:37 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration