Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Installation of DNF failed on AIX 7200-05-03-2136

    Posted Tue November 16, 2021 01:02 AM
    Hi
    i have tried to install DNF on AIX 7200-05-03-2136 but it failed for any reason....i have enough space in the filesystem
    Got this error:
    root@rb3zf01(??):/tmp/dnf $ ./install_dnf.sh -y


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

    ca-certificates-2020.06.01-0 is already installed
    dnf-4.2.17-64_2 is already installed
    dnf-automatic-4.2.17-64_2 is already installed
    dnf-data-4.2.17-64_2 is already installed
    libcomps-0.1.11-64_1 is already installed
    libdnf-0.39.1-64_2 is already installed
    libmodulemd-1.5.2-64_1 is already installed
    librepo-1.11.0-64_1 is already installed
    libsmartcols-2.34-64_1 is already installed
    libsolv-0.7.9-64_1 is already installed
    libzstd-1.4.4-64_1 is already installed
    Skipping p11-kit-0.23.16-0 as higher version p11-kit-0.23.16-1.ppc is installed.
    Skipping p11-kit-tools-0.23.16-0 as higher version p11-kit-tools-0.23.16-1.ppc is installed.
    python3-3.7.9-0 is already installed
    python3-devel-3.7.9-0 is already installed
    python3-dnf-4.2.17-64_2 is already installed
    python3-docs-3.7.9-0 is already installed
    python3-gpgme-1.13.1-64_1 is already installed
    python3-hawkey-0.39.1-64_2 is already installed
    python3-libcomps-0.1.11-64_1 is already installed
    python3-libdnf-0.39.1-64_2 is already installed
    python3-librepo-1.11.0-64_1 is already installed
    python3-test-3.7.9-0 is already installed
    python3-tools-3.7.9-0 is already installed
    rpm-python3-4.15.1-64_1 will be installed
    yum-4.2.17-64_2 is already installed
    zchunk-libs-1.1.4-64_1 is already installed

    Installing the packages...

    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Please make sure rpm.rte-4.15.1.2004 and higher version is installed.
    error: %prein(rpm-python3-4.15.1-64_1.ppc) scriptlet failed, exit status 1
    error: rpm-python3-4.15.1-64_1.ppc: install failed

    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.


    I have installed the latest rpm.rte :

    root@rb3zf01(??):/tmp/dnf $ lslpp -l|grep rpm
    rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
    rpm.rte 4.15.1.3 COMMITTED RPM Package Manager

    Thx for help
    vince



    ------------------------------
    Vincencio Michaelis
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Installation of DNF failed on AIX 7200-05-03-2136

    Posted Tue November 16, 2021 05:56 AM
    Hi Vincencio,

    Please download the dnf_bundle_aix_71_72.tar You have downloaded the AIX 7.3 dnf tar.
    Please remove the already installed dnf packages and install it from dnf_bundle_aix_71_72.tar.

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



  • 3.  RE: Installation of DNF failed on AIX 7200-05-03-2136

    Posted Tue November 16, 2021 06:18 AM

    Hello Sangamesh,
    thx for the update here... 
    vince



    ------------------------------
    Vincencio Michaelis
    ------------------------------



  • 4.  RE: Installation of DNF failed on AIX 7200-05-03-2136

    Posted Tue November 16, 2021 06:23 AM
    Hello Sangamesh
    after download and install got a new problem here:

    root@rb3zf01(??):/tmp/dnf $ ./install_dnf.sh -y

    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.3 Already installed



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

    ca-certificates-2020.06.01-0 is already installed
    Skipping dnf-4.2.17-32_1 as higher version dnf-4.2.17-64_2.noarch is installed.
    Skipping dnf-automatic-4.2.17-32_1 as higher version dnf-automatic-4.2.17-64_2.noarch is installed.
    Skipping dnf-data-4.2.17-32_1 as higher version dnf-data-4.2.17-64_2.noarch is installed.
    Skipping libcomps-0.1.11-32_1 as higher version libcomps-0.1.11-64_1.ppc is installed.
    Skipping libdnf-0.39.1-32_1 as higher version libdnf-0.39.1-64_2.ppc is installed.
    Skipping libmodulemd-1.5.2-32_1 as higher version libmodulemd-1.5.2-64_1.ppc is installed.
    Skipping librepo-1.11.0-32_1 as higher version librepo-1.11.0-64_1.ppc is installed.
    Skipping libsmartcols-2.34-32_1 as higher version libsmartcols-2.34-64_1.ppc is installed.
    Skipping libsolv-0.7.9-32_1 as higher version libsolv-0.7.9-64_1.ppc is installed.
    Skipping libzstd-1.4.4-32_1 as higher version libzstd-1.4.4-64_1.ppc is installed.
    Skipping p11-kit-0.23.16-0 as higher version p11-kit-0.23.16-1.ppc is installed.
    Skipping p11-kit-tools-0.23.16-0 as higher version p11-kit-tools-0.23.16-1.ppc is installed.
    python3-3.7.9-0 is already installed
    python3-devel-3.7.9-0 is already installed
    Skipping python3-dnf-4.2.17-32_1 as higher version python3-dnf-4.2.17-64_2.noarch is installed.
    python3-docs-3.7.9-0 is already installed
    Skipping python3-gpgme-1.13.1-32_1 as higher version python3-gpgme-1.13.1-64_1.ppc is installed.
    Skipping python3-hawkey-0.39.1-32_1 as higher version python3-hawkey-0.39.1-64_2.ppc is installed.
    Skipping python3-libcomps-0.1.11-32_1 as higher version python3-libcomps-0.1.11-64_1.ppc is installed.
    Skipping python3-libdnf-0.39.1-32_1 as higher version python3-libdnf-0.39.1-64_2.ppc is installed.
    Skipping python3-librepo-1.11.0-32_1 as higher version python3-librepo-1.11.0-64_1.ppc is installed.
    python3-test-3.7.9-0 is already installed
    python3-tools-3.7.9-0 is already installed
    rpm-python3-4.15.1-32_1 will be installed
    Skipping yum-4.2.17-32_1 as higher version yum-4.2.17-64_2.noarch is installed.
    Skipping zchunk-libs-1.1.4-32_1 as higher version zchunk-libs-1.1.4-64_1.ppc is installed.

    Installing the packages...

    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:rpm-python3-4.15.1-32_1 ################################# [100%]

    dnf installed successfully.
    Please run 'dnf update' to update packages to the latest level.

    Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
    RPM packages install files go under the path /opt.
    Hence it is recommended to always keep at least 512MB of free space in /var & /opt
    to avoid any download and installation/update failures.

    root@rb3zf01(??):/ $ dnf update
    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 librpm.so could not be loaded.
    0509-022 Cannot load module librpm.so.
    0509-026 System error: A file or directory in the path name does not exist.
    0509-022 Cannot load module /opt/freeware/lib64/python3.7/site-packages/libdnf/_common_types.so.
    0509-150 Dependent module /opt/freeware/lib64/python3.7/site-packages/libdnf/_common_types.so could not be loaded.
    root@rb3zf01(??):/ $ echo $PATH
    /usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/opt/csm/bin:/usr/java71_64/jre/bin:/usr/java71_64/bin:/usr/local/bin:/home/uc4batch/scripts:/usr/local/bin:/usr/dist/admin:/usr/scripts:/usr/scripts/utils:/opt/freeware/bin:/opt/freeware/sbin:/usr/local/bin:/usr/dist/admin:/usr/scripts:/usr/scripts/utils:/opt/freeware/bin:/opt/freeware/sbin:.
    root@rb3zf01(??):/ $ echo $LIBPATH

    root@rb3zf01(??):/ $

    ------------------------------
    Vincencio Michaelis
    ------------------------------



  • 5.  RE: Installation of DNF failed on AIX 7200-05-03-2136

    Posted Tue November 16, 2021 06:36 AM
    As I mentioned, please remove the already installed dnf and it's dependent packages and retry again.
    The one you installed from 7.3 are having higher version.

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



  • 6.  RE: Installation of DNF failed on AIX 7200-05-03-2136

    Posted Tue November 16, 2021 06:42 AM
    can you provide the commands to me pls?

    ------------------------------
    Vincencio Michaelis
    ------------------------------



  • 7.  RE: Installation of DNF failed on AIX 7200-05-03-2136

    Posted Tue November 16, 2021 07:13 AM
    1. rpm -e `(rpm -qa | egrep "\-64_1|\-64_2")`  This will grep for package with 64_1 & 62_2(make sure you don't have other packages installed with field like this).
    2. tar -xf dnf_bundle_aix_71_72.tar
    3. ./install_dnf.sh -y


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



  • 8.  RE: Installation of DNF failed on AIX 7200-05-03-2136

    Posted Tue November 16, 2021 08:06 AM
    now it is solved and working
    thx
    vince

    ------------------------------
    Vincencio Michaelis
    ------------------------------