Use Yum online to install a need to FQ to access the URL, because did not turn the installation will fail, the error is similar:
One of the configured repositories failed (Zabbix official repository-x86_64), and Yum doesn ' t have enough data To continue. At this point, the only safe thing Yum can does is fail.
There are a few ways to work "fix" this:1. Contacts the upstream for the repository and get them to fix the problem. 2. Reconfigure the BASEURL/ETC. For the repository, to point to a working upstream. This is most often useful if to are using a newer distribution release than was supported by the repository (and T
He packages to the previous distribution release still work).
3. Run the command with the repository temporarily disabled Yum--disablerepo=zabbix ... 4. Disable the repository permanently, so Yum won ' t use it by default. Yum'll then just ignore the repository until you enable it permanently or use again for TEM Porary Usage:yum-config-manager--disable Zabbix or SubsCription-manager Repos--disable=zabbix 5.
Configure the failing repository to being skipped, if it is unavailable. Note that Yum would try to contact the repo. When the It runs most commands, so'll have to try and fail the each time (and thus. Yum) is much slower. If It is a very temporary problem though, this is often a nice compromise:yum-config-manager--save --setopt=zabbix.skip_if_unavailable=true
The example above is the solution given by Yum, installing Zabbix online and adding Zabbix sources, which will cause errors when executing all Yum commands in the future, and the solution is to delete the source file:
Rm-fr/etc/yum.repos.d/xxx.repo
--This article from: https://www.cnblogs.com/icewee/articles/7743453.html