-   Linux - Software (
-   -   broken yum and add/remove software (

cheltz 02-26-2012 08:44 PM

broken yum and add/remove software
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:
* c6-media:
* extras:
* updates:
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

Berhanie 02-26-2012 09:06 PM

looks like it's trying to read a cdrom for repo data, and failing. check /etc/yum.repos.d/ for a cdrom-based repo, and disable it.

cheltz 02-26-2012 09:16 PM

yes your right i just had to change
in the file you referred to

thank you !!

All times are GMT -5. The time now is 12:53 PM.