Unable to update the server with the Red hat network
Hi Guys,
We have one red hat enterprise linux 5, server which is registered with the RHN, I am not able to update the server with the RHN. when issued the following #yum update Loading "rhnplugin" plugin Loading "installonlyn" plugin Loading "security" plugin There was an error communicating with RHN. RHN support will be disabled. Error communicating with server. The message was: Error Message: Please run rhn_register (or up2date --register on Red Hat Enterprise Linux 3 or later) as root on this client Error Class Code: 9 Error Class Info: Invalid System Credentials. Explanation: An error has occurred while processing your request. If this problem persists please enter a bug report at bugzilla.redhat.com. If you choose to submit the bug report, please be sure to include details of what you were trying to do when this error occurred and details on how to reproduce this problem. Setting up Update Process Setting up repositories No Repositories Available to Set Up Reading repository metadata in from local files Skipping security plugin, no data No Packages marked for Update/Obsoletion Thanks & Regards |
The update channel was not subscribed with the RHN, I tried to subscribe the channel and then it was updating
gpg $(up2date --gpg-flags) --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release -bash: up2date: command not found gpg: directory `/root/.gnupg' created gpg: new configuration file `/root/.gnupg/gpg.conf' created gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run gpg: keyring `/root/.gnupg/secring.gpg' created gpg: keyring `/root/.gnupg/pubring.gpg' created gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key 37017186: public key "Red Hat, Inc. (release key) <security@redhat.com>" imported gpg: Total number processed: 1 gpg: imported: 1 ----------- [root@cc1001-medting rpm-gpg]# yum update Loading "rhnplugin" plugin Loading "installonlyn" plugin Loading "security" plugin Setting up Update Process Setting up repositories rhel-i386-server-5 100% |=========================| 1.3 kB 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 2.1 MB 01:39 ################################################## 5516/5516 Skipping security plugin, no data Resolving Dependencies Skipping security plugin, no data --> Populating transaction set with selected packages. Please wait. ---> Downloading header for chkconfig to pack into transaction set. Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 143, in main (result, resultmsgs) = base.buildTransaction() File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 441, in buildTransaction (rescode, restring) = self.resolveDeps() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 194, in resolveDeps self.populateTs(test=1) File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 153, in populateTs self.downloadHeader(txmbr.po) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 760, in downloadHeader cache=repo.http_caching != 'none', File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 461, in getHeader cache=cache, File "/usr/lib/yum-plugins/rhnplugin.py", line 209, in _getFile start, end, copy_local, checkfunc, text, reget, cache) File "/usr/lib/yum-plugins/rhnplugin.py", line 298, in _noExceptionWrappingGet return result UnboundLocalError: local variable 'result' referenced before assignment - |
Could you try yum clean all then yum update also try yum repolist
|
gpg $(up2date --gpg-flags) --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
-bash: up2date: command not found You could also try yum install up2date as the system doesnt see it installed. and you will see those gpg key messages with releases a lot. |
have you called your tech rep. on the telephone
that is why you are paying $$$ Red hat |
up2date was superseded by yum as of RHEL 5.0
|
All times are GMT -5. The time now is 10:17 PM. |