Solved

yum upgrade failing

Posted on 2009-07-15
9
728 Views
Last Modified: 2012-05-07
Hello,
I am trying to upgrade my centos installation

this is what i have tried.
Thanks for any help

[root@calgary rpms]# yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors

[root@calgary rpms]# yum upgrade
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirror.newnanutilities.org
 * updates: mirror.linux.duke.edu
 * addons: mirror.skiplink.com
 * extras: ftp.lug.udel.edu
http://download.opensuse.org/repositories/Mono/RHEL_5/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Mono. Please verify its path and try again


[root@calgary rpms]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.newnanutilities.org
 * updates: mirror.linux.duke.edu
 * addons: mirror.skiplink.com
 * extras: ftp.lug.udel.edu
http://download.opensuse.org/repositories/Mono/RHEL_5/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Mono. Please verify its path and try again



0
Comment
Question by:paries
  • 4
  • 3
  • 2
9 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24862171
Hi,

It seems that you've messed up your repo settings. Will you post the contents of your /etc/yum.repos.d/CentOS-Base.repo

Cheers,
K.
0
 
LVL 7

Expert Comment

by:martin_2110
ID: 24862287
Try running a "yum clean all"
0
 

Author Comment

by:paries
ID: 24862706
[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=file:///etc/pki/rpm-gpg/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=file:///etc/pki/rpm-gpg/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=file:///etc/pki/rpm-gpg/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=file:///etc/pki/rpm-gpg/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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24862783
Your base repo is ok. List the directory for repo files. All you need is CentOs repos. Move others to another directory and retry yum .

Cheers,
K.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:paries
ID: 24874679
KeremE.
i am sorry i am not following you.
what do you mean by "List the directory for repo files" ??

thanks
Randy
0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 total points
ID: 24874729
/etc/yum.repos.d is a directory. It contains all the repo files yu can use through yum. Since your base repo that comes with CentOS installation is intact it seems that some of the rpeo files (files with .repo extension) causes this problem.

you can search them using the command:

cd /etc/yum.repos.d
grep "http://download.opensuse.org/repositories/Mono/RHEL_5/repodata/repomd.xml

when you've got the file please remove it as it is obvious that the location does not have anything for you to use.
0
 
LVL 7

Expert Comment

by:martin_2110
ID: 24874768
ls -ltr /etc/yum.repos.d/
0
 

Author Comment

by:paries
ID: 24875232
i removed mono.repo and everything started working
Thanks
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24875250
Yr welcome
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
change time in cron 4 67
BASH script to modify crontab? 3 50
Remove a folder in Linux 9 91
route 2 traffic streams on single NIC 6 37
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now