AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

dnf not working on AIX 7.3 after dnf update

  • 1.  dnf not working on AIX 7.3 after dnf update

    Posted Wed December 07, 2022 07:23 AM

    Dear Team,

    I have a problem with dnf after migrating to AIX 7.3 TL1.
    First, I had a lot of problems to get dnf running in AIX 7.3 and had to uninstall all packages related to dnf manually until I could do a clean install of dnf for AIX 7.3.
    After that, I run dnf update and now I get errors and dnf is not running anymore.

    This is the update process and error message:

    :/tmp#dnf upgrade
    Last metadata expiration check: 2:33:00 ago on Wed Dec  7 10:35:53 CET 2022.
    Dependencies resolved.
    ==============================================================================================================================================================================================================================
     Package                                                   Architecture                                 Version                                                 Repository                                               Size
    ==============================================================================================================================================================================================================================
    Installing:
     python3-gpg                                               ppc                                          1.13.1-100                                              AIX_Toolbox                                             744 k
         replacing  python3-gpgme.ppc 1.13.1-64_1
    Upgrading:
     ca-certificates                                           ppc                                          2021.2.52-3                                             AIX_Toolbox                                             919 k
     librepo                                                   ppc                                          1.11.0-100                                              AIX_Toolbox                                             440 k
     p11-kit                                                   ppc                                          0.23.22-1                                               AIX_Toolbox                                             4.3 M
     p11-kit-tools                                             ppc                                          0.23.22-1                                               AIX_Toolbox                                             198 k
     python3                                                   ppc                                          3.7.12-1                                                AIX_Toolbox                                              39 M
     python3-libcomps                                          ppc                                          0.1.11-100                                              AIX_Toolbox                                             563 k
     python3-librepo                                           ppc                                          1.11.0-100                                              AIX_Toolbox                                             326 k
     dnf                                                       ppc                                          4.2.17-64_51                                            AIX_Toolbox_73                                           11 k
     dnf-automatic                                             ppc                                          4.2.17-64_51                                            AIX_Toolbox_73                                           12 k
     dnf-data                                                  ppc                                          4.2.17-64_51                                            AIX_Toolbox_73                                           24 k
     libdnf                                                    ppc                                          0.39.1-64_50                                            AIX_Toolbox_73                                          2.3 M
     python3-dnf                                               ppc                                          4.2.17-64_51                                            AIX_Toolbox_73                                          193 k
     python3-hawkey                                            ppc                                          0.39.1-64_50                                            AIX_Toolbox_73                                          424 k
     python3-libdnf                                            ppc                                          0.39.1-64_50                                            AIX_Toolbox_73                                          2.3 M
    
    Transaction Summary
    ==============================================================================================================================================================================================================================
    Install   1 Package
    Upgrade  14 Packages
    
    Total download size: 52 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/15): python3-gpg-1.13.1-100.aix7.1.ppc.rpm                                                                                                                                                 286 kB/s | 744 kB     00:02
    (2/15): p11-kit-0.23.22-1.aix6.1.ppc.rpm                                                                                                                                                       35 MB/s | 4.3 MB     00:00
    (3/15): p11-kit-tools-0.23.22-1.aix6.1.ppc.rpm                                                                                                                                                 24 MB/s | 198 kB     00:00
    (4/15): librepo-1.11.0-100.aix7.1.ppc.rpm                                                                                                                                                     143 kB/s | 440 kB     00:03
    (5/15): python3-3.7.12-1.aix6.1.ppc.rpm                                                                                                                                                        18 MB/s |  39 MB     00:02
    (6/15): python3-librepo-1.11.0-100.aix7.1.ppc.rpm                                                                                                                                              10 MB/s | 326 kB     00:00
    (7/15): dnf-4.2.17-64_51.aix7.3.ppc.rpm                                                                                                                                                       5.1 MB/s |  11 kB     00:00
    (8/15): dnf-automatic-4.2.17-64_51.aix7.3.ppc.rpm                                                                                                                                             5.6 MB/s |  12 kB     00:00
    (9/15): dnf-data-4.2.17-64_51.aix7.3.ppc.rpm                                                                                                                                                  9.9 MB/s |  24 kB     00:00
    (10/15): libdnf-0.39.1-64_50.aix7.3.ppc.rpm                                                                                                                                                    58 MB/s | 2.3 MB     00:00
    (11/15): python3-dnf-4.2.17-64_51.aix7.3.ppc.rpm                                                                                                                                               28 MB/s | 193 kB     00:00
    (12/15): python3-hawkey-0.39.1-64_50.aix7.3.ppc.rpm                                                                                                                                            24 MB/s | 424 kB     00:00
    (13/15): python3-libdnf-0.39.1-64_50.aix7.3.ppc.rpm                                                                                                                                            38 MB/s | 2.3 MB     00:00
    (14/15): python3-libcomps-0.1.11-100.aix7.1.ppc.rpm                                                                                                                                           140 kB/s | 563 kB     00:04
    (15/15): ca-certificates-2021.2.52-3.aix6.1.ppc.rpm                                                                                                                                            63 kB/s | 919 kB     00:14
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                                                         3.5 MB/s |  52 MB     00:14
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                                                                                      1/1
      Upgrading        : python3-3.7.12-1.ppc                                                                                                                                                                                1/30
      Upgrading        : librepo-1.11.0-100.ppc                                                                                                                                                                              2/30
      Upgrading        : libdnf-0.39.1-64_50.ppc                                                                                                                                                                             3/30
      Upgrading        : python3-libdnf-0.39.1-64_50.ppc                                                                                                                                                                     4/30
      Upgrading        : python3-hawkey-0.39.1-64_50.ppc                                                                                                                                                                     5/30
      Installing       : python3-gpg-1.13.1-100.ppc                                                                                                                                                                          6/30
      Upgrading        : python3-libcomps-0.1.11-100.ppc                                                                                                                                                                     7/30
      Upgrading        : dnf-data-4.2.17-64_51.ppc                                                                                                                                                                           8/30
      Running scriptlet: dnf-data-4.2.17-64_51.ppc                                                                                                                                                                           8/30
      Upgrading        : python3-dnf-4.2.17-64_51.ppc                                                                                                                                                                        9/30
      Upgrading        : dnf-4.2.17-64_51.ppc                                                                                                                                                                               10/30
      Upgrading        : p11-kit-0.23.22-1.ppc                                                                                                                                                                              11/30
      Upgrading        : p11-kit-tools-0.23.22-1.ppc                                                                                                                                                                        12/30
      Upgrading        : ca-certificates-2021.2.52-3.ppc                                                                                                                                                                    13/30
      Running scriptlet: ca-certificates-2021.2.52-3.ppc                                                                                                                                                                    13/30
      Upgrading        : dnf-automatic-4.2.17-64_51.ppc                                                                                                                                                                     14/30
      Upgrading        : python3-librepo-1.11.0-100.ppc                                                                                                                                                                     15/30
      Cleanup          : python3-librepo-1.11.0-64_1.ppc                                                                                                                                                                    16/30
      Running scriptlet: dnf-automatic-4.2.17-64_4.noarch                                                                                                                                                                   17/30
      Cleanup          : dnf-automatic-4.2.17-64_4.noarch                                                                                                                                                                   17/30
      Running scriptlet: dnf-automatic-4.2.17-64_4.noarch                                                                                                                                                                   17/30
      Running scriptlet: dnf-4.2.17-64_4.noarch                                                                                                                                                                             18/30
      Cleanup          : dnf-4.2.17-64_4.noarch                                                                                                                                                                             18/30
      Running scriptlet: dnf-4.2.17-64_4.noarch                                                                                                                                                                             18/30
      Cleanup          : python3-dnf-4.2.17-64_4.noarch                                                                                                                                                                     19/30
      Cleanup          : python3-hawkey-0.39.1-64_3.ppc                                                                                                                                                                     20/30
      Cleanup          : python3-libdnf-0.39.1-64_3.ppc                                                                                                                                                                     21/30
      Running scriptlet: libdnf-0.39.1-64_3.ppc                                                                                                                                                                             22/30
      Cleanup          : libdnf-0.39.1-64_3.ppc                                                                                                                                                                             22/30
      Cleanup          : python3-libcomps-0.1.11-64_1.ppc                                                                                                                                                                   23/30
      Cleanup          : ca-certificates-2020.06.01-0.ppc                                                                                                                                                                   24/30
      Running scriptlet: ca-certificates-2020.06.01-0.ppc                                                                                                                                                                   24/30
      Cleanup          : p11-kit-tools-0.23.16-0.ppc                                                                                                                                                                        25/30
      Cleanup          : p11-kit-0.23.16-0.ppc                                                                                                                                                                              26/30
      Running scriptlet: python3-3.7.9-0.ppc                                                                                                                                                                                27/30
      Cleanup          : python3-3.7.9-0.ppc                                                                                                                                                                                27/30
      Cleanup          : librepo-1.11.0-64_1.ppc                                                                                                                                                                            28/30
      Cleanup          : dnf-data-4.2.17-64_4.noarch                                                                                                                                                                        29/30
      Obsoleting       : python3-gpgme-1.13.1-64_1.ppc                                                                                                                                                                      30/30
      Running scriptlet: ca-certificates-2021.2.52-3.ppc                                                                                                                                                                    30/30
      Verifying        : python3-gpg-1.13.1-100.ppc                                                                                                                                                                          1/30
      Verifying        : python3-gpgme-1.13.1-64_1.ppc                                                                                                                                                                       2/30
      Verifying        : ca-certificates-2021.2.52-3.ppc                                                                                                                                                                     3/30
      Verifying        : ca-certificates-2020.06.01-0.ppc                                                                                                                                                                    4/30
      Verifying        : librepo-1.11.0-100.ppc                                                                                                                                                                              5/30
      Verifying        : librepo-1.11.0-64_1.ppc                                                                                                                                                                             6/30
      Verifying        : p11-kit-0.23.22-1.ppc                                                                                                                                                                               7/30
      Verifying        : p11-kit-0.23.16-0.ppc                                                                                                                                                                               8/30
      Verifying        : p11-kit-tools-0.23.22-1.ppc                                                                                                                                                                         9/30
      Verifying        : p11-kit-tools-0.23.16-0.ppc                                                                                                                                                                        10/30
      Verifying        : python3-3.7.12-1.ppc                                                                                                                                                                               11/30
      Verifying        : python3-3.7.9-0.ppc                                                                                                                                                                                12/30
      Verifying        : python3-libcomps-0.1.11-100.ppc                                                                                                                                                                    13/30
      Verifying        : python3-libcomps-0.1.11-64_1.ppc                                                                                                                                                                   14/30
      Verifying        : python3-librepo-1.11.0-100.ppc                                                                                                                                                                     15/30
      Verifying        : python3-librepo-1.11.0-64_1.ppc                                                                                                                                                                    16/30
      Verifying        : dnf-4.2.17-64_51.ppc                                                                                                                                                                               17/30
      Verifying        : dnf-4.2.17-64_4.noarch                                                                                                                                                                             18/30
      Verifying        : dnf-automatic-4.2.17-64_51.ppc                                                                                                                                                                     19/30
      Verifying        : dnf-automatic-4.2.17-64_4.noarch                                                                                                                                                                   20/30
      Verifying        : dnf-data-4.2.17-64_51.ppc                                                                                                                                                                          21/30
      Verifying        : dnf-data-4.2.17-64_4.noarch                                                                                                                                                                        22/30
      Verifying        : libdnf-0.39.1-64_50.ppc                                                                                                                                                                            23/30
      Verifying        : libdnf-0.39.1-64_3.ppc                                                                                                                                                                             24/30
      Verifying        : python3-dnf-4.2.17-64_51.ppc                                                                                                                                                                       25/30
      Verifying        : python3-dnf-4.2.17-64_4.noarch                                                                                                                                                                     26/30
      Verifying        : python3-hawkey-0.39.1-64_50.ppc                                                                                                                                                                    27/30
      Verifying        : python3-hawkey-0.39.1-64_3.ppc                                                                                                                                                                     28/30
      Verifying        : python3-libdnf-0.39.1-64_50.ppc                                                                                                                                                                    29/30
      Verifying        : python3-libdnf-0.39.1-64_3.ppc                                                                                                                                                                     30/30
    
    Upgraded:
      ca-certificates-2021.2.52-3.ppc  librepo-1.11.0-100.ppc          p11-kit-0.23.22-1.ppc      p11-kit-tools-0.23.22-1.ppc  python3-3.7.12-1.ppc          python3-libcomps-0.1.11-100.ppc  python3-librepo-1.11.0-100.ppc
      dnf-4.2.17-64_51.ppc             dnf-automatic-4.2.17-64_51.ppc  dnf-data-4.2.17-64_51.ppc  libdnf-0.39.1-64_50.ppc      python3-dnf-4.2.17-64_51.ppc  python3-hawkey-0.39.1-64_50.ppc  python3-libdnf-0.39.1-64_50.ppc
    
    Installed:
      python3-gpg-1.13.1-100.ppc
    
    Complete!
    
    
    ######################################################################################
    
    :/tmp#dnf
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-022 Cannot load module /opt/freeware/lib64/python3.7/site-packages/libdnf/_common_types.so.
            0509-150   Dependent module /opt/freeware/lib64/libsmartcols.a(libsmartcols.so.1) could not be loaded.
            0509-152   Member libsmartcols.so.1 is not found in archive
    


    Do you have any clue?

    Thanks in advance.

    Best regards,



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------


  • 2.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Wed December 07, 2022 08:49 AM
    Hi Joerg

    1. What were the errors after the TL1 update?
    2. How did you remove the packages? 
    3. Did you reinstall rpm.rte before you ran the dnf install script?
    4. Do you have any error logs from the dnf or AIX updates?


    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 3.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Wed December 07, 2022 09:14 AM

    Hi Jan,

    the migration from AIX 7.2 TL5 to AIX 7.3 TL1 had no errors... it run smoothly.

    The package removal was with rpm -e (mostly with the option --nodeps) and reinstalling the dnf packages with the official install script.
    The installation had no errors at all...
    Also the update of the rpm packages run without any error. Only when I start dnf after the update it is not working anymore.

    I already tried to uninstall dnf and reinstall it. Then it works until I update the packages again.

    Best regards,



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 4.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Wed December 07, 2022 10:42 AM
    Hi Joerg,

    Looks like you upgraded from AIX 7.2 to AIX 7.3
    Did you follow steps as mentioned in the following blog ?
    https://community.ibm.com/community/user/power/blogs/sangamesh-mallayya1/2022/01/10/aix-migration-with-dnf?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9


    ------------------------------
    SANKET RATHI
    ------------------------------



  • 5.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 02:19 AM

    Hello Sanket,

    yes, I tried it this way first, but the installer script stops at the first package installed that is newer the packages in the dnf_bungle_aix_73.tar.
    So it never installs dnf in 64bit version. So I started to uninstall manually all packages related to dnf and run the install script again. That way works fine and dnf is running, but only until the first "dnf update".
    This update seems to break dnf...

    best regards,
    Joerg



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 6.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 03:51 AM
    Hi Joerg,

    In the dnf update do you see libsmartcols-2.34-100 is being listed ?
    I think somehow you still have the libsmartcols-2.34-64_1 from the dnf_bundle instead from the repository.

    ------------------------------
    SANGAMESH
    ------------------------------



  • 7.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 04:38 AM
    Hello Sangamesh,

    thanks for looking into it...
    I think you asked the right question: 

    :/root#rpm -q libsmartcols
    libsmartcols-2.34-100.ppc
    libsmartcols-2.34-64_1.ppc​

    Both versions are installed. It seems the update didn't remove the old version, but only the libsmartcols-2.34-100 is used.

    I also couldn't find the 64bit version in the toolbox repo website...

    Where can I find it?

    best regards,

    Jörg




    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 8.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 04:50 AM

    I now uninstalled libsmartcols-2.34-100.ppc with rpm -e --nodeps and installed the version from the dnf_bundle.tar file.

    /#rpm -ihv libsmartcols-2.34-64_1.aix7.1.ppc.rpm
    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libsmartcols-2.34-64_1           ################################# [100%]
    
    
    /#updtvpkg
    Please wait...
    
    /#dnf
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-022 Cannot load module /opt/freeware/lib64/python3.7/site-packages/libdnf/_common_types.so.
            0509-150   Dependent module /opt/freeware/lib64/libsmartcols.a(libsmartcols.so.1) could not be loaded.
            0509-152   Member libsmartcols.so.1 is not found in archive
    
    /#rpm -qf /opt/freeware/lib64/libsmartcols.a
    libsmartcols-2.34-64_1.ppc
    
    /#rpm -q --filesbypkg libsmartcols
    libsmartcols              /opt/freeware/include/libsmartcols/libsmartcols.h
    libsmartcols              /opt/freeware/lib64/libsmartcols.a
    libsmartcols              /opt/freeware/lib64/pkgconfig/smartcols.pc
    libsmartcols              /opt/freeware/licenses/libsmartcols-2.34
    libsmartcols              /opt/freeware/licenses/libsmartcols-2.34/COPYING
    


    I still don't understand what is wrong...

    Maybe you see the error...

    Best regards,

    joerg



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 9.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 05:11 AM

    me again :-)

    I think I see the error now... multiple packages from the dnf_bundle were not updated as you mentioned...

    After updating libsmartcols to libsmartcols-2.34-100, I see another error with the same problem:

    p#dnf
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-022 Cannot load module /opt/freeware/lib64/librepo.a(librepo.so.0).
            0509-150   Dependent module /opt/freeware/lib64/libzck.a(libzck.so.1) could not be loaded.
            0509-152   Member libzck.so.1 is not found in archive
    
    :/tmp#rpm -qf /opt/freeware/lib64/libzck.a
    zchunk-libs-1.1.4-64_2.ppc
    
    :/tmp#rpm -q zchunk-libs
    zchunk-libs-1.1.4-101.ppc
    zchunk-libs-1.1.4-64_2.ppc
    


    Again, both versions are installed... So how can could happen?



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 10.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 05:17 AM
    Hi Joerg

    With the updated DNF and it's dependencies  you need to have
    libsmartcols-2.34-100.ppc​

    You can find this here.
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/libsmartcols/

    We have built this version such that the archive will have both 32 and 64-bit version.

    ------------------------------
    SANGAMESH
    ------------------------------



  • 11.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 05:23 AM
    Thanks Sangamesh.
    I already installed it and also the zchunk-lib.
    Now it is still not working with a complete different error:

    :/tmp#dnf
    terminate called after throwing an instance of 'std::runtime_error'
      what():  os-release file not found
    IOT/Abort trap
    ​


    I'm out of ideas...
    What would be your next step?

    Best regards,

    Joerg



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 12.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 06:09 AM
    Hi Joerg,

    Looks like you still have an some rpms from dnf bundle.

    Was your first dnf update clean or did you see some error ?

    ------------------------------
    SANGAMESH
    ------------------------------



  • 13.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 06:52 AM
      |   view attached
    In the first dnf update I run, I experienced ca-certificate failed to install...

    I added the complete output with all what I did to this thread. Maybe you find some time to check whats wrong.
    Many thanks for your support in advance.

    best regards,
    Joerg

    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------

    Attachment(s)



  • 14.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 06:33 AM
    One possibility why you are seeing same package with multiple version  is if we use --force option to the rpm install command
    if the another version of rpm package is already installed.

    ------------------------------
    SANGAMESH
    ------------------------------



  • 15.  RE: dnf not working on AIX 7.3 after dnf update

    Posted Fri December 09, 2022 08:07 AM

    Hello Sangamesh,

    I now found a way how it will work after the migration...

    Uninstall all packages that will be installed by the dnf_bundle, then install the bundle and update.
    For now it works. I will do further testings one some test systems and come back to you if I got in trouble again.

    Many thanks to you all...

    Best regards.
    Joerg



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------