LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-17-2015, 05:31 PM   #1
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Rep: Reputation: 15
Unhappy Yum configuration On RHEL7


Hello Everyone,

I am trying to configure yum repository on RHEL7 but getting the below error. Please look into it and help me how to fix it.

[Repository file]
Quote:
[bootserver]
name=rhel7
baseurl=file:///var/rhel7/mount/repo
enabled=1
gpgcheck=0
ERROR
Quote:
[root@bootserver yum.repos.d]# yum list
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
file:///var/rhel7/mount/repo/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /var/rhel7/mount/repo/repodata/repomd.xml"
Trying other mirror.


One of the configured repositories failed (rhel7),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:

yum-config-manager --disable bootserver

4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=bootserver.skip_if_unavailable=true

failure: repodata/repomd.xml from bootserver: [Errno 256] No more mirrors to try.
file:///var/rhel7/mount/repo/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /var/rhel7/mount/repo/repodata/repomd.xml
Let me know if something else is required


Thanks,
Ashish
 
Old 03-17-2015, 08:37 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Did you run createrepo against /var/rhel7/mount/repo? Without that command you will not have repomd.xml file unless you have copied repos and it contents as it is from another location.
 
Old 03-18-2015, 12:59 PM   #3
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
Yes i ran createrepo on the target location and repodata directory is there.

[OUTPUT]

Quote:
[root@bootserver repo]# cd repodata/
[root@bootserver repodata]# pwd
/var/rhel7/repo/repodata
[root@bootserver repodata]# ll
total 12976
-rw-r--r--. 1 root root 1287750 Mar 17 04:02 1779b035a95f65e080a303c572d7c8f9ed00766fca48a3de2049a2597f9b3b86-other.sqlite.bz2
-rw-r--r--. 1 root root 2902347 Mar 17 04:02 4a29eca6adb87d940de13ba87754d3f47808fa1f97350e65a1a8c369ae66fd7c-filelists.xml.gz
-rw-r--r--. 1 root root 3042866 Mar 17 04:02 4f483f965e46bcb9f2c1f6ad9b1327ba32adb73fa439b09e94d02d98e9db0cd0-filelists.sqlite.bz2
-rw-r--r--. 1 root root 3528396 Mar 17 04:02 7b7b7b1d2307c2a8257fef15d13b814fdf8061d22070eb4ae51b71b5c12a86e5-primary.sqlite.bz2
-rw-r--r--. 1 root root 1647331 Mar 17 04:02 b2444cea6a6c61de6112f476fa44cf21ba6dc60d8856f924238d11c8a5d1b1f7-primary.xml.gz
-rw-r--r--. 1 root root 862066 Mar 17 04:02 b431412bc9c4186b279756edf7d93dff583f3b660b9eb1b78d13b8d9f393c3ed-other.xml.gz
-rw-r--r--. 1 root root 3008 Mar 17 04:02 repomd.xml
 
Old 03-18-2015, 01:11 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
The location for which it is showing error is:
Quote:
file:///var/rhel7/mount/repo/repodata/repomd.xml
as per your first post.

And the location you have shared now is:
Quote:
/var/rhel7/repo/repodata
So basically your repository file under /etc/yum.repos.d/ is pointing to the wrong location.
 
1 members found this post helpful.
Old 03-18-2015, 01:14 PM   #5
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
now it's working, the problem is with /var location i moved the directory to /mnt now its working fine

Last edited by Ashish Sood; 03-18-2015 at 01:22 PM.
 
Old 03-18-2015, 01:20 PM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Good to hear that, please mark the thread as solved!

Enjoy Linux!!!
 
Old 03-18-2015, 03:25 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
solved BUT
Quote:
This system is not registered to Red Hat Subscription Management.
this will CAUSE all kinds of problems
mostly unsolvable ones until you buy the support contract

also the install dvd could have been used
just pop it in and yum should find it
but
the install dvd is out of date with the 30 day free trial updates
 
1 members found this post helpful.
Old 03-18-2015, 03:47 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Ashish Sood View Post
now it's working, the problem is with /var location i moved the directory to /mnt now its working fine
Glad to hear it's working, but this whole thread is a bit confusing...you say you've got an RHCE, and have been asking about yum for five years now:
http://www.linuxquestions.org/questi...roblem-811858/

Since you're 'certified', shouldn't you know such things? Especially after five years working with it, or at least know how to access Red Hat's knowledgebase, where you can find such things?? And as you've been told several times in the past, you need to PAY FOR RED HAT ENTERPRISE. Using RHEL without paying is a bad idea...all you're going to accomplish is to have a system that's insecure, unpatched, unupdated, and more difficult to maintain. What's the point of RHEL without Red Hat support and updates?? Load CentOS instead.
 
1 members found this post helpful.
  


Reply



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
Unable to install RHEL7 KVM onto RHEL7 desktop redhatprat Red Hat 10 02-18-2015 03:44 AM
Yum configuration? gowrishankar_rh Linux - Newbie 1 01-13-2013 02:07 AM
[SOLVED] Packages and Updates - Getting YUM onto RHEL7.x infinity386@gmail.com Linux - Software 7 11-12-2012 04:34 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
Yum configuration ashish_1985@ymail.com Linux - Newbie 1 02-11-2011 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration