Bug 1195745
| Summary: | Yum refers to yum-config-manager which is not installed | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Stephen Wadeley <swadeley> |
| Component: | yum | Assignee: | Valentina Mukhamedzhanova <vmukhame> |
| Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.1 | CC: | emrakova, itmodelfont82, james.antill, jscalf |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | yum-3.4.3-139.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-04 05:28:36 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Stephen Wadeley
2015-02-24 13:40:18 UTC
The offending message is coming from yum... [root@jsefler-os7 ~]# grep -r "One of the configured" /usr/share/ Binary file /usr/share/yum-cli/yummain.pyc matches /usr/share/yum-cli/yummain.py: One of the configured repositories failed (%(repo)s), [root@jsefler-os7 ~]# rpm -q --whatprovides /usr/share/yum-cli/yummain.py yum-3.4.3-125.el7.noarch [root@jsefler-os7 ~]# Thank you John, sorry for my mistake. I will rename the bug. I also ran into this when I installed a minimal install of RHEL 7.1. Knowing about subscription-manager, the workaround is simple (subscription-manager repos --disable=), but it would be nice to see this fixed for others who use the commands they see posted in the error/warning messages from yum. Seems to be very similar to bug 1175309. We can improve the message by adding the instruction to run yum with --disablerepo, to have the repo disabled temporarily. That would work for any repo, and wouldn't require any additional packages. Hi Valentina,
I would propose to do both, i.e. to provide instructions to temporary disable the repo and also adding the subscription-manager hint (while preserving the yum-config-manager one). Something like:
...
1. Contact 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 you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository temporarily
yum --disablerepo=rhel-7-server-eus-rpms ...
4. Disable the repository PERMANENTLY, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable rhel-7-server-eus-rpms
or
subscription-manager repos --disable=rhel-7-server-eus-rpms
5. Configure the failing repository to be skipped, if it is unavailable.
....
What do you think?
Yes, we can do this. needinfo cleared Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2397.html |