Unable to find available subscriptions for installed products.
I am using Red Hat Version 7.6.
-unname -a
3.10.0-1062.4.3.el7.x86_64 #1 SMP Tue Nov 12 10:42:40 EST 2019 x86_64 x86_64 x86_64 GNU/Linux
I have successfully registered my system, but, am unable to to get any subscriptions assigned to it.
I have tried the following several times and none of it seems to help. Any assistance would be greatly appreciated.
The system was registered as follows.
subscription-manager register --username (login-id) --password 'password' --auto-attach
subscription-manager repos --enable="rhel-7-server-rpms"
This system has no repositories available through subscriptions.
subscription-manager list --available --all
No available subscription pools to list
yum repolist all
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
repolist: 0
subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Not Subscribed
Unable to find available subscriptions for all your installed products.
yum check-update
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable
To enable custom repositories:
yum-config-manager --enable
Responses
Hi Paul,
Execute the following steps in exactly the given order. :)
Un-register the system :
sudo subscription-manager remove --all
sudo subscription-manager unregister
sudo subscription-manager clean
Re-register the system :
sudo subscription-manager register
sudo subscription-manager refresh
Search for the Pool ID :
sudo subscription-manager list --available
Attach to subscription :
sudo subscription-manager attach --pool=<Pool-ID>
Clean YUM and cache :
sudo yum clean all
sudo rm -r /var/cache/yum
Update the resources :
sudo yum upgrade
Regards,
Christian
Hi Christian, thanks for this. Your solution helped me with a similar problem for RHEL8.
Before:
[root@rhel8 ~]# subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Status: Not Subscribed
Unable to find available subscriptions for all your installed products.
After:
Using list --available and then attach --pool= worked for me (instead of --auto which would not work).
Thanks a lot.
Hi Paul,
Looks like you don't have a valid subscription ... check https://access.redhat.com/management/products.
Next step would be to contact the Red Hat Customer Service team ... ask them to clarify the situation. :)
Regards,
Christian
Great I got it to work thank you very much C.L.!! Your instructions were very helpful, I was pulling my hair all day :)
Hi Christian,
The Subscription was register on another VM , which was deleted , when i am trying to use register on new VM getting below errror.
root@rhel195 ~]# subscription-manager attach Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed
Unable to find available subscriptions for all your installed products.
Please sugget .. Thanks in advance.
Hi Divya,
You have to unregister the old system ... go to https://access.redhat.com/management/systems and do it there. :)
Regards,
Christian