Advertisement
lbrigman124

epel yum error

Sep 14th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. [root@toot2 yum.repos.d]# yum install ansible
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4.  
  5.  
  6. One of the configured repositories failed (Unknown),
  7. and yum doesn't have enough cached data to continue. At this point the only
  8. safe thing yum can do is fail. There are a few ways to work "fix" this:
  9.  
  10. 1. Contact the upstream for the repository and get them to fix the problem.
  11.  
  12. 2. Reconfigure the baseurl/etc. for the repository, to point to a working
  13. upstream. This is most often useful if you are using a newer
  14. distribution release than is supported by the repository (and the
  15. packages for the previous distribution release still work).
  16.  
  17. 3. Run the command with the repository temporarily disabled
  18. yum --disablerepo=<repoid> ...
  19.  
  20. 4. Disable the repository permanently, so yum won't use it by default. Yum
  21. will then just ignore the repository until you permanently enable it
  22. again or use --enablerepo for temporary usage:
  23.  
  24. yum-config-manager --disable <repoid>
  25. or
  26. subscription-manager repos --disable=<repoid>
  27.  
  28. 5. Configure the failing repository to be skipped, if it is unavailable.
  29. Note that yum will try to contact the repo. when it runs most commands,
  30. so will have to try and fail each time (and thus. yum will be be much
  31. slower). If it is a very temporary problem though, this is often a nice
  32. compromise:
  33.  
  34. yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
  35.  
  36. Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement