AIX Open Source

 View Only
  • 1.  Fixing DNF after AIX Upgrade

    Posted Fri February 02, 2024 05:11 PM

    Greetings All!

    I am following the well documented steps written by Sangamesh to get DNF working after I upgraded AIX 7.2 to AIX 7.3. However, I am getting the below dependency error.  Has anyone seen this or have any suggestions on how to resolve?  Thanks!


    7300-01-02-2319
    blm-nim01->root:[/]updtvpkg
    Please wait...
    blm-nim01->root:[/]rpm -qa|grep -i yum
    yum-3.4.3-7.noarch
    yum-metadata-parser-1.1.4-2.ppc
    blm-nim01->root:[/tmp]./dnf_aixtoolbox.sh -d
    YUM is already installed in the machine.
    Please use the option -y to update to YUM4(dnf).
    blm-nim01->root:[/tmp]./dnf_aixtoolbox.sh -y
    Attempting download of dnf_bundle_aix_73.tar ...
    Saving to 'dnf_bundle_aix_73.tar'...
    223 MB received in 5 minutes (713 KB/sec)

    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, 16091 bytes, 32 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_3.aix7.1.ppc.rpm, 3723351 bytes, 7273 tape blocks
    x rpmlibs32-4.18.1.0-32_3.aix7.1.ppc.rpm, 3723272 bytes, 7273 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 installed

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

    ca-certificates-2016.10.7-2.ppc will be updated to ca-certificates-2023.2.60-0
    dnf-4.2.17-64_6 will be installed
    dnf-automatic-4.2.17-64_6 will be installed
    dnf-data-4.2.17-64_6 will be installed
    libcomps-0.1.15-64_1 will be installed
    libdnf-0.39.1-64_5 will be installed
    libmodulemd-1.5.2-64_2 will be installed
    librepo-1.11.0-64_2 will be installed
    libsmartcols-2.34-64_1 will be installed
    libsolv-0.7.9-64_4 will be installed
    libzstd-1.4.4-64_2 will be installed
    p11-kit-0.23.22-0 will be installed
    p11-kit-tools-0.23.22-0 will be installed
    python3-3.9.16-0 will be installed
    python3-dateutil-2.8.0-2 will be installed
    python3-dnf-4.2.17-64_6 will be installed
    python3-dnf-plugin-migrate-4.0.16-64_2 will be installed
    python3-dnf-plugins-core-4.0.16-64_2 will be installed
    python3-gpg-1.13.1-64_3 will be installed
    python3-hawkey-0.39.1-64_5 will be installed
    python3-libcomps-0.1.15-64_1 will be installed
    python3-libdnf-0.39.1-64_5 will be installed
    python3-librepo-1.11.0-64_2 will be installed
    python3-six-1.13.0-2 will be installed
    python3.9-3.9.16-0 will be installed
    python3.9-dateutil-2.8.0-2 will be installed
    python3.9-dnf-4.2.17-64_6 will be installed
    python3.9-dnf-plugin-migrate-4.0.16-64_2 will be installed
    python3.9-dnf-plugins-core-4.0.16-64_2 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
    python3.9-six-1.13.0-2 will be installed
    rpm-python3-4.15.1-64_4 will be installed
    rpm-python3.9-4.15.1-64_4 will be installed
    rpmlibs32-4.15.1.0-32_3 will be installed
    zchunk-libs-1.1.4-64_3 will be installed

    Installing the packages...

    error: Failed dependencies:
            libncurses.so is needed by rpmlibs32-4.15.1.0-32_3.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.

    You can try installing the downloaded dnf packages from /tmp/dnf-20240202154812 manually.



    ------------------------------
    Gary Rafidi
    ------------------------------


  • 2.  RE: Fixing DNF after AIX Upgrade

    Posted Mon February 05, 2024 12:27 AM

    Hi Gary,

    Please check if you have ncurses and python2 rpm packages installed.



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



  • 3.  RE: Fixing DNF after AIX Upgrade

    Posted Tue February 06, 2024 10:41 AM

    Hello SANGAMESH!

     

    It appears I do not:

    blm-nim01->root:[/]rpm -qa|grep -i ncurses

    blm-nim01->root:[/]rpm -qa |grep python2

    blm-nim01->root:[/]

     

    With DNF currently broke I am wondering what would be the easiest way to get these installed if that's what's needed?   Sometimes there is an endless list of dependencies, so not sure  what I am dealing with in this case.

     

     

    "The big money is not in the buying and selling, but in the waiting."

     

    Charlie Munger

     






  • 4.  RE: Fixing DNF after AIX Upgrade

    Posted Tue February 06, 2024 12:36 PM

    Also I will mention this is my nim server and I am the primary user so I have no concerns with what's currently installed, so if there is an easy way to wipe the slate clean by removing the existing configuration  an start with a fresh install now that I am on AIX 7.3 that would work for me just as well.

     

    Thanks

     






  • 5.  RE: Fixing DNF after AIX Upgrade

    Posted Tue February 06, 2024 02:24 PM

    I've had good luck reinstalling the rpm lpp, forcefully if need be. When you overwrite an lpp, you can't install the dependent software at the same time. Just keep that in mind.

    Then, just the same procedure as you've done above.



    ------------------------------
    Mario
    ------------------------------



  • 6.  RE: Fixing DNF after AIX Upgrade

    Posted Sat February 24, 2024 02:56 PM

    So here is my follow-up question.  I am pretty sure the below error is being generated on a fresh install of dnf  on my AIX 7.3 Server because ncurses  is not currently installed, thus the libncurses.so, library does not exist as its part of ncurses.  However, I am pretty sure I have done cold installs of dnf on other servers that also did not have ncurses installed, and the dnf install process actually took care of that and installed it.  What would cause this behavior for it to be installed by dnf on some servers and not this one?   I am running it with the -y flag.

    Installing the packages...

    error: Failed dependencies:

            libncurses.so is needed by rpmlibs32-4.15.1.0-32_3.ppc



    ------------------------------
    Gary Rafidi
    ------------------------------



  • 7.  RE: Fixing DNF after AIX Upgrade

    Posted Mon February 26, 2024 12:35 PM

    Great article <u>batman123</u>



    ------------------------------
    one threeseven
    ------------------------------



  • 8.  RE: Fixing DNF after AIX Upgrade