AIX Open Source

 View Only
Expand all | Collapse all

yum broken after AIX 7.3 upgrade

  • 1.  yum broken after AIX 7.3 upgrade

    Posted Tue November 09, 2021 03:17 AM
    Hi,

    we upgraded an aix 7.2 with installed toolbox rpm for 7.2 to aix 7.3. because of version locked packages like libgcc yum/dnf is bonkers.

    root@kug0179: /var/cfengine/inputs/itsv # gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.2.0.0/8/lto-wrapper
    Target: powerpc-ibm-aix7.2.0.0
    Configured with: ../gcc-8.3.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,go --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --disable-libstdcxx-pch --enable-__cxa_atexit --disable-werror --enable-libstdcxx-filesystem-ts --with-gcc-major-version-only --program-suffix=-8 --disable-rpath --host=powerpc-ibm-aix7.2.0.0
    Thread model: aix
    gcc version 8.3.0 (GCC)
    root@kug0179: /var/cfengine/inputs/itsv # yum repolist
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:
    
       No module named _rpm
    
    Please install a package which provides this module, or
    verify that the module is installed correctly.
    
    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.18 (default, May  4 2020, 03:46:51)
    [GCC 8.3.0]
    
    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq


    so whats your migration strategy to keep yum/dnf working in this common scenario?

    chris



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


  • 2.  RE: yum broken after AIX 7.3 upgrade

    Posted Tue November 09, 2021 12:44 PM
    Hi Chris,

    Could you please provide more information what all you did after migrating to AIX 7.3? 
    yum is no more supported on AIX 7.3 and one has to install dnf. There are plugin to import data from yum to dnf. 
    We had published an article about how to install dnf
    https://community.ibm.com/community/user/power/blogs/sangamesh-mallayya1/2021/05/28/dnf-is-now-available-on-aix-toolbox?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9&tab=recentcommunityblogsdashboard
    After migrating to AIX 7.3, you need to install dnf using the script. The existing repositories will work with dnf. 
    After installing dnf you can update gcc and other packages. 
    Kindly let us know if you face any issues. 


    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: yum broken after AIX 7.3 upgrade

    Posted Wed November 10, 2021 01:37 AM
    Edited by C- -T Wed November 10, 2021 01:43 AM
    i did nothing at first sight, because i expected the old yum installation kept in a usable state. running this dnf bundle install script is ok for individual test upgrades, but generally, i would say this should be done via "yum install dnf"  btw. when will yum4/dnf and its dependencies be available in the official repos?

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



  • 4.  RE: yum broken after AIX 7.3 upgrade

    Posted Mon November 15, 2021 01:55 AM
    Hi Chris,

    "yum install dnf" may not work because the change in AIX 730.
    AIX 730 has changed rpm to 64bit and yum is 32bit only so they are not compatible.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 5.  RE: yum broken after AIX 7.3 upgrade

    Posted Mon November 15, 2021 04:53 AM
    Edited by C- -T Mon November 15, 2021 04:57 AM
    tested on aix 7.2...also not very promising. you dont answered the quesion when dnf and its deps will be available in the repos. we need to prepare our automation tools.

    root@aixtest01: /tmp/dnf-20211115104425 # /tmp/dnf_aixtoolbox_gaga.sh -y
    Attempting download of dnf_bundle_aix_71_72.tar ...
    Saving to 'dnf_bundle_aix_71_72.tar'...
    168 MB received in 3 seconds (55.9 MB/sec)
    
    Extracting dnf_bundle_aix_71_72.tar ...
    ca-certificates-2020.06.01-0.aix7.1.ppc.rpm
    dnf-4.2.17-32_1.aix7.1.noarch.rpm
    dnf-automatic-4.2.17-32_1.aix7.1.noarch.rpm
    dnf-data-4.2.17-32_1.aix7.1.noarch.rpm
    extra_list
    install_dnf.sh
    libcomps-0.1.11-32_1.aix7.1.ppc.rpm
    libdnf-0.39.1-32_1.aix7.1.ppc.rpm
    libmodulemd-1.5.2-32_1.aix7.1.ppc.rpm
    librepo-1.11.0-32_1.aix7.1.ppc.rpm
    libsmartcols-2.34-32_1.aix7.1.ppc.rpm
    libsolv-0.7.9-32_1.aix7.1.ppc.rpm
    libzstd-1.4.4-32_1.aix7.1.ppc.rpm
    p11-kit-0.23.16-0.aix7.1.ppc.rpm
    p11-kit-tools-0.23.16-0.aix7.1.ppc.rpm
    python3-3.7.9-0.aix7.1.ppc.rpm
    python3-dateutil-2.8.0-1.aix6.1.noarch.rpm
    python3-devel-3.7.9-0.aix7.1.ppc.rpm
    python3-dnf-4.2.17-32_1.aix7.1.noarch.rpm
    python3-dnf-plugin-migrate-4.0.16-32_1.aix7.1.noarch.rpm
    python3-dnf-plugins-core-4.0.16-32_1.aix7.1.noarch.rpm
    python3-docs-3.7.9-0.aix7.1.ppc.rpm
    python3-gpgme-1.13.1-32_1.aix7.1.ppc.rpm
    python3-hawkey-0.39.1-32_1.aix7.1.ppc.rpm
    python3-libcomps-0.1.11-32_1.aix7.1.ppc.rpm
    python3-libdnf-0.39.1-32_1.aix7.1.ppc.rpm
    python3-librepo-1.11.0-32_1.aix7.1.ppc.rpm
    python3-six-1.13.0-1.aix6.1.noarch.rpm
    python3-test-3.7.9-0.aix7.1.ppc.rpm
    python3-tools-3.7.9-0.aix7.1.ppc.rpm
    rpm-python3-4.15.1-32_1.aix7.1.ppc.rpm
    rpm.rte
    yum-4.2.17-32_1.aix7.1.noarch.rpm
    zchunk-1.1.4-32_1.aix7.1.ppc.rpm
    zchunk-devel-1.1.4-32_1.aix7.1.ppc.rpm
    zchunk-libs-1.1.4-32_1.aix7.1.ppc.rpm
    
    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.
    
    Skipping ca-certificates-2020.06.01-0 as higher version ca-certificates-2020.06.01-1.ppc is installed.
    dnf-4.2.17-32_1 will be installed
    dnf-automatic-4.2.17-32_1 will be installed
    dnf-data-4.2.17-1.noarch will be updated to dnf-data-4.2.17-32_1
    libcomps-0.1.11-1.ppc will be updated to libcomps-0.1.11-32_1
    libdnf-0.39.1-1.ppc will be updated to libdnf-0.39.1-32_1
    libmodulemd-1.5.2-1.ppc will be updated to libmodulemd-1.5.2-32_1
    librepo-1.11.0-1.ppc will be updated to librepo-1.11.0-32_1
    libsmartcols-2.34-1.ppc will be updated to libsmartcols-2.34-32_1
    libsolv-0.7.9-1.ppc will be updated to libsolv-0.7.9-32_1
    libzstd-1.4.4-1.ppc will be updated to libzstd-1.4.4-32_1
    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.
    Skipping python3-3.7.9-0 as higher version python3-3.7.9-1.ppc is installed.
    Skipping python3-devel-3.7.9-0 as higher version python3-devel-3.7.9-1.ppc is installed.
    python3-dnf-4.2.17-1.noarch will be updated to python3-dnf-4.2.17-32_1
    Skipping python3-docs-3.7.9-0 as higher version python3-docs-3.7.9-1.ppc is installed.
    python3-gpgme-1.13.1-1.ppc will be updated to python3-gpgme-1.13.1-32_1
    python3-hawkey-0.39.1-1.ppc will be updated to python3-hawkey-0.39.1-32_1
    python3-libcomps-0.1.11-1.ppc will be updated to python3-libcomps-0.1.11-32_1
    python3-libdnf-0.39.1-1.ppc will be updated to python3-libdnf-0.39.1-32_1
    python3-librepo-1.11.0-1.ppc will be updated to python3-librepo-1.11.0-32_1
    Skipping python3-test-3.7.9-0 as higher version python3-test-3.7.9-1.ppc is installed.
    Skipping python3-tools-3.7.9-0 as higher version python3-tools-3.7.9-1.ppc is installed.
    rpm-python3-4.15.1-1_py3.ppc will be updated to rpm-python3-4.15.1-32_1
    yum-4.2.17-32_1 will be installed
    zchunk-libs-1.1.4-1.ppc will be updated to zchunk-libs-1.1.4-32_1
    
    Installing the packages...
    
    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    libzstd-1.4.4-1 and libzstd-1.4.4-1-32_1 are same.
    error: %prein(libzstd-1.4.4-32_1.ppc) scriptlet failed, exit status 1
    error: libzstd-1.4.4-32_1.ppc: install failed
    libmodulemd-1.5.2-1 and libmodulemd-1.5.2-32_1 are same.
    error: %prein(libmodulemd-1.5.2-32_1.ppc) scriptlet failed, exit status 1
    error: libmodulemd-1.5.2-32_1.ppc: install failed
    libsolv-0.7.9-1 and libsolv-0.7.9-32_1 are same.
    error: %prein(libsolv-0.7.9-32_1.ppc) scriptlet failed, exit status 1
    error: libsolv-0.7.9-32_1.ppc: install failed
    libsmartcols-2.34-1 and libsmartcols-2.34-32_1 are same.
    error: %prein(libsmartcols-2.34-32_1.ppc) scriptlet failed, exit status 1
    error: libsmartcols-2.34-32_1.ppc: install failed
    zchunk-libs-1.1.4-1 and zchunk-libs-1.1.4-1-32_1 are same.
    error: %prein(zchunk-libs-1.1.4-32_1.ppc) scriptlet failed, exit status 1
    error: zchunk-libs-1.1.4-32_1.ppc: install failed
    librepo-1.11.0-1 and librepo-1.11.0-32_1 are same.
    error: %prein(librepo-1.11.0-32_1.ppc) scriptlet failed, exit status 1
    error: librepo-1.11.0-32_1.ppc: install failed
    rpm-python3-4.15.1-1_py3.ppc
    rpm-python3-4.15.1-1_py3 and  rpm-python3-4.15.1-32_1 are same.
    error: %prein(rpm-python3-4.15.1-32_1.ppc) scriptlet failed, exit status 1
    error: rpm-python3-4.15.1-32_1.ppc: install failed
    libdnf-0.39.1-1 and libdnf-0.39.1-1-32_1 are same.
    error: %prein(libdnf-0.39.1-32_1.ppc) scriptlet failed, exit status 1
    error: libdnf-0.39.1-32_1.ppc: install failed
    python3-libdnf-0.39.1-1 and python3-libdnf-0.39.1-1-32_1 are same.
    error: %prein(python3-libdnf-0.39.1-32_1.ppc) scriptlet failed, exit status 1
    error: python3-libdnf-0.39.1-32_1.ppc: install failed
    dnf-data-4.2.17-1 and dnf-data-4.2.17-32_1 are same.
    error: %prein(dnf-data-4.2.17-32_1.noarch) scriptlet failed, exit status 1
    error: dnf-data-4.2.17-32_1.noarch: install failed
    python3-hawkey-0.39.1-1 and python3-hawkey-0.39.1-1-32_1 are same.
    error: %prein(python3-hawkey-0.39.1-32_1.ppc) scriptlet failed, exit status 1
    error: python3-hawkey-0.39.1-32_1.ppc: install failed
    python3-gpgme-1.13.1-1 and python3-gpgme-1.13.1-1-32_1 are same.
    error: %prein(python3-gpgme-1.13.1-32_1.ppc) scriptlet failed, exit status 1
    error: python3-gpgme-1.13.1-32_1.ppc: install failed
    libcomps-0.1.11-1 and libcomps-0.1.11-32_1 are same.
    error: %prein(libcomps-0.1.11-32_1.ppc) scriptlet failed, exit status 1
    error: libcomps-0.1.11-32_1.ppc: install failed
    python3-libcomps-0.1.11-1 and python3-libcomps-0.1.11-32_1 are same.
    error: %prein(python3-libcomps-0.1.11-32_1.ppc) scriptlet failed, exit status 1
    error: python3-libcomps-0.1.11-32_1.ppc: install failed
    python3-dnf-4.2.17-1 and python3-dnf-4.2.17-32_1 are same.
    error: %prein(python3-dnf-4.2.17-32_1.noarch) scriptlet failed, exit status 1
    error: python3-dnf-4.2.17-32_1.noarch: install failed
    Updating / installing...
       1:dnf-4.2.17-32_1                  ################################# [  3%]
       2:dnf-automatic-4.2.17-32_1        ################################# [  6%]
       3:yum-4.2.17-32_1                  ################################# [  9%]
    python3-librepo-1.11.0-1 and python3-librepo-1.11.0-32_1 are same.
    error: %prein(python3-librepo-1.11.0-32_1.ppc) scriptlet failed, exit status 1
    error: python3-librepo-1.11.0-32_1.ppc: install failed
    error: python3-dnf-4.2.17-1.noarch: erase skipped
    error: python3-hawkey-0.39.1-1.ppc: erase skipped
    error: python3-libdnf-0.39.1-1.ppc: erase skipped
    error: libdnf-0.39.1-1.ppc: erase skipped
    error: python3-librepo-1.11.0-1.ppc: erase skipped
    error: librepo-1.11.0-1.ppc: erase skipped
    error: python3-libcomps-0.1.11-1.ppc: erase skipped
    error: zchunk-libs-1.1.4-1.ppc: erase skipped
    error: libsolv-0.7.9-1.ppc: erase skipped
    error: libzstd-1.4.4-1.ppc: erase skipped
    error: libcomps-0.1.11-1.ppc: erase skipped
    error: libmodulemd-1.5.2-1.ppc: erase skipped
    error: libsmartcols-2.34-1.ppc: erase skipped
    error: rpm-python3-4.15.1-1_py3.ppc: erase skipped
    error: dnf-data-4.2.17-1.noarch: erase skipped
    error: python3-gpgme-1.13.1-1.ppc: erase skipped
    
    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.
    
    You can try installing the downloaded dnf packages from /tmp/dnf-20211115104846 manually.
    ​


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



  • 6.  RE: yum broken after AIX 7.3 upgrade

    Posted Mon November 15, 2021 05:46 AM
    Hi Chris,

    Looks you already had dnf and it's dependencies installed.
    We changed a package versioning and added some checks where it failing for some of the packages.
    We will recheck this change and modify if required.
    In this case dnf seems to have have been installed and script output isn't zero which could be a problem for automation.

    We are planning to have the dnf packages available in repos by end of this quarter.

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



  • 7.  RE: yum broken after AIX 7.3 upgrade

    Posted Mon January 10, 2022 02:03 AM
    Edited by C- -T Mon January 10, 2022 02:04 AM
    ok, aix 7.3 is out, still no dnf + deps in the repo? when will this be available?


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



  • 8.  RE: yum broken after AIX 7.3 upgrade

    Posted Mon January 10, 2022 08:51 AM
    Hi Chris,

    This is in our plan and it got delayed. Hopefully by this quarter it will be available.
    But this should not hinder any of your work in using dnf on AIX 7.3.
    Right now dnf packages and deps are available for AIX as a tar and it can be installed using script.
    And after that dnf is functional. Any specific reason you are looking for dnf and its deps in the repo ?

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 9.  RE: yum broken after AIX 7.3 upgrade

    Posted Mon January 10, 2022 08:57 AM
    among other things, we manage package installs via cfengine policies, which requires all managed packages to be available in the yum/dnf repo.

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



  • 10.  RE: yum broken after AIX 7.3 upgrade

    Posted Mon March 14, 2022 04:45 AM
    Edited by C- -T Mon March 14, 2022 04:47 AM
    any updates on the dnf + dependencies availability?

    root@nimvie: /srv/www/repos/ibm_aixtoolbox_mirror/RPMS # find . -name *dnf*
    ​

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



  • 11.  RE: yum broken after AIX 7.3 upgrade

    Posted Mon March 14, 2022 07:13 AM
    Hi Chris,

    We are working on this and as said we should be able to publish it by end of this month

    ------------------------------
    SANKET RATHI
    ------------------------------