以下是错误:

  1. Could not retrieve mirrorlist https://mirror.webtatic.com/yum/el7/x86_64/mirrorlist error was
  2. 12: Timeout on https://mirror.webtatic.com/yum/el7/x86_64/mirrorlist: (28, 'Operation timed out after 30000 milliseconds with 0 out of 0 bytes received')
  3. One of the configured repositories failed (Unknown),
  4. and yum doesn't have enough cached data to continue. At this point the only
  5. safe thing yum can do is fail. There are a few ways to work "fix" this:
  6. 1. Contact the upstream for the repository and get them to fix the problem.
  7. 2. Reconfigure the baseurl/etc. for the repository, to point to a working
  8. upstream. This is most often useful if you are using a newer
  9. distribution release than is supported by the repository (and the
  10. packages for the previous distribution release still work).
  11. 3. Run the command with the repository temporarily disabled
  12. yum --disablerepo=<repoid> ...
  13. 4. Disable the repository permanently, so yum won't use it by default. Yum
  14. will then just ignore the repository until you permanently enable it
  15. again or use --enablerepo for temporary usage:
  16. yum-config-manager --disable <repoid>
  17. or
  18. subscription-manager repos --disable=<repoid>
  19. 5. Configure the failing repository to be skipped, if it is unavailable.
  20. Note that yum will try to contact the repo. when it runs most commands,
  21. so will have to try and fail each time (and thus. yum will be be much
  22. slower). If it is a very temporary problem though, this is often a nice
  23. compromise:
  24. yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
  25. Cannot find a valid baseurl for repo: webtatic/x86_64
  26. [vagrant@web ~]$ sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  27. Retrieving https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  28. curl: (35) Encountered end of file
  29. error: skipping https://mirror.webtatic.com/yum/el7/webtatic-release.rpm - transfer failed

通过手动安装解决:
Installation
To set up the repository, install the webtatic-release RPM:

  1. CentOS/RHEL 7.x:
  2. yum install epel-release
  3. rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:

  1. yum install epel-release
  2. rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

以下是相关链接:
https://webtatic.com/projects/yum-repository/