Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Network > General > Issue <<  26 of 207 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4770
Last update: 01-20-05
Issue:
Why do I receive the error 'Could not determine what version of Red Hat Linux you are running' after updating to Red Hat Enterprise 3 update 4 using up2date?
Resolution:
Release Found: Red Hat Enterprise Linux 3 Update 4

Symptom:
After doing a complete update to Red Hat Enterprise Linux 3 Update 4, any further attempts to run up2date results in the following error:

# up2date --dry-run 
Traceback (most recent call last): 
  File "/usr/sbin/up2date", line 1174, in ? 
    sys.exit(main() or 0) 
  File "/usr/sbin/up2date", line 668, in main 
    up2dateAuth.updateLoginInfo() 
  File "up2dateAuth.py", line 151, in updateLoginInfo 
  File "up2dateAuth.py", line 105, in login 
  File "up2dateAuth.py", line 49, in maybeUpdateVersion 
  File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 228, 
    in getVersion 
    release, version = getOSVersionAndRelease() 
  File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 221, 
    in getOSVersionAndRelease 
    raise up2dateErrors.RpmError( 
up2date_client.up2dateErrors.RpmError: RPM error.  The message was: 
Could not determine what version of Red Hat Linux you are running. 
If you get this error, try running 
 
                rpm --rebuilddb 
      


Solution:
  1. Additional articles in the Knowledgebase provide information on how to remove the locks from the RPM database.

  2. You will need to either download the redhat-release package for your system from the Red Hat Network (RHN) or if the RPM package is available install it from the /var/spool/up2date directory with the command:
    # rpm -Uvh /var/spool/up2date/redhat-release*.rpm
    
    You may have to add the --nodeps option to the above command if the provided options fails to execute.

  3. Finally, sync your system profile with Red Hat Network:
    # up2date -p
    
Once these steps are completed, the system will be able continue to update from the Red Hat Network.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Network > General > Issue <<   26  of  207  >>