Here is one of those situation where I shot myself in the foot. Unfortunetly , I do not know how to fix this.
When I try to ues yum it says the following:
[root@localhost ~]# yum -y install java-1/6/0
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror.symnds.com
* c6-media:
* extras: mirror.lug.udel.edu
* updates: mirror.ash.fastserv.com
file:///media/CentOS/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xml
Trying other mirror.
file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrecorder/repodata/repomd.xml
Trying other mirror.
file:///media/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrom/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: c6-media. Please verify its path and try again
No clue what that is .. same with the add /remove software thing.
I was earlier playing with the system/software sources pull down in add/remove.
How can I fix this?
I have ben trying for a few hours without luck.
Thanks for your help
broken yum and add/remove software
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: broken yum and add/remove software
You have edited /etc/yum.repos.d/CentOS-Media.repo and set it to enabled by default. Edit it again and change "enabled=1" to "enabled=0".
Don't use "yum -y" or you may regret it when it does something you did not want. Inspect the proposed changes first. Try
[code]yum list java-1.6.0\*[/code]to see what is available and [code]yum install java-1.6.0\*[/code]if you want to proceed with all available packages.
Don't use "yum -y" or you may regret it when it does something you did not want. Inspect the proposed changes first. Try
[code]yum list java-1.6.0\*[/code]to see what is available and [code]yum install java-1.6.0\*[/code]if you want to proceed with all available packages.
-
- Posts: 13
- Joined: 2010/12/17 08:24:42
Re: broken yum and add/remove software
¿Are you using a proxy? -> $http_proxy
Re: broken yum and add/remove software
Actually I found my fix on another forum.
No proxy and you can use yum -y all it does is answer yes to the question.
I have done it a hundred times.
I have attched my notes for the fix, however it is in openoffice format.
MS Word probably cannot open it.
No proxy and you can use yum -y all it does is answer yes to the question.
I have done it a hundred times.
I have attched my notes for the fix, however it is in openoffice format.
MS Word probably cannot open it.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
broken yum and add/remove software
Actually, you were given the fix in post #2.
Yes, you can use yum -y, but someday you will be sorry you did.
You appear to be not reading the responses.
Yes, you can use yum -y, but someday you will be sorry you did.
You appear to be not reading the responses.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: broken yum and add/remove software
[quote]
cchelten wrote:
No proxy and you can use yum -y all it does is answer yes to the question.[/quote]
We know that. You have been lucky, or have not yet noticed the damage. Consider what would happen if you did
[code]yum -y remove rpm[/code]or inadvertently enabled some dangerous repo (e.g. Atomic) that wholesale replaces core packages and then did [code]yum -y update[/code]
[quote]
I have attched my notes for the fix, however it is in openoffice format.
MS Word probably cannot open it.[/quote]
The forum attachment function is permanently broken and a review of [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28726&forum=54]Readme First[/url] will tell you how to handle it. Copying/pasting the text in-line, or if too long using a pastebin, would be far preferred to a word processor file in any format.
cchelten wrote:
No proxy and you can use yum -y all it does is answer yes to the question.[/quote]
We know that. You have been lucky, or have not yet noticed the damage. Consider what would happen if you did
[code]yum -y remove rpm[/code]or inadvertently enabled some dangerous repo (e.g. Atomic) that wholesale replaces core packages and then did [code]yum -y update[/code]
[quote]
I have attched my notes for the fix, however it is in openoffice format.
MS Word probably cannot open it.[/quote]
The forum attachment function is permanently broken and a review of [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28726&forum=54]Readme First[/url] will tell you how to handle it. Copying/pasting the text in-line, or if too long using a pastebin, would be far preferred to a word processor file in any format.