Upating centos using yum – A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about Upating centos using yum was one problem in server stack that need for a solution. Below are some tips in manage your linux server when you find problem about linux, redhat, yum, update, rhn.
I am trying to update my system, been looking but cannot find any solution to my problem. When I execute yum update
I am getting following error
Loaded plugins: fastestmirror, rhnplugin
There was an error communicating with RHN.
Red Hat Satellite or RHN Classic support will be disabled.
rhn-plugin: Error communicating with server. The message was:
Unable to connect to the host and port specified
Loading mirror speeds from cached hostfile
* epel: fedora-epel.mirror.lstn.net
No packages marked for update
I actually have no idea which files to look and what to change. Any help will be highly appreciated.
Updating RHEL requires a valid RHEL subscription.
The error message you received indicates that your server was not able to contact the relevant server to verify its subscription status.
If you are using Satellite, you need to check that you have network connectivity to the Satellite server.
If you are not using Satellite and receive updates directly from Red Hat, you need to migrate to RHEL Subscription Management using the rhn-migrate-classic-to-rhsm
utility. The old Red Hat Network was decommissioned some time ago.
If you haven’t got a RHEL subscription, you need to purchase one, or switch to CentOS.
If your system somehow really is CentOS, then you need to remove the yum-rhn-plugin
package: yum -y remove yum-rhn-plugin
This package should not be installed on CentOS systems unless they are talking to Spacewalk/Satellite.