Error message with ‘yum update, yum install’ “This system is not registered with an entitlement server. You can use subscription-manager to register.”

Issue:

When trying to run “yum updates” or “yum install” the “system is not registered with an entitlement server” error message is given

This system is not registered with an entitlement server. You can use subscription-manager to register.

Cause:

This issue can be caused when the system has RHEL (RedHat) repositories installed (generally by mistake) or by old, bad, extra yum plugins.
 
 

Resolution:

To fix this issue follow the steps below:
 

1. In your preferred editor (vi, vim, nano, etc.) open the “subscription-manager.conf” file

sudo nano /etc/yum/pluginconf.d/subscription-manager.conf
 
 

2. Inside the “subscription-manager.conf” file change enabled to 0 and save the file

enabled=0
 
 

3. Lastly issue the “yum clean all” command

yum clean all
 
 

You should now be able to run “yum” properly with successful installations and updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

RELATED POST

How to automatically restart Linux services with Systemd

Getting your Linux deployments working reliably is of paramount concern for production applications. One way to guarantee that a service…

How to Install SFTPGo on Ubuntu 22.04

Setup UFW Firewall For security reasons, it is recommended to install and configure the UFW firewall in your system. First,…

Executing Bash Scripts at Startup in Ubuntu Linux

Creating a Bash script in Ubuntu To create a Bash script in Ubuntu, you can use any text editor of…

How To Clear PHP’s Opcache

PHP can be configured to store precompiled bytecode in shared memory, called Opcache. It prevents the loading and parsing of PHP…