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.  Yet Another DNF Migration Issue

    Posted Wed January 03, 2024 11:12 PM

    I have two NIM servers acting as yum repo servers.  One upgraded to DNF just fine, the other, not so fine. Logs below.

    On the subject, would it be long-term better for me to destroyRPMS and set it back up from scratch instead of attempting to fix?

    # oslevel -s
    7200-05-07-2346
    # emgr -ql
    There is no efix data on this system.

    root@HOST:/tmp/dnf-20240103202615 # ksh 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.1011     Already installed
    
    
    
    
    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.
    
    Skipping ca-certificates-2023.2.60-0 as higher version ca-certificates-2023.2.60-2.ppc is installed.
    dnf-4.2.17-32_4 will be installed
    dnf-automatic-4.2.17-32_4 will be installed
    Skipping dnf-data-4.2.17-32_4 as higher version dnf-data-4.2.17-32_51.ppc is installed.
    Skipping libcomps-0.1.15-32_1 as higher version libcomps-0.1.15-101.ppc is installed.
    libdnf-0.39.1-32_3 will be installed
    Skipping libmodulemd-1.5.2-32_2 as higher version libmodulemd-1.5.2-100.ppc is installed.
    Skipping librepo-1.11.0-32_2 as higher version librepo-1.11.0-103.ppc is installed.
    Skipping libsmartcols-2.34-32_1 as higher version libsmartcols-2.34-101.ppc is installed.
    Skipping libsolv-0.7.9-32_3 as higher version libsolv-0.7.9-32_53.ppc is installed.
    Skipping libzstd-1.4.4-32_1 as higher version libzstd-1.5.2-2.ppc is installed.
    Skipping p11-kit-0.23.22-0 as higher version p11-kit-0.24.1-1.ppc is installed.
    Skipping p11-kit-tools-0.23.22-0 as higher version p11-kit-tools-0.24.1-1.ppc is installed.
    Skipping python3-3.9.16-0 as higher version python3-3.9.18-1.ppc is installed.
    python3-dateutil-2.8.0-2 is already installed
    Skipping python3-devel-3.9.16-0 as higher version python3-devel-3.9.18-1.ppc is installed.
    python3-dnf-4.2.17-32_4 will be installed
    python3-dnf-plugin-migrate-4.0.16-32_2 will be installed
    python3-dnf-plugins-core-4.0.16-32_2 will be installed
    Skipping python3-gpg-1.13.1-32_3 as higher version python3-gpg-1.13.1-101.ppc is installed.
    python3-hawkey-0.39.1-32_3 will be installed
    python3-libcomps-0.1.15-32_1 will be installed
    python3-libdnf-0.39.1-32_3 will be installed
    python3-librepo-1.11.0-32_2 will be installed
    python3-six-1.13.0-2 is already installed
    Skipping python3.9-3.9.16-0 as higher version python3.9-3.9.18-1.ppc is installed.
    python3.9-dateutil-2.8.0-2 is already installed
    Skipping python3.9-devel-3.9.16-0 as higher version python3.9-devel-3.9.18-1.ppc is installed.
    python3.9-dnf-4.2.17-32_4 will be installed
    python3.9-dnf-plugin-migrate-4.0.16-32_2 will be installed
    python3.9-dnf-plugins-core-4.0.16-32_2 will be installed
    Skipping python3.9-gpg-1.13.1-32_3 as higher version python3.9-gpg-1.13.1-101.ppc is installed.
    python3.9-hawkey-0.39.1-32_3 will be installed
    Skipping python3.9-libcomps-0.1.15-32_1 as higher version python3.9-libcomps-0.1.15-101.ppc is installed.
    python3.9-libdnf-0.39.1-32_3 will be installed
    python3.9-librepo-1.11.0-32_2 will be installed
    python3.9-six-1.13.0-2 is already installed
    rpm-python3-4.15.1-32_2 is already installed
    rpm-python3.9-4.15.1-32_2 is already installed
    yum-3.4.3-8.noarch will be updated to yum-4.2.17-32_4
    Skipping zchunk-libs-1.1.4-32_2 as higher version zchunk-libs-1.1.4-103.ppc is installed.
    
    Installing the packages...
    
    error: Failed dependencies:
            python3.9-libcomps = 0.1.15-32_1 is needed by python3-libcomps-0.1.15-32_1.ppc
            dnf-data = 4.2.17-32_4 is needed by python3.9-dnf-4.2.17-32_4.noarch
            librepo = 1.11.0-32_2 is needed by python3.9-librepo-1.11.0-32_2.ppc
            dnf-data = 4.2.17-32_4 is needed by yum-4.2.17-32_4.noarch
    
    dnf installation failed.
    If the failure was due to a space issue, increase the size of /opt and re-run script again.
    Another reason for failure could be mixing of Toolbox packages and packages from other sources.
    
    root@HOST:/tmp/dnf-20240103202615 #
    
    # rpm -qa
    deltarpm-3.6-1.ppc
    yum-utils-1.1.31-2.noarch
    unzip-6.0-3.ppc
    cups-libs-2.2.3-3.ppc
    libunistring-0.9.10-1.ppc
    python-iniparse-0.4-1.noarch
    db-5.3.28-1.ppc
    sed-4.8-1.ppc
    jq-1.6-1.ppc
    libgomp8-8.3.0-6.ppc
    gcc8-8.3.0-6.ppc
    openblas-0.3.18-1.ppc
    libstdc++8-8.3.0-6.ppc
    libtextstyle-0.21-2.ppc
    zlib-1.2.13-1.ppc
    sqlite-3.41.2-1.ppc
    expat-2.5.0-1.ppc
    python3.9-six-1.13.0-2.noarch
    libgcc-10-2.ppc
    info-7.0.2-1.ppc
    readline-8.2-1.ppc
    libstdc++10-10.3.0-6.ppc
    pcre-8.44-2.ppc
    python-2.7.18-4.ppc
    gcc10-10.3.0-6.ppc
    libssh2-1.10.0-2.ppc
    python3.9-pytz-2019.3-2.noarch
    python3.9-pandas-1.3.3-2.ppc
    gcc-cpp-10-2.ppc
    libcomps-0.1.15-101.ppc
    rpm-python3-4.15.1-32_2.ppc
    npth-1.5-1.ppc
    rsync-3.2.7-1.ppc
    libpng-1.6.37-1.ppc
    libyaml-0.2.5-1.ppc
    python3.9-certifi-2019.9.11-2.noarch
    zchunk-libs-1.1.4-103.ppc
    createrepo_c-libs-0.16.0-32_2.ppc
    gpgme-1.13.1-101.ppc
    python-pycurl-7.43.0.5-1.ppc
    libgomp-10-2.ppc
    python3.7-devel-3.7.16-1.ppc
    python3.9-libcomps-0.1.15-101.ppc
    gcc-10-2.ppc
    python-tools-2.7.18-4.ppc
    libgfortran-10-2.ppc
    libXrender-0.9.8-3waixX11.ppc
    dnf-data-4.2.17-32_51.ppc
    openldap-2.5.16-1.ppc
    popt-1.19-1.ppc
    libffi-3.4.4-2.ppc
    libxml2-2.10.4-1.ppc
    python3.9-3.9.18-1.ppc
    libtasn1-4.19.0-1.ppc
    gnutls-3.7.9-1.ppc
    perl-5.34.1-2.ppc
    pcre2-10.40-1.ppc
    libksba-1.6.3-1.ppc
    python3.9-devel-3.9.18-1.ppc
    apr-util-1.6.3-1.ppc
    coreutils-9.3-1.ppc
    libsmbclient-4.18.9-1.ppc
    samba-winbind-clients-4.18.9-1.ppc
    samba-common-4.18.9-1.ppc
    libnghttp2-1.55.1-1.ppc
    git-core-2.41.0-1.ppc
    git-2.41.0-1.ppc
    gnupg2-2.4.3-1.ppc
    tk-8.6.13-1.ppc
    python3-devel-3.9.18-1.ppc
    wget-1.21.4-1.ppc
    nmap-7.94-1.ppc
    libsolv-0.7.9-32_53.ppc
    krb5-pkinit-openssl-1.21.2-1.ppc
    krb5-devel-1.21.2-1.ppc
    dbus-1.14.8-1.ppc
    python3-gpg-1.13.1-101.ppc
    bzip2-1.0.8-2.ppc
    python-deltarpm-3.6-1.ppc
    zip-3.0-4.ppc
    fontconfig-2.11.95-4.ppc
    libXft-2.3.2-4waixX11.ppc
    pysqlite-2.8.3-2.ppc
    python-urlgrabber-3.10.1-1.noarch
    yum-metadata-parser-1.1.4-2.ppc
    yum-3.4.3-8.noarch
    lpar2rrd-agent-7.30-2.ppc
    oniguruma-6.9.6-1.ppc
    libgcc8-8.3.0-6.ppc
    gcc8-cpp-8.3.0-6.ppc
    libgfortran8-8.3.0-6.ppc
    gettext-0.21-2.ppc
    gdbm-1.23-1.ppc
    python3.9-dateutil-2.8.0-2.noarch
    rpm-python3.9-4.15.1-32_2.ppc
    libgcc10-10.3.0-6.ppc
    libiconv-1.17-1.ppc
    libgpg-error-1.45-1.ppc
    libstdc++-10-2.ppc
    gmp-6.2.1-1.ppc
    mpfr-4.1.0-1.ppc
    libmpc-1.2.1-1.ppc
    gcc10-cpp-10.3.0-6.ppc
    libassuan-2.5.5-1.ppc
    libzstd-1.5.2-2.ppc
    less-598-1.ppc
    python3-pytz-2019.3-2.noarch
    grep-3.7-2.ppc
    python3.7-3.7.16-1.ppc
    python3-dateutil-2.8.0-2.noarch
    lz4-1.9.3-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    libpcap-1.10.1-1.ppc
    file-libs-5.41-1.ppc
    freetype2-2.12.1-1.ppc
    lua-5.4.4-1.ppc
    libgomp10-10.3.0-6.ppc
    ca-certificates-2023.2.60-2.ppc
    python3.9-gpg-1.13.1-101.ppc
    createrepo_c-0.16.0-32_2.ppc
    python3-certifi-2019.9.11-2.noarch
    libmodulemd-1.5.2-100.ppc
    python3-pandas-1.3.3-2.ppc
    gzip-1.12-3.ppc
    expect-5.45.4-2.ppc
    python-devel-2.7.18-4.ppc
    nettle-3.7.3-1.ppc
    tar-1.33-1.ppc
    python3-six-1.13.0-2.noarch
    libsmartcols-2.34-101.ppc
    lynx-2.8.9-1ssl.ppc
    bash-5.2.15-1.ppc
    krb5-libs-1.21.2-1.ppc
    xz-libs-5.4.3-1.ppc
    ncurses-6.4-1.ppc
    python3-3.9.18-1.ppc
    p11-kit-0.24.1-1.ppc
    apr-1.7.4-1.ppc
    libgcrypt-1.10.2-1.ppc
    glib2-2.76.3-1.ppc
    python3.9-numpy-1.21.6-1.ppc
    postgresql-libs-11.21-1.ppc
    tcl-8.6.13-1.ppc
    samba-libs-4.18.9-1.ppc
    samba-devel-4.18.9-1.ppc
    samba-winbind-4.18.9-1.ppc
    samba-client-4.18.9-1.ppc
    curl-8.4.0-1.ppc
    git-core-doc-2.41.0-1.noarch
    librepo-1.11.0-103.ppc
    samba-4.18.9-1.ppc
    httpd-2.4.58-1.ppc
    python3-numpy-1.21.6-1.ppc
    p11-kit-tools-0.24.1-1.ppc
    libxml2-python3-2.10.4-1.ppc
    xz-5.4.3-1.ppc
    krb5-workstation-1.21.2-1.ppc
    sudo_noldap-1.9.13p2-2.ppc
    AIX-rpm-7.2.5.205-24.ppc
    


    ------------------------------
    David Little
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Yet Another DNF Migration Issue

    Posted Tue January 09, 2024 04:17 PM

    Just bumping my own post to hopefully get some expert eyes on my issue



    ------------------------------
    David Little
    ------------------------------



  • 3.  RE: Yet Another DNF Migration Issue

    Posted Thu January 11, 2024 02:23 AM

    Hi David,

    Some of the required dependency packages are not in sync.

    We can use this method to solve this problem.

    1. Remove the packages which aren't in sync "rpm -e dnf-data libcomps python3.9-libcomps librepo --nodeps"
    2. run install_dnf.sh -y
    3. run dnf update


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



  • 4.  RE: Yet Another DNF Migration Issue

    Posted Thu January 11, 2024 06:47 PM

    That worked, at first I hit some RPM issues that I had to resolve with: https://www.ibm.com/support/pages/how-resolve-rpm-dbrunrecovery-errors

    dnfupdate.sh failed due to yum-utils being installed, removed that and it went through fine.

    Cheers!



    ------------------------------
    David Little
    ------------------------------