Ask Your Question

Whenever I try to install software, Yum updates repositories!?

asked 2013-09-14 07:15:58 -0500

nonrea gravatar image

updated 2013-09-14 18:16:24 -0500

FranciscoD_ gravatar image

I turned on my computer, log-in to Gnome, and instantly, run this command: sudo yum install git.x86_64, Here is its output during updating /19/x86_64/primary_db:

Loaded plugins: langpacks, refresh-packagekit
Existing lock /var/run/ another copy is running as pid 1714.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 166 M RSS (498 MB VSZ)
Started: Sat Sep 14 16:09:04 2013 - 00:18 ago
State  : Running, pid: 1714
rpmfusion-free-updates             | 3.3 kB  00:00:00     
rpmfusion-nonfree-updates          | 3.3 kB  00:00:00     
updates/19/x86_64/metalink         | 6.7 kB  00:00:00     
updates                            | 4.6 kB  00:00:00
[Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates                            | 4.6 kB  00:00:00     
updates/19/x86_64/primary_db   FAILED       =========================           ]  3.1 B/s | 5.5 MB 257:55:10 ETA
[Errno 12] Timeout on
(28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
updates/19/x86_64/primary_db   FAILED                                 
[Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
updates/19/x86_64/primary_db      82% [====================       ] 8.1 kB/s | 6.8 MB  00:03:02 ETA

(Notice to mirrors!!!) After fetching updates slowly, yum tries to install the somtware! Git installed successfully :) but How can I escape from this issue (=extra updates per installation)?

  • I had installed fastestmirror by yum install yum-fastestmirror, but it downloaded with a very slow connection, I deleted it via sudo yum remove yum-fastestmirror. Is my problem because of yum-fastestmirror removed package?
edit retag flag offensive close merge delete



You probably hit some mirrors that didn't sync yum metadata yet.

The default expiration for yum metadata is 90m, you can change it in '/etc/yum.conf', and update metadata manually with:

yum makecache

EDIT: Don't use big values for metadata_expire, because it possible to have a pkg version in metadata that does not match the one in repo (old packages usually get purged)

athmane gravatar imageathmane ( 2013-09-14 07:33:01 -0500 )edit
  1. You mean it's normal that it checks repos in short periods?! ok; 1. Usually, Yum tries for different mirrors on one task! Is it usual? (notice to the output, please!) 2. Is yum-fastestmirror a recommended package? is it really useful?
nonrea gravatar imagenonrea ( 2013-09-14 12:37:48 -0500 )edit

I don't find yum-fastestmirror useful. Please disable it and try to update again. Also, it is normal that yum tries different mirrors, why not? If a mirror is slow or down, then yum will switch to a different one.

skytux gravatar imageskytux ( 2013-09-14 20:22:34 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-15 07:59:33 -0500

besser82 gravatar image

I think "yum-plugin-fastestmirror" is a useful tool when you are on a very fast connection (>= 50 MBit/s).

You can use yum -C %{your_transaction} to force yum not to update it's metadata-cache.

edit flag offensive delete link more

Question Tools


Asked: 2013-09-14 07:15:58 -0500

Seen: 6,587 times

Last updated: Sep 15 '13