AIX Open Source

 View Only
  • 1.  DNF Errors after AIX 7.3 TL01 was updated AIX 7.3 TL02

    Posted 14 days ago

    We had a working local DNF repository created when we installed AIX 7.3 TL01. We updated the OS to AIX 7.3 TL02 without first updating DNF and related python 3.9 updates. rpm.rte is at 4.18.1.2001 and will be updated to 4.18.1.2003 tomrrow. When we run any dnf command we get the following error:

    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 31, in <module>
        from dnf.comps import CompsQuery
      File "/opt/freeware/lib/python3.7/site-packages/dnf/comps.py", line 27, in <module>
        from dnf.exceptions import CompsError
      File "/opt/freeware/lib/python3.7/site-packages/dnf/exceptions.py", line 22, in <module>
        import dnf.util
      File "/opt/freeware/lib/python3.7/site-packages/dnf/util.py", line 30, in <module>
        import dnf.callback
      File "/opt/freeware/lib/python3.7/site-packages/dnf/callback.py", line 22, in <module>
        import dnf.yum.rpmtrans
      File "/opt/freeware/lib/python3.7/site-packages/dnf/yum/rpmtrans.py", line 26, in <module>
        import rpm
      File "/opt/freeware/lib64/python3.7/site-packages/rpm/__init__.py", line 38, in <module>
        from rpm._rpm import *
    ImportError:    0509-022 Cannot load module /opt/freeware/lib64/python3.7/site-packages/rpm/_rpm.so.
            0509-150   Dependent module libnss3.so could not be loaded.
            0509-022 Cannot load module libnss3.so.
            0509-026 System error: A file or directory in the path name does not exist.

    We downloaded the latest toolbox ISO and tried running the dnf_aixtoolbox_local.sh and it fails with the following error:

    Copying dnf_bundle_aix_73.tar to /tmp/dnf-20240501120214 .....

    Extracting dnf_bundle_aix_73.tar ...
    x ca-certificates-2023.2.60-0.aix7.1.ppc.rpm, 991206 bytes, 1936 tape blocks
    x dnf-4.2.17-64_6.aix7.1.noarch.rpm, 11392 bytes, 23 tape blocks
    x dnf-automatic-4.2.17-64_6.aix7.1.noarch.rpm, 12850 bytes, 26 tape blocks
    x dnf-data-4.2.17-64_6.aix7.1.noarch.rpm, 26209 bytes, 52 tape blocks
    x extra_list, 384 bytes, 1 tape blocks
    x install_dnf.sh, 15769 bytes, 31 tape blocks
    x libcomps-0.1.15-64_1.aix7.1.ppc.rpm, 1312174 bytes, 2563 tape blocks
    x libdnf-0.39.1-64_5.aix7.1.ppc.rpm, 16515586 bytes, 32258 tape blocks
    x libmodulemd-1.5.2-64_2.aix7.1.ppc.rpm, 3562173 bytes, 6958 tape blocks
    x librepo-1.11.0-64_2.aix7.1.ppc.rpm, 4010051 bytes, 7833 tape blocks
    x libsmartcols-2.34-64_1.aix7.1.ppc.rpm, 187658 bytes, 367 tape blocks
    x libsolv-0.7.9-64_4.aix7.1.ppc.rpm, 1556772 bytes, 3041 tape blocks
    x libzstd-1.4.4-64_2.aix7.1.ppc.rpm, 473729 bytes, 926 tape blocks
    x p11-kit-0.23.22-0.aix7.1.ppc.rpm, 2148539 bytes, 4197 tape blocks
    x p11-kit-tools-0.23.22-0.aix7.1.ppc.rpm, 274086 bytes, 536 tape blocks
    x python3-3.9.16-0.aix7.1.ppc.rpm, 8920 bytes, 18 tape blocks
    x python3-dateutil-2.8.0-2.aix7.1.noarch.rpm, 6128 bytes, 12 tape blocks
    x python3-devel-3.9.16-0.aix7.1.ppc.rpm, 7699 bytes, 16 tape blocks
    x python3-dnf-4.2.17-64_6.aix7.1.noarch.rpm, 7963 bytes, 16 tape blocks
    x python3-dnf-plugin-migrate-4.0.16-64_2.aix7.1.noarch.rpm, 6580 bytes, 13 tape blocks
    x python3-dnf-plugins-core-4.0.16-64_2.aix7.1.noarch.rpm, 6792 bytes, 14 tape blocks
    x python3-gpg-1.13.1-64_3.aix7.1.ppc.rpm, 5724 bytes, 12 tape blocks
    x python3-hawkey-0.39.1-64_5.aix7.1.ppc.rpm, 5756 bytes, 12 tape blocks
    x python3-idle-3.9.16-0.aix7.1.ppc.rpm, 7283 bytes, 15 tape blocks
    x python3-libcomps-0.1.15-64_1.aix7.1.ppc.rpm, 13276 bytes, 26 tape blocks
    x python3-libdnf-0.39.1-64_5.aix7.1.ppc.rpm, 5756 bytes, 12 tape blocks
    x python3-librepo-1.11.0-64_2.aix7.1.ppc.rpm, 12776 bytes, 25 tape blocks
    x python3-six-1.13.0-2.aix7.1.noarch.rpm, 5820 bytes, 12 tape blocks
    x python3-test-3.9.16-0.aix7.1.ppc.rpm, 6228 bytes, 13 tape blocks
    x python3-tkinter-3.9.16-0.aix7.1.ppc.rpm, 6120 bytes, 12 tape blocks
    x python3.9-3.9.16-0.aix7.1.ppc.rpm, 56782290 bytes, 110903 tape blocks
    x python3.9-dateutil-2.8.0-2.aix7.1.noarch.rpm, 310485 bytes, 607 tape blocks
    x python3.9-devel-3.9.16-0.aix7.1.ppc.rpm, 19947643 bytes, 38961 tape blocks
    x python3.9-dnf-4.2.17-64_6.aix7.1.noarch.rpm, 197158 bytes, 386 tape blocks
    x python3.9-dnf-plugin-migrate-4.0.16-64_2.aix7.1.noarch.rpm, 8297 bytes, 17 tape blocks
    x python3.9-dnf-plugins-core-4.0.16-64_2.aix7.1.noarch.rpm, 33701 bytes, 66 tape blocks
    x python3.9-gpg-1.13.1-64_3.aix7.1.ppc.rpm, 1474348 bytes, 2880 tape blocks
    x python3.9-hawkey-0.39.1-64_5.aix7.1.ppc.rpm, 3339964 bytes, 6524 tape blocks
    x python3.9-idle-3.9.16-0.aix7.1.ppc.rpm, 2328852 bytes, 4549 tape blocks
    x python3.9-libcomps-0.1.15-64_1.aix7.1.ppc.rpm, 1075760 bytes, 2102 tape blocks
    x python3.9-libdnf-0.39.1-64_5.aix7.1.ppc.rpm, 24255270 bytes, 47374 tape blocks
    x python3.9-librepo-1.11.0-64_2.aix7.1.ppc.rpm, 2471631 bytes, 4828 tape blocks
    x python3.9-six-1.13.0-2.aix7.1.noarch.rpm, 45630 bytes, 90 tape blocks
    x python3.9-test-3.9.16-0.aix7.1.ppc.rpm, 33159212 bytes, 64765 tape blocks
    x python3.9-tkinter-3.9.16-0.aix7.1.ppc.rpm, 1162787 bytes, 2272 tape blocks
    x rpm-python3-4.15.1-64_4.aix7.1.ppc.rpm, 9704 bytes, 19 tape blocks
    x rpm-python3.9-4.15.1-64_4.aix7.1.ppc.rpm, 100570 bytes, 197 tape blocks
    x rpm.rte, 47110144 bytes, 92012 tape blocks
    x rpmlibs32-4.15.1.0-32_2.aix7.1.ppc.rpm, 732104 bytes, 1430 tape blocks
    x yum-4.2.17-64_6.aix7.1.noarch.rpm, 11234 bytes, 22 tape blocks
    x zchunk-1.1.4-64_3.aix7.1.ppc.rpm, 491789 bytes, 961 tape blocks
    x zchunk-devel-1.1.4-64_3.aix7.1.ppc.rpm, 19314 bytes, 38 tape blocks
    x zchunk-libs-1.1.4-64_3.aix7.1.ppc.rpm, 560016 bytes, 1094 tape blocks

    Installing rpm.rte at the latest version ...
    This may take several minutes depending on the number of rpms installed...
    +-----------------------------------------------------------------------------+
                        Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...

    WARNINGS
    --------
      Problems described in this section are not likely to be the source of any
      immediate or serious failures, but further actions may be necessary or
      desired.

      Already Installed
      -----------------
      The number of selected filesets that are either already installed
      or effectively installed through superseding filesets is 1.  See
      the summaries at the end of this installation for details.

      NOTE:  Base level filesets may be reinstalled using the "Force"
      option (-F flag), or they may be removed, using the deinstall or
      "Remove Software Products" facility (-u flag), and then reinstalled.

      << End of Warning Section >>

    +-----------------------------------------------------------------------------+
                       BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
        1  Selected to be installed, of which:
            1  Already installed (directly or via superseding filesets)
      ----
        0  Total to be installed


    Pre-installation Failure/Warning Summary
    ----------------------------------------
    Name                      Level           Pre-installation Failure/Warning
    -------------------------------------------------------------------------------
    rpm.rte                   4.15.1.2009     Already superseded by 4.18.1.2001

    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.

    ca-certificates-2021.2.52-3.ppc will be updated to ca-certificates-2023.2.60-0
    Skipping dnf-4.2.17-64_6 as higher version dnf-4.2.17-64_51.ppc is installed.
    Skipping dnf-automatic-4.2.17-64_6 as higher version dnf-automatic-4.2.17-64_51.ppc is installed.
    Skipping dnf-data-4.2.17-64_6 as higher version dnf-data-4.2.17-64_51.ppc is installed.
    libcomps-0.1.11-100.ppc will be updated to libcomps-0.1.15-64_1
    Skipping libdnf-0.39.1-64_5 as higher version libdnf-0.39.1-64_50.ppc is installed.
    Skipping libmodulemd-1.5.2-64_2 as higher version libmodulemd-1.5.2-100.ppc is installed.
    Skipping librepo-1.11.0-64_2 as higher version librepo-1.11.0-100.ppc is installed.
    Skipping libsmartcols-2.34-64_1 as higher version libsmartcols-2.34-100.ppc is installed.
    Skipping libsolv-0.7.9-64_4 as higher version libsolv-0.7.9-64_50.ppc is installed.
    Skipping libzstd-1.4.4-64_2 as higher version libzstd-1.5.2-1.ppc is installed.
    Skipping p11-kit-0.23.22-0 as higher version p11-kit-0.23.22-1.ppc is installed.
    Skipping p11-kit-tools-0.23.22-0 as higher version p11-kit-tools-0.23.22-1.ppc is installed.
    python3-3.7.12-1.ppc will be updated to python3-3.9.16-0
    Skipping python3-dnf-4.2.17-64_6 as higher version python3-dnf-4.2.17-64_51.ppc is installed.
    Skipping python3-gpg-1.13.1-64_3 as higher version python3-gpg-1.13.1-100.ppc is installed.
    Skipping python3-hawkey-0.39.1-64_5 as higher version python3-hawkey-0.39.1-64_50.ppc is installed.
    python3-libcomps-0.1.11-100.ppc will be updated to python3-libcomps-0.1.15-64_1
    Skipping python3-libdnf-0.39.1-64_5 as higher version python3-libdnf-0.39.1-64_50.ppc is installed.
    Skipping python3-librepo-1.11.0-64_2 as higher version python3-librepo-1.11.0-100.ppc is installed.
    python3.9-3.9.16-0 will be installed
    python3.9-dnf-4.2.17-64_6 will be installed
    python3.9-gpg-1.13.1-64_3 will be installed
    python3.9-hawkey-0.39.1-64_5 will be installed
    python3.9-libcomps-0.1.15-64_1 will be installed
    python3.9-libdnf-0.39.1-64_5 will be installed
    python3.9-librepo-1.11.0-64_2 will be installed
    rpm-python3-4.15.1-64_2.ppc will be updated to rpm-python3-4.15.1-64_4
    rpm-python3.9-4.15.1-64_4 will be installed
    Skipping zchunk-libs-1.1.4-64_3 as higher version zchunk-libs-1.1.4-101.ppc is installed.

    Installing the packages...

    error: Failed dependencies:
            libpython3.7m.so is needed by (installed) python3-libdnf-0.39.1-64_50.ppc
            libpython3.7m.so is needed by (installed) python3-hawkey-0.39.1-64_50.ppc
            libpython3.7m.so is needed by (installed) python3-librepo-1.11.0-100.ppc
            dnf-data = 4.2.17-64_6 is needed by python3.9-dnf-4.2.17-64_6.noarch
            libdnf = 0.39.1-64_5 is needed by python3.9-hawkey-0.39.1-64_5.ppc
            libdnf = 0.39.1-64_5 is needed by python3.9-libdnf-0.39.1-64_5.ppc
            librepo = 1.11.0-64_2 is needed by python3.9-librepo-1.11.0-64_2.ppc

    dnf installation failed.
    If the failure was due to a space issue, increase the size of /opt and re-run the script again.
    Another reason for failure could be mixing of Toolbox packages and packages from other sources.

    Please check the failure error, correct it and retry again.

    IF you could offer any assistance in aiding us to rectify this issue, it would be gratefully appreciated.

    Thank you in advance



    ------------------------------
    Brian Platnick
    ------------------------------



  • 2.  RE: DNF Errors after AIX 7.3 TL01 was updated AIX 7.3 TL02

    Posted 13 days ago
    Edited by Rich Jefferies 13 days ago

    Hi Brian.

    There are a few matches for this on this community. But it sounds like you had the same issue as I did.
    The way around this is to update DNF from the latest toolbox set before the AIX v7.3 TL02 update.
    However that's a bit late now, obviously ;^)

    The answer is in the Failed dependancies list:

    error: Failed dependencies:
            libpython3.7m.so is needed by (installed) python3-libdnf-0.39.1-64_50.ppc
            libpython3.7m.so is needed by (installed) python3-hawkey-0.39.1-64_50.ppc
            libpython3.7m.so is needed by (installed) python3-librepo-1.11.0-100.ppc
            dnf-data = 4.2.17-64_6 is needed by python3.9-dnf-4.2.17-64_6.noarch
            libdnf = 0.39.1-64_5 is needed by python3.9-hawkey-0.39.1-64_5.ppc
            libdnf = 0.39.1-64_5 is needed by python3.9-libdnf-0.39.1-64_5.ppc
            librepo = 1.11.0-64_2 is needed by python3.9-librepo-1.11.0-64_2.ppc

    Review the "needed by" packages along with hints from https://community.ibm.com/community/user/power/discussion/migrating-to-python39-for-aix-toolbox-python3-ecosystem#bm894a7503-8015-4bf4-a5d5-197f17645d3b

    I needed to uninstall each of those packages - I took my start point from the instructions in the link from answer #45 but needed to take a few out from the uninstall list as a few of them were not present on my system.

     #########################

    This problem happens when we do dnf update without updating rpm.rte to the latest one as per the recommendation.

    The required packages aren't in sync.

    Here libcomps has been updated to python3-libcomps-0.1.15-101 but failed to update python3-3.9.16-2.ppc.

    python3-libcomps-0.1.15-101 isn't compatible with python3-3.7.x.

    Hence it's necessary to update both python3.9 and python3-libcomps.

    To workaround current situation one option would be to remove some of the DNF specific packages.

    rpm -e libcomps python3.9-libcomps python3-libcomps python3-dnf dnf dnf-automatic dnf-data libdnf python3-hawkey python3-libdnf

    And run dnf_aixtoolbox.sh script which should take care of updating to latest rpm.rte and installing required packages and then do the "dnf update".

    ##########################

     I did try uninstalling packages one at a time but hit dependencies, so it works better with the full list in one command - in my case:
    rpm -e libcomps python3-libcomps python3-dnf dnf dnf-automatic dnf-data libdnf python3-hawkey python3-libdnf librepo python3-librepo

    When I re-tried the install I then hit an error about the python version so uninstalled that too:
    rpm -e python3.9-3.9.18-1.ppc
     

    After removing Python the install script worked cleanly.

    Hope this helps, good luck !


    Rich



    ------------------------------
    Rich Jefferies
    ------------------------------



  • 3.  RE: DNF Errors after AIX 7.3 TL01 was updated AIX 7.3 TL02

    Posted 12 days ago

    Thank you very much.  Your suggested solutions and instructions helped us to resolve this issue.

    Gratefully appreciated.



    ------------------------------
    Brian Platnick
    ------------------------------



  • 4.  RE: DNF Errors after AIX 7.3 TL01 was updated AIX 7.3 TL02

    IBM Champion
    Posted 13 days ago

    Been there too ;) 

    Basically the steps Rich described, should do the trick.

    In my case I had to do couple of "trials and errors" before it started to work.

    In short: 

    • Remove all dnf-related packages
    • Remove all python packages
    • + Remove also ALL other  packages of which  dnf_bundle_aix_73 says "Skipping" on your error (otherwise those will haunt U again on re-installation..) 

    Then have the latest dnf_bundle_aix_73.tar ; extract it and run  install_dnf.sh -y 

    Not to mention to have all possible backups in store before starting ... :D 



    ------------------------------
    Tommi Sihvo, Lead Service Architect
    Tietoevry Tech Services
    email tommi.sihvo@tietoevry.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 5.  RE: DNF Errors after AIX 7.3 TL01 was updated AIX 7.3 TL02

    Posted 13 days ago

    Hi Brian,

    Yes. Whatever the suggestion Rich mentioned should work for you case.

    To avoid these errors later we always recommend users to update to latest toolbox packages ?

    Since you mentioned about local DNF repo, you had any restrictiond to update to latest DNF packages from AIX Toolbox ?



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



  • 6.  RE: DNF Errors after AIX 7.3 TL01 was updated AIX 7.3 TL02

    Posted 12 days ago

    Yes, Richard's suggestion worked for us.

    We mount a local repository because our server has not internet connectivity.

    We will make sure to have the latest ToolBox available for this eventuallity.

    Thank you again

    Sincerely



    ------------------------------
    Brian Platnick
    ------------------------------