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.  dnf migration from aix 7.2 to aix 7.3 not working since python 3.9 introduction

    Posted Mon June 26, 2023 09:03 AM
    Edited by C- -T Mon June 26, 2023 09:06 AM

    The dnf_aixtoolbox.sh procedure is not working since the python3.9 packages arrived. numerous weird dependency problems. 

    whats the problem here?

    root@aixkbg12pt: /root # oslevel -s
    7300-01-01-2246
    
    root@aixkbg12pt: /root # rpm -e dnf dnf-data dnf-automatic libdnf librepo python3-librepo python3-libdnf python3-hawkey python3-dnf libcomps  --nodeps
    warning: /opt/freeware/etc/dnf/dnf.conf saved as /opt/freeware/etc/dnf/dnf.conf.rpmsave
    
    
    root@aixkbg12pt: /root # ksh /tmp/dnf_aixtoolbox.sh -d
    Attempting download of dnf_bundle_aix_73.tar ...
    Saving to 'dnf_bundle_aix_73.tar'...
    216 MB received in 4 seconds (54.1 MB/sec)                                  
    
    Extracting dnf_bundle_aix_73.tar ...
    x ca-certificates-2023.2.60-0.aix7.1.ppc.rpm, 991065 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, 12854 bytes, 26 tape blocks
    x dnf-data-4.2.17-64_6.aix7.1.noarch.rpm, 26177 bytes, 52 tape blocks
    x extra_list, 384 bytes, 1 tape blocks
    x install_dnf.sh, 14012 bytes, 28 tape blocks
    x libcomps-0.1.15-64_1.aix7.1.ppc.rpm, 1312174 bytes, 2563 tape blocks
    x libdnf-0.39.1-64_4.aix7.1.ppc.rpm, 16517054 bytes, 32260 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_3.aix7.1.ppc.rpm, 1556681 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, 6176 bytes, 13 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, 6204 bytes, 13 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_4.aix7.1.ppc.rpm, 5756 bytes, 12 tape blocks
    x python3-idle-3.9.16-0.aix7.1.ppc.rpm, 6196 bytes, 13 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_4.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, 6196 bytes, 13 tape blocks
    x python3-tkinter-3.9.16-0.aix7.1.ppc.rpm, 6216 bytes, 13 tape blocks
    x python3.9-3.9.16-0.aix7.1.ppc.rpm, 56783004 bytes, 110905 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, 19947355 bytes, 38960 tape blocks
    x python3.9-dnf-4.2.17-64_6.aix7.1.noarch.rpm, 197156 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_4.aix7.1.ppc.rpm, 3339933 bytes, 6524 tape blocks
    x python3.9-idle-3.9.16-0.aix7.1.ppc.rpm, 2328776 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_4.aix7.1.ppc.rpm, 24255176 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, 33158885 bytes, 64764 tape blocks
    x python3.9-tkinter-3.9.16-0.aix7.1.ppc.rpm, 1162732 bytes, 2271 tape blocks
    x rpm-python3-4.15.1-64_3.aix7.1.ppc.rpm, 9608 bytes, 19 tape blocks
    x rpm-python3.9-4.15.1-64_3.aix7.1.ppc.rpm, 100414 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, 11233 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-2021.2.52-3.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_4 will be installed
    Skipping libmodulemd-1.5.2-64_2 as higher version libmodulemd-1.5.2-100.ppc is installed.
    librepo-1.11.0-64_2 will be installed
    Skipping libsmartcols-2.34-64_1 as higher version libsmartcols-2.34-100.ppc is installed.
    libsolv-0.7.9-32_51.ppc will be updated to libsolv-0.7.9-64_3
    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.15-2.ppc will be updated to python3-3.9.16-0
    python3-devel-3.7.15-2.ppc will be updated to python3-devel-3.9.16-0
    python3-dnf-4.2.17-64_6 will be installed
    python3-gpg-1.13.1-32_2.ppc will be updated to python3-gpg-1.13.1-64_3
    python3-hawkey-0.39.1-64_4 will be installed
    python3-libcomps-0.1.11-32_1.ppc will be updated to python3-libcomps-0.1.15-64_1
    python3-libdnf-0.39.1-64_4 will be installed
    python3-librepo-1.11.0-64_2 will be installed
    python3-test-3.7.15-2.ppc will be updated to python3-test-3.9.16-0
    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_4 will be installed
    python3.9-libcomps-0.1.15-64_1 will be installed
    python3.9-libdnf-0.39.1-64_4 will be installed
    python3.9-librepo-1.11.0-64_2 will be installed
    rpm-python3-4.15.1-32_1.ppc will be updated to rpm-python3-4.15.1-64_3
    rpm-python3.9-4.15.1-64_3 will be installed
    Skipping zchunk-libs-1.1.4-64_3 as higher version zchunk-libs-1.1.4-102.ppc is installed.
    
    Installing the packages...
    
    error: Failed dependencies:
            python3 = 3.7.15-2 is needed by (installed) python3-docs-3.7.15-2.ppc
            python3 = 3.7.15-2 is needed by (installed) python3-tools-3.7.15-2.ppc
            /opt/freeware/bin/python3 is needed by (installed) rlwrap-0.43-2.ppc
            /opt/freeware/bin/python3_32 is needed by (installed) yum-4.2.17-32_3.noarch
            python3.9-devel = 3.9.16-0 is needed by python3-devel-3.9.16-0.ppc
            python3.9-test = 3.9.16-0 is needed by python3-test-3.9.16-0.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-20230626141448 manually.
    
    
    
    root@aixkbg12pt: /root # rpm -qa|grep pytho
    python3-jinja2-2.10.3-1.noarch
    python3-six-1.13.0-1.noarch
    python3-gpg-1.13.1-32_2.ppc
    python3-libcomps-0.1.11-32_1.ppc
    python3-dnf-plugin-migrate-4.0.16-32_1.noarch
    python3-3.7.15-2.ppc
    python3-docs-3.7.15-2.ppc
    python3-tools-3.7.15-2.ppc
    python-devel-2.7.18-4.ppc
    python-pycurl-7.43.0.5-1.ppc
    python-iniparse-0.4-1.noarch
    python-urlgrabber-3.10.1-1.noarch
    python3-markupsafe-1.1.1-1.ppc
    rpm-python3-4.15.1-32_1.ppc
    python3-dateutil-2.8.0-1.noarch
    python3-dnf-plugins-core-4.0.16-32_1.noarch
    python3-devel-3.7.15-2.ppc
    python3-test-3.7.15-2.ppc
    python-2.7.18-4.ppc
    python-tools-2.7.18-4.ppc
    root@aixkbg12pt: /root # 
    



    ------------------------------
    I regret starting this entire conversation
    ------------------------------


    #AIXOpenSource


  • 2.  RE: dnf migration from aix 7.2 to aix 7.3 not working since python 3.9 introduction

    Posted Mon June 26, 2023 10:00 AM

    Hi Chris,

    This seems to be related to missing python3.9 sub-packages in the install list.

    Can you also provide a list of all rpm packages installed ?

    We will correct the bundle accordingly. 



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



  • 3.  RE: dnf migration from aix 7.2 to aix 7.3 not working since python 3.9 introduction

    Posted Mon June 26, 2023 10:10 AM

    as this machine needs to be migrated urgently, i removed the what i think "problematic" packages manually to get this task going.

    1759  2023-06-26 14:28:05 |rpm -e --nodeps python3-docs python3-tools yum yum-utils
    1801  2023-06-26 14:42:32 |rpm -e --nodeps python3-devel python3-test

    here is the complete package list after finished migration anyway

    root@aixkbg12pt: /tmp # rpm -qa | sort
    AIX-rpm-7.3.1.1-18.ppc
    bash-5.1.16-1.ppc
    binutils-2.33.1-1.ppc
    bzip2-1.0.8-2.ppc
    ca-certificates-2023.2.60-0.ppc
    cfengine-3.18.2-itsv.ppc
    check-0.13.0-1.ppc
    coreutils-9.0-1.ppc
    cpio-2.13-1.ppc
    curl-7.86.0-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    db-5.3.28-1.ppc
    dnf-4.2.17-64_53.ppc
    dnf-automatic-4.2.17-64_53.ppc
    dnf-data-4.2.17-64_53.ppc
    expat-2.5.0-1.ppc
    file-5.41-1.ppc
    file-libs-5.41-1.ppc
    flex-2.6.4-1.ppc
    fontconfig-2.11.95-4.ppc
    freetype2-2.8-1.ppc
    gawk-5.1.1-1.ppc
    gcc-10-2.ppc
    gcc-cpp-10-2.ppc
    gcc10-10.3.0-6.ppc
    gcc10-cpp-10.3.0-6.ppc
    gdbm-1.23-1.ppc
    gettext-0.21-2.ppc
    git-2.38.3-1.ppc
    git-core-2.38.3-1.ppc
    git-core-doc-2.38.3-1.noarch
    glib2-2.56.1-2.ppc
    gmp-6.2.1-1.ppc
    gnupg2-2.2.35-1.ppc
    gnutls-3.7.2-1.ppc
    gpgme-1.13.1-101.ppc
    grep-3.7-2.ppc
    gzip-1.12-3.ppc
    info-6.7-1.ppc
    jansson-2.13.1-1.ppc
    json-c-0.15-2.ppc
    krb5-libs-1.18.5-1.ppc
    less-598-1.ppc
    libassuan-2.5.5-1.ppc
    libcomps-0.1.15-101.ppc
    libdbi-0.9.0-1.ppc
    libdnf-0.39.1-64_52.ppc
    libffi-3.4.2-1.ppc
    libgcc-10-2.ppc
    libgcc10-10.3.0-6.ppc
    libgcrypt-1.9.4-1.ppc
    libgomp-10-2.ppc
    libgomp10-10.3.0-6.ppc
    libgpg-error-1.45-1.ppc
    libiconv-1.17-1.ppc
    libksba-1.6.2-1.ppc
    liblmdb-0.9.29-1.ppc
    libmodulemd-1.5.2-100.ppc
    libmpc-1.2.1-1.ppc
    libnghttp2-1.46.0-1.ppc
    libpng-1.6.27-3.ppc
    librepo-1.11.0-102.ppc
    libsmartcols-2.34-100.ppc
    libsodium-1.0.18-1.ppc
    libsolv-0.7.9-64_51.ppc
    libssh2-1.10.0-2.ppc
    libstdc++-10-2.ppc
    libstdc++10-10.3.0-6.ppc
    libtasn1-4.16.0-1.ppc
    libtextstyle-0.21-2.ppc
    libunistring-0.9.9-2.ppc
    libxml2-2.9.14-1.ppc
    libyaml-0.2.2-1.ppc
    libzstd-1.5.2-1.ppc
    lpar2rrd-agent-7.60-1.ppc
    lua-5.3.4-2.ppc
    lynx-2.8.8-3ssl.ppc
    lz4-1.9.2-1.ppc
    lzo-2.10-2.ppc
    make-4.3-1.ppc
    mpfr-4.1.0-1.ppc
    nagios-plugins-2.2.1-1.ppc
    ncurses-6.3-1.ppc
    nettle-3.7.3-1.ppc
    npth-1.5-1.ppc
    openldap-2.5.12-1.ppc
    p11-kit-0.23.22-1.ppc
    p11-kit-tools-0.23.22-1.ppc
    pcre-8.44-2.ppc
    perl-5.34.1-1.ppc
    pigz-2.4-1.ppc
    pinentry-1.0.0-1.ppc
    pkg-config-0.29.2-2.ppc
    popt-1.16-3.ppc
    pysqlite-2.8.3-2.ppc
    python-2.7.18-4.ppc
    python-devel-2.7.18-4.ppc
    python-iniparse-0.4-1.noarch
    python-pycurl-7.43.0.5-1.ppc
    python-tools-2.7.18-4.ppc
    python-urlgrabber-3.10.1-1.noarch
    python3-3.9.16-2.ppc
    python3-dateutil-2.8.0-1.noarch
    python3-dnf-4.2.17-64_53.ppc
    python3-dnf-plugin-migrate-4.0.16-32_1.noarch
    python3-dnf-plugins-core-4.0.16-32_1.noarch
    python3-gpg-1.13.1-64_3.ppc
    python3-hawkey-0.39.1-64_52.ppc
    python3-jinja2-2.10.3-1.noarch
    python3-libcomps-0.1.15-101.ppc
    python3-libdnf-0.39.1-64_52.ppc
    python3-librepo-1.11.0-102.ppc
    python3-markupsafe-1.1.1-1.ppc
    python3-six-1.13.0-1.noarch
    python3.9-3.9.16-0.ppc
    python3.9-dnf-4.2.17-64_53.ppc
    python3.9-gpg-1.13.1-101.ppc
    python3.9-hawkey-0.39.1-64_52.ppc
    python3.9-libcomps-0.1.15-101.ppc
    python3.9-libdnf-0.39.1-64_52.ppc
    python3.9-librepo-1.11.0-102.ppc
    readline-8.1-1.ppc
    rpm-python3-4.15.1-64_3.ppc
    rpm-python3.9-4.15.1-64_3.ppc
    rsync-3.2.7-1.ppc
    screen-4.7.0-1.ppc
    sed-4.8-1.ppc
    sqlite-3.39.3-1.ppc
    sudo-1.9.5p2-1.ppc
    tar-1.33-1.ppc
    unzip-6.0-3.ppc
    vim-common-9.0.0916-1.ppc
    vim-enhanced-9.0.0916-1.ppc
    wget-1.21.2-1.ppc
    xz-5.2.5-1.ppc
    xz-libs-5.2.5-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    zchunk-libs-1.1.4-102.ppc
    zip-3.0-4.ppc
    zlib-1.2.13-1.ppc
    zlib-devel-1.2.13-1.ppc
    zstd-1.4.4-100.ppc


    ------------------------------
    I regret starting this entire conversation
    ------------------------------