LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-21-2015, 06:43 AM   #1
curethepc
LQ Newbie
 
Registered: Sep 2015
Posts: 1

Rep: Reputation: Disabled
URL Returned error:407 Trying other mirror Error: Cannot retrieve repository metadata


http://public-yum.oracle.com/repo/Or...ta/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 407"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_latest. Please verify its path and try again

Above error occurs when I attempt to install snmp. Command I used was

yum install –y net-snmp-utils net-snmp net-snmp-libs

Checked that the server has internet access and it does. The server works through a proxy however username and password are commented out. This works well with other Linux servers (all of them are Red Hat Enterprise Linux Server release 6.3 (Santiago). All (3 of them) set up in the same manner. However having trouble with this one particular server. If I edit public-yum-old.repo so that the channels enabled setting is set to "0" url error disappears. However - attempting to install snmp comes back with

yum install –y net-snmp-utils net-snmp net-snmp-libs
Loaded plugins: refresh-packagekit, security
Setting up Install Process
No package net-snmp-utils available.
No package net-snmp available.
No package net-snmp-libs available.
Error: Nothing to do

Changing gpgcheck value from 0 - 1 and vice-versa makes no difference. I have internet access because I can access google. I tested connection by trying wget www.google.com and was successful. I clean yum with

yum clean all
also
yum clean metadata
Try yum update but cannot update.

Successfully installed snmp and configured on two other Oracle Linux servers. To the best of my knowledge the server giving this problem is setup in the same manner as two other exisiting servers where snmp was setup without issues .Just this one playing up. See copy of repo file below:

[ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0

[ol6_ga_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=0
enabled=0

[ol6_u1_base]
name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=0
enabled=0

[ol6_u2_base]
name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/2/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=0
enabled=0

[ol6_u3_base]
name=Oracle Linux $releasever Update 3 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/3/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=0
enabled=0

[ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=0
enabled=0

[ol6_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=0
enabled=0
Thanks in advance
curethepc
 
Old 09-22-2015, 11:32 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I'd start by checking everything ie assume nothing(!)

So, check that this box is indeed running OEL, not RHEL.
Code:
cat /etc/issue
cat /boot/grub/grub.conf
uname -a
Check repolist it thinks its got
Code:
yum repolist
If it is an OEL box, is it the same as one of the other working OEL boxes? If so, backup the repo files then replace with repo files from a working box.
Does this machine have a subscription/registration with Oracle?

FWIW, on my Centos 6.7, those pkgs are in the Base repo.

Try
Code:
yum provides net-snmp
 
  


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
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
Error:cannot retrieve repository metadata (repomd.xml) for repository: fedora Rigue Linux - Newbie 3 02-19-2015 09:28 AM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmfusion-fre Luis.Villamagua Red Hat 3 10-23-2013 12:45 PM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 07:23 PM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. stioanid Linux - Software 3 12-13-2008 01:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 AM.

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