One of the configured repositories failed (未知), and yum doesn’t have enough cached data to continue. At this point the only safe thing yum can dois fail. There are a few ways to work “fix” this:
<span class="hljs-number">1.</span> Contact the upstream <span class="hljs-keyword">for</span> the repository <span class="hljs-keyword">and</span> <span class="hljs-keyword">get</span> them <span class="hljs-keyword">to</span> fix the problem.
<span class="hljs-number">2.</span> Reconfigure the baseurl/etc. <span class="hljs-keyword">for</span> the repository, <span class="hljs-keyword">to</span> point <span class="hljs-keyword">to</span> a working
upstream. This <span class="hljs-keyword">is</span> most often useful <span class="hljs-keyword">if</span> you are <span class="hljs-keyword">using</span> a newer
distribution release than <span class="hljs-keyword">is</span> supported <span class="hljs-keyword">by</span> the repository (<span class="hljs-keyword">and</span> the
packages <span class="hljs-keyword">for</span> the previous distribution release still work).
<span class="hljs-number">3.</span> Disable the repository, so yum won<span class="hljs-comment">'t use it by default. Yum will then</span>
just ignore the repository <span class="hljs-keyword">until</span> you permanently enable it again <span class="hljs-keyword">or</span> use
--enablerepo <span class="hljs-keyword">for</span> temporary usage:
yum-config-manager --disable <repoid>
<span class="hljs-number">4.</span> Configure the failing repository <span class="hljs-keyword">to</span> be skipped, <span class="hljs-keyword">if</span> it <span class="hljs-keyword">is</span> unavailable.
Note that yum will <span class="hljs-keyword">try</span> <span class="hljs-keyword">to</span> contact the repo. <span class="hljs-keyword">when</span> it runs most commands,
so will have <span class="hljs-keyword">to</span> <span class="hljs-keyword">try</span> <span class="hljs-keyword">and</span> fail <span class="hljs-keyword">each</span> time (<span class="hljs-keyword">and</span> thus. yum will be be much
slower). <span class="hljs-keyword">If</span> it <span class="hljs-keyword">is</span> a very temporary problem though, this <span class="hljs-keyword">is</span> often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=<span class="hljs-literal">true</span>
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path andtry again