'rhel-7-server-optional-rpms' does not match a valid repository ID
Hello,
I am encountering this problem on a RedHat 7.3 server. I run the command as follows:
- subscription-manager repos --enable rhel-7-server-optional-rpms and it returns and error as follows:
- Error: 'rhel-7-server-optional-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
So here is output of subscription-manager repos --list
+----------------------------------------------------------+
Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID: rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL: https://rhs1v.xxx/pulp/repos/xxxxxx/Library/content/dist/rhel/server/7/7.4/$basearch/os
Enabled: 1
Repo ID: rhel-7-server-satellite-tools-6.2-rpms
Repo Name: Red Hat Satellite Tools 6.2 (for RHEL 7 Server) (RPMs)
Repo URL: https://rhs1v.xxx/pulp/repos/xxxxxx/Library/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.2/os
Enabled: 1
Repo ID: rhel-7-server-extras-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs)
Repo URL: https://rhs1v.xxx/pulp/repos/xxxxxx/Library/content/dist/rhel/server/7/7Server/$basearch/extras/os
Enabled: 1
Repo ID: rhel-7-server-rhn-tools-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL: https://rhs1v.xxx/pulp/repos/xxxxxx/Library/content/dist/rhel/server/7/7.4/$basearch/rhn-tools/os
Enabled: 0
Repo ID: rhel-server-rhscl-7-rpms
Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
Repo URL: https://rhs1v.xxx/pulp/repos/xxxxxx/Library/content/dist/rhel/server/7/7.4/$basearch/rhscl/1/os
Enabled: 0
I have tried this on both my satellite server and the server where i want to enable the repository.
So how do I get it to match a valid Repository ID?
As always any help or guidance is greatly appreciated.
Regards,
Patrick
Responses
Hi Patrick,
Not sure, but I think to having read that the 'optional' repository is only available for the newest point release of the main edition.
So upgrade the server to - or better clean install (as recommended in our other discussion) - the latest stable edition RHEL 7.4. :)
Regards,
Christian
Well Patrick that is strange, I am running 7.4 and have the 'optional' repository enabled.
Please try to rebuild everything from scratch - unregister and re-register the system ->
sudo subscription-manager remove --allsudo subscription-manager unregistersudo subscription-manager clean
sudo subscription-manager registersudo subscription-manager refreshsudo subscription-manager attach --auto
sudo subscription-manager repos --enable rhel-7-server-extras-rpmssudo subscription-manager repos --enable rhel-7-server-optional-rpmssudo subscription-manager repos --enable rhel-server-rhscl-7-rpms
Regards,
Christian
my error message are : Error: 'rhel-7-server-rhv-4.2-manager-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories. Error: 'rhel-7-server-rhv-4-managertools-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories. Error: 'jb-eap-7-for-rhel-7-server-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories. after unregister and re-register the system, there is no effect,what should i do?
Hi Chao,
Maybe this discussion thread might be a useful source to find a solution : Enable rhel-7-server-rhvh-4-rpms :)
Regards,
Christian
Thank you for your reply. but No effect for me, I am very sure there is something wrong with my Subscription Pool, as mentioned in the install guild,Red Hat Virtualization Manager are required Red Hat Enterprise Linux Server and Red Hat Virtualization Subscription Pool,but when i registed my system,i could only find RHEL Server pool info,why have no Red Hat Virtualization subscription pool info? Addition, my system is RHEL 7.5, anything wrong?I need your help,thanks.
I have registed as a developer, a developer has no Red Hat Virtualization subscription?
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
