AIX Open Source

 View Only
  • 1.  Migrated to AIX 7.3 and now DNF is erroring out

    Posted Tue February 07, 2023 10:19 AM
    I updated a LPAR to AIX 7.3 and then walked through updating DNF as well.  I am receiving an error when i run DNF now:

    # ERROR #
    (utaecegdi7300.hban.us:/)# /opt/freeware/bin/dnf
    terminate called after throwing an instance of 'std::runtime_error'
    what(): os-release file not found
    IOT/Abort trap(coredump)

    I have looked on the system and /etc/os-release is not found at all.  I have attempted to create one, but not sure what DNF is looking for.  Below is what I am running:

    (utaecegdi7300.hban.us:/)# oslevel -sq
    Known Service Packs
    -------------------
    7300-01-01-2246
    7300-01-00-0000
    7300-00-03-2246
    7300-00-02-2220
    7300-00-02-2219
    7300-00-01-2148

    Does anyone have a sample of what the AIX version of this file looks like or can paste the output of theirs?  I wasn't aware of AIX even having this file.​​

    ------------------------------
    Joshua Krause
    ------------------------------


  • 2.  RE: Migrated to AIX 7.3 and now DNF is erroring out

    Posted Tue February 07, 2023 11:23 AM
    wow, i also got the weirdest errors while fiddling with dnf migrations/upgrades...but holy sh*t, this is another level of absurdity. this error points to a redhat config
    file which never existed in aix. curious what follows here,,,

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



  • 3.  RE: Migrated to AIX 7.3 and now DNF is erroring out

    Posted Wed February 08, 2023 08:02 AM
    Hi Joshua,

    Please let me know the output of "rpm -qa"

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



  • 4.  RE: Migrated to AIX 7.3 and now DNF is erroring out

    Posted Wed February 08, 2023 08:23 AM
    Here is the requested output:

    #####
    (utaecegdi7300.hban.us:/)# rpm -qa
    libgcc-8-1.ppc
    xz-libs-5.2.5-1.ppc
    pixman-0.34.0-1.ppc
    libunistring-0.9.10-1.ppc
    glib2-2.56.1-3.ppc
    atk-2.20.0-3.ppc
    shared-mime-info-1.6-2.ppc
    libwebp-1.0.2-1.ppc
    fontconfig-2.11.95-4.ppc
    libXft-2.3.2-4waixX11.ppc
    jbigkit-libs-2.1-1.ppc
    gdk-pixbuf-2.35.1-3waixX11.ppc
    db-5.3.28-1.ppc
    bzip2-1.0.8-2.ppc
    sed-4.8-1.ppc
    gcc-cpp-8-1.ppc
    python-pycurl-7.43.0-1.ppc
    libXcursor-devel-1.1.14-1.ppc
    zip-3.0-4.ppc
    sudo_ids-1.9.5p2-1.ppc
    unzip-6.0-3.ppc
    coreutils-9.0-1.ppc
    zlib-1.2.12-1.ppc
    ncurses-6.3-1.ppc
    libffi-3.4.2-1.ppc
    libmpc-1.2.1-1.ppc
    libssh2-1.10.0-1.ppc
    libsodium-1.0.18-1.ppc
    gdbm-1.23-1.ppc
    readline-8.1-1.ppc
    gcc8-cpp-8.3.0-6.ppc
    p11-kit-0.23.22-1.ppc
    ca-certificates-2021.2.52-3.ppc
    libnghttp2-1.46.0-1.ppc
    autoconf-2.71-1.noarch
    python-tools-2.7.18-3.ppc
    wget-1.21.2-1.ppc
    freetype2-2.12.1-1.ppc
    libXrender-0.9.8-3waixX11.ppc
    python3-dateutil-2.8.0-1.noarch
    zchunk-libs-1.1.4-101.ppc
    libassuan-2.5.5-1.ppc
    check-0.13.0-1.ppc
    libgcrypt-1.9.4-1.ppc
    pinentry-1.0.0-1.ppc
    libyaml-0.2.5-1.ppc
    npth-1.5-1.ppc
    gnupg2-2.2.35-1.ppc
    librepo-1.11.0-100.ppc
    python3-gpg-1.13.1-100.ppc
    python3-dnf-plugin-migrate-4.0.16-32_50.ppc
    python3-librepo-1.11.0-100.ppc
    libxml2-2.10.2-1.ppc
    libcomps-0.1.11-101.ppc
    vim-common-9.0.0325-1.ppc
    openldap-2.4.58-4.ppc
    gettext-0.21-2.ppc
    krb5-libs-1.18.5-2.ppc
    libjpeg-9e-1.ppc
    libksba-1.6.0-1.ppc
    python3-libcomps-0.1.11-101.ppc
    harfbuzz-4.3.0-1.ppc
    bash-doc-5.1.16-1.ppc
    libzstd-1.5.2-1.ppc
    rpm-python3-4.15.1-64_2.ppc
    python3-libdnf-0.39.1-64_3.ppc
    python3-hawkey-0.39.1-64_3.ppc
    dnf-4.2.17-64_5.noarch
    yum-4.2.17-64_5.noarch
    libidn-1.24-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    python-iniparse-0.4-1.noarch
    python-urlgrabber-3.10.1-1.noarch
    libstdc++-8-1.ppc
    libgomp-8-1.ppc
    lzo-2.10-2.ppc
    cairo-1.14.6-2waixX11.ppc
    pango-1.40.1-2waixX11.ppc
    gtk2-2.24.30-3waixX11.ppc
    libtasn1-4.16.0-1.ppc
    pysqlite-2.8.3-2.ppc
    libXcursor-1.1.14-1.ppc
    gcc-8-1.ppc
    puppet-agent-7.12.1-1.ppc
    libgcc8-8.3.0-6.ppc
    libstdc++8-8.3.0-6.ppc
    gmp-6.2.1-1.ppc
    mpfr-4.1.0-1.ppc
    libpng-1.6.37-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    libgomp8-8.3.0-6.ppc
    libiconv-1.17-1.ppc
    perl-5.34.1-1.ppc
    info-6.7-1.ppc
    pcre-8.44-2.ppc
    python-2.7.18-3.ppc
    gcc8-8.3.0-6.ppc
    p11-kit-tools-0.23.22-1.ppc
    m4-1.4.18-1.ppc
    automake-1.16.5-1.noarch
    python-devel-2.7.18-3.ppc
    grep-3.7-1.ppc
    python3-six-1.13.0-1.noarch
    libsmartcols-2.34-100.ppc
    json-c-0.15-2.ppc
    libmodulemd-1.5.2-100.ppc
    nettle-3.7.3-1.ppc
    gpgme-1.13.1-100.ppc
    python3-dnf-plugins-core-4.0.16-32_50.ppc
    expat-2.4.9-1.ppc
    bash-5.1.16-1.ppc
    sqlite-3.39.3-1.ppc
    libtextstyle-0.21-2.ppc
    python3-3.7.15-1.ppc
    libgpg-error-1.45-1.ppc
    libtiff-4.4.0-1.ppc
    curl-7.85.0-1.ppc
    gnutls-3.7.2-1.ppc
    vim-enhanced-9.0.0325-1.ppc
    libtool-2.4.7-1.ppc
    libsolv-0.7.9-64_2.ppc
    libdnf-0.39.1-64_3.ppc
    dnf-data-4.2.17-64_5.noarch
    python3-dnf-4.2.17-64_5.noarch
    dnf-automatic-4.2.17-64_5.noarch
    AIX-rpm-7.3.1.1-30.ppc
    #####
    ​​​

    ------------------------------
    Joshua Krause
    ------------------------------



  • 5.  RE: Migrated to AIX 7.3 and now DNF is erroring out

    Posted Thu February 09, 2023 04:23 AM

    Hi Joshua,

    This is related to runtime linking and some of the packages are out of sync.

    Here is the related post https://community.ibm.com/community/user/power/discussion/recent-dnf-and-yum-issues-with-newer-python3-and-curl-builds

    In your case you don't have the latest python3-3.7.15-1.ppc & librepo-1.11.0-100.ppc.

    Please update python3, librepo, and python3-librepo to latest available version manually.

    Once DNF is running then you can run "dnf update"



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



  • 6.  RE: Migrated to AIX 7.3 and now DNF is erroring out

    Posted Thu February 09, 2023 08:11 AM

    Odd that I did a DNF update before my migration from 7.2 to 7.3 so you would think these would of been updated.  Updating those did allow me to get dnf to work on the migrated box.



    ------------------------------
    Joshua Krause
    ------------------------------



  • 7.  RE: Migrated to AIX 7.3 and now DNF is erroring out

    Posted Fri February 10, 2023 03:25 AM

    Probably repo data mayn't have been updated.



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