yum update

Issues related to applications and software problems
Post Reply
ruff
Posts: 2
Joined: 2011/08/31 21:28:10

yum update

Post by ruff » 2011/08/31 21:34:03

I'm not able to update with YUM

# yum update

Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: distrib-coffee.ipsl.jussieu.fr
* c6-media:
* centosplus: distrib-coffee.ipsl.jussieu.fr
* extras: distrib-coffee.ipsl.jussieu.fr
* updates: distrib-coffee.ipsl.jussieu.fr
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

help me please

:-(

dcmarti1
Posts: 50
Joined: 2011/01/26 22:36:52
Location: Washington, DC

Re: yum update

Post by dcmarti1 » 2011/08/31 22:38:59

I do believe that I had the same problem as you. Forum guru TrevorH showed me the solution, so here is the link to my post and his answer.

-----

Link:

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=32282&forum=55&post_id=138053#forumpost138053

Answer from TrevorH:

Edit the file /etc/yum.repos.d/CentOS-Media.repo and make sure that the line enabled = says 0

-----

I truly hope I am reading your error messages and mine correctly.

Marti

ruff
Posts: 2
Joined: 2011/08/31 21:28:10

Re: yum update

Post by ruff » 2011/09/03 23:41:06

hello!

I change the value but it still not work.
[quote]
dcmarti1 wrote:
I do believe that I had the same problem as you. Forum guru TrevorH showed me the solution, so here is the link to my post and his answer.

-----

Link:

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=32282&forum=55&post_id=138053#forumpost138053

Answer from TrevorH:

Edit the file /etc/yum.repos.d/CentOS-Media.repo and make sure that the line enabled = says 0

-----

I truly hope I am reading your error messages and mine correctly.

Marti[/quote]

dcmarti1
Posts: 50
Joined: 2011/01/26 22:36:52
Location: Washington, DC

Re: yum update

Post by dcmarti1 » 2011/09/04 00:34:21

I am so very sorry that making the line in the CentOS-Media.repo file read: enable=0 did not work. Here is my file for
/etc/yum.repos.d/CentOD-Media.repo:

--------------------------------------------------------------------------------
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-6. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c6-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c6-media [command]

[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

--------------------------------------------------------------------------------

The only other "errno 14" posting error for yum that I read tonight had a mis-spelled
word. One person who had a problem had the word

releaserver

instead of

releasever

in the line

name=CentOS-$releasever - Media

I was hoping your problem was the same as mine. I apologize.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum update

Post by TrevorH » 2011/09/04 02:41:41

[quote]
I change the value but it still not work.
[/quote]

Please show the entire content of the file /etc/yum.repos.d/CentOS-Media.repo.

ykorotia
Posts: 44
Joined: 2008/10/04 15:50:04
Location: Ukraine
Contact:

Re: yum update

Post by ykorotia » 2011/09/12 04:18:01

post here

[code]yum repolist[/code]

do this (but my guess it won't help)

[code]yum --disablerepo=c6-media[/code]

tangram
Posts: 2
Joined: 2012/04/09 18:13:56
Contact:

Re: yum update

Post by tangram » 2012/04/09 18:20:12

I came across a very similar issue and found a solution in [url=https://bugzilla.redhat.com/show_bug.cgi?id=689208]Bug 689208 - yum --disablerepo does not work[/url]

Basically run
[code]# yum-config-manager --disable c6-media[/code]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

yum update

Post by pschaff » 2012/04/09 20:18:09

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Seems that [b]yum-config-manager[/b] is new with CentOS-6. You have taught the old dog a new trick, so I added it to [url=http://wiki.centos.org/TipsAndTricks/YumAndRPM]Yum and RPM Tricks[/url]. :-)

Please note that a posting to such an old thread is not likely to be noticed by many people, but I'm sure other [url=https://www.centos.org/search.php?query=c6-media&mid=30&action=showall&andor=AND]opportunities to use the knowledge[/url] will be available.

ersatz
Posts: 1
Joined: 2012/06/06 12:31:00

Re: yum update

Post by ersatz » 2012/06/06 12:45:08

Hello

just edit your /etc/yum.repos.d/CentOS-Media.repo
and edit the base url:

[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/name of your CD/DVD/flashdrive or any media/

gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


or you can just set enabled option to 0...

hope this helps.. ^^
:-) :-)

Post Reply