• Last week I had to upgrade one of our old RHEL3 servers in order to get it to address disks larger than 2TB. I did the upgrade from CD, and it went fairly smoothly, except up2date would not run after the box came back up.

    It gave me the following error:

    [root@x up2date]# Traceback (most recent call last):
      File "/usr/sbin/up2date", line 27, in ?
        from up2date_client import repoDirector
      File "/usr/share/rhn/up2date_client/repoDirector.py", line 5, in ?
        import rhnChannel
      File "/usr/share/rhn/up2date_client/rhnChannel.py", line 10, in ?
        import up2dateAuth
      File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 5, in ?
        import rpcServer
      File "/usr/share/rhn/up2date_client/rpcServer.py", line 23, in ?
        from rhn import rpclib
    ImportError: No module named rhn

    It turns out that there is no “really easy” way to fix it, but these directions on spaceblog do work. Basically it involves removing a lot of packages and re-adding them. The problem is related to python, so rather than remove the entire list of packages, I focused only on those relating to python and up2date:


    libxml2-python
    popt
    pyOpenSSL
    python
    rhnlib
    rhpl
    up2date

    Make sure not to remove these packages:


    rpm
    rpm-libs
    rpm-python

    Or you will break rpm and not be able to add the packages back after you remove them. All told, this is a grisly process, and you will have to use rpm -e --nodeps in order to get it done. This sucks, but up2date will work everything out once you can get it running again.

    This entry was posted on Tuesday, January 22nd, 2008 at 11:03 am and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 1 Comment

    Take a look at some of the responses we've had to this article.

    1. We saw this today, too. Shame that it hasn’t been fixed even as recent as RHEL4U6, but we’re good now. Thanks!

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: t (124) - up2date --upgrade-to-release (30) - up2date upgrade-to-release (30) - upgrade rhel3 to rhel4 (27) - up2date upgrade (20) - RHEL4 update 6 download (17) - upgrade RHEL 3 to 4 (16) - ImportError: No module named rhn (14) - up2date No module named rhn (14) - up2date ImportError: No module named rpm (14) - f (13) - upgrade rhel (13) - no module named up2date_client (13) - upgrade to the latest up2date (12) - RHEL upgrade (12) - up2date no module named rpm (12) - upgrade rhel3 to rhel5 (12) - upgrade (11) - up2date ImportError: No module named rhn (11) - python (11) - rhel4 update 7 download (11) - rhel up2date (10) - download rhel4 update 6 (10) - no module named rhn (10) - up2date download only (9) - download up2date (9) - RHEL3 upgrade (8) - RHEL 3 upgrade (8) - up2date rhel4 (8) - upgrade-to-release up2date (8) - rhel3 iso download (8) - ImportError: No module named rpm up2date (8) - RHEL 3 iso (7) - upgrade rhel 3 (7) - upgrade RHEL 3 to RHEL 4 (7) - RHEL3 iso (7) - how to upgrade rhel3 to rhel4 (7) - rhel4 update 6 iso (7) - RHEL3 update 9 download (7) - up2date upgrade to release (7) - RHEL3 download (6) - rhel4 upgrade (6) - upgrade RHEL3 RHEL4 (6) - RHEL3 to RHEL4 (6) - up2date --upgrade-to-release RHEL5 (6) - update rhel3 (6) - upgrade rhel 3 to 5 (6) - upgrade rhel 4 to rhel 5 (6) - pyhon up2date ImportError: No module named rpm (6) - RHEL3 up2date (6) - up2date ImportError: No module named libxml2 (6) - ImportError: No module named up2date_client.up2dateAuth (6) - upgrade RHEL3 (6) - File \"/usr/sbin/up2date\", line 11, in  (6) - up2date howto (5) - Upgrade RHEL 3 to RHEL4 (5) - Upgrade from RHEL3 to RHEL4 (5) - update RHEL3 to RHEL4 (5) - importError: no module named Bio (5) - ImportError: No module named rpm (5) - up2date RHEL3 to RHEL4 (5) - RHEL4.7 ISO (5) - File /usr/sbin/up2date", line 11, in  (5) - rhel up2date fails (5) - upgrade from RHEL3 to RHEL5 (5) - from up2date_client import repoDirector (4) - rhel3 up2date rpm (4) - RHEL3 update to RHEL4 (4) - up2date rhel3 (4) - upgrade up2date (4) - up2date rhel4 to rhel5 (4) - updating RHEL3 to RHEL4 (4) - upgrade rhel4 to rhel5 (4) - RHEL4 UPDATE 6 (4) - rhel upgrade from 3 to 4 (4) - upgrading from rhel4 to rhel5 (4) - up2date traceback No module named rhn (4) - upgrade rhel from iso (4) - up2date ImportError (4) - howto upgrade rhel (4) - up2date download (4) - download rhel4 update 5 (4) - up2date lock file (4) - ImportError: No module named up2date_client (4) - RHEL4 update 7 (4) - how to upgrade rhel from cd (4) - RHEL 3 Update 8 download (4) - redhat up2date upgrade-to-release (4) - download rhel4 update 7 (4) - download rhel4 iso (3) - rhel4 iso download (3) - rhel 3 iso download (3) - rhel4 update 5 download (3) - File /usr/sbin/up2date line 27 in ? (3) - up2date_client import repoDirector (3) - Traceback (most recent call last): File /usr/sbin/up2da (3) - rhel3 upgrade to rhel4 (3) - download up2date rpm (3) - how to upgrade to the latest up2date (3) - No module named rpm (3) - up2date import rpm (3) - upgrade rhel4 rhel5 (3) - ImportError: No module named libxml2 (3) - python rhel4 (3) - rhel3 update 8 download (3) - RHEL4 update 2 download (3) - download rhel3 update 6 (3) - how to upgrade rhel 4 to 5 (3) - rhel4 up2date (3) - RHEL 3 upgrade to 4 (3) - up2date upgrade-to-release=5 (3) - rhel3 download iso (3) - how to upgrade rhel (3) - how to uninstall rpm in rhel4 (3) - up2date rhel (3) - how to upgrade RHEL 3 to 4 (3) - rhel3 python (3) - rhel 3 4 upgrade (3) - File /usr/share/rhn/up2date_client/up2dateAuth.py", line 5, in ? (3) - upgrade to update 5 rhel4 (3) - up2date traceback (3) - upgrade to rhel4 (3) - rhel 3 up2date (3) - rhel 4 update 6 download (3) - upgrade-to-release rhel5 (3) - File /usr/sbin/up2date", line 33, in ? from up2date_client import up2date (3) - download Rhel3 update (3) - up2date lock (3) - rhel3 rhel4 (3) - upgrading from RHEL3 to RHEL5 (3) - Traceback (most recent call last): File /usr/sbin/up2date", line 27, in ? from up2date_client import repoDirector File /usr/share/rhn/up2date_client/repoDirector.py", line 5, in ? import rhnChannel File /usr/share/rhn/up2date_client/rhnChannel.py", line 1 (3) - upgrade from rhel 3 to 5 (3) - rhel 4 update 7 download (3) - upgrading rhel linux from 4 to 5 (3) - up2date upgrade-to-release= (3) - RHEL upgrade from cd (3) - How to upgrade RHEL3 to RHEL5 (3) - up2date importerror no module named rpm (3) - rhel4 update 7 iso (3) - rhel user import from active directory (3) - rhel upgrade 3 to 4 (3) - download rhel 4 update 7 (3) - update python on RHEL (3) - update rhel 3 to 4 (3) - \"--upgrade-to-release up2date\ (3) - up2date rpm python (3) - up2date \"ImportError: No module named rpm\ (3) - File \"/usr/sbin/up2date\", line 11, in import rpm (3) - File \"/usr/sbin/up2date\", line 11, in import rpm ImportError: No module named rpm (3) - rhel iso upgrade (3) -