AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

DNF update fails with error saying the update would result in removing dnf

  • 1.  DNF update fails with error saying the update would result in removing dnf

    Posted Thu June 15, 2023 02:47 PM

    I am having an issue updating with dnf on my AIX 7.2.5.4 system.  When I upgraded it last year to 7.2.5.4 dnf update worked just fine and I had a clean system.  Today I tried to update it and dnf check works fine but dnf update is failing with the error message below: 

    dnf update
    Error:
     Problem: The operation would result in removing the following protected packages: dnf
    (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

    I tried the suggestion of updating just dnf and python3 but same error:

     dnf update dnf python3
    Last metadata expiration check: 1:32:33 ago on Thu Jun 15 13:09:52 EDT 2023.
    Error:
     Problem: The operation would result in removing the following protected packages: dnf
    (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


    Below is the info on O/S level and ssl and rpm levels.  Any ideas on how to get past this?

    Thanks

    Jaqui


    oslevel -s
    7200-05-04-2220

    SSL is openssl and is installed at  1.1.2.1202
    lslpp -l | grep ssl
      openssl.base            1.1.2.1202  COMMITTED  Open Secure Socket Layer
      openssl.license         1.1.2.1202  COMMITTED  Open Secure Socket License
      openssl.man.en_US       1.1.2.1202  COMMITTED  Open Secure Socket Layer
      openssl.base            1.1.2.1202  COMMITTED  Open Secure Socket Layer

    emgr -P

    PACKAGE                                                  INSTALLER   LABEL
    ======================================================== =========== ==========
    bos.rte.printers                                         installp    IJ39876s3a
    bos.net.tcp.bind_utils                                   installp    IJ40615m4b
    bos.net.tcp.bind                                         installp    IJ40615m4b
    bos.mp64                                                 installp    IJ41685s4a
    bos.rte.control                                          installp    IJ42339s4a
    zlibNX.rte                                               installp    IJ41754s4a

     lslpp -L rpm.rte
      Fileset                      Level  State  Type  Description (Uninstaller)
      ----------------------------------------------------------------------------
      rpm.rte                4.15.1.1010    C     F    RPM Package Manager


    rpm -qa | sort

    AIX-rpm-7.2.5.103-51.ppc
    bash-5.1.16-1.ppc
    bzip2-1.0.8-2.ppc
    ca-certificates-2020.06.01-2.ppc
    check-0.13.0-1.ppc
    coreutils-9.0-1.ppc
    cups-2.2.3-3.ppc
    cups-libs-2.2.3-3.ppc
    curl-7.83.1-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    db-5.3.28-1.ppc
    dbus-1.14.0-1.ppc
    dnf-4.2.17-32_50.ppc
    dnf-automatic-4.2.17-32_50.ppc
    dnf-data-4.2.17-32_50.ppc
    expat-2.4.9-1.ppc
    gcc10-10.3.0-6.ppc
    gcc10-cpp-10.3.0-6.ppc
    gdbm-1.23-1.ppc
    gettext-0.21-2.ppc
    glib2-2.56.1-3.ppc
    gmp-6.2.1-1.ppc
    gnupg2-2.2.35-1.ppc
    gnutls-3.7.2-1.ppc
    gpgme-1.13.1-100.ppc
    gzip-1.12-2.ppc
    info-6.7-1.ppc
    jbigkit-2.1-1.ppc
    jbigkit-libs-2.1-1.ppc
    json-c-0.15-2.ppc
    krb5-libs-1.18.5-2.ppc
    libassuan-2.5.5-1.ppc
    libcomps-0.1.11-100.ppc
    libdnf-0.39.1-32_50.ppc
    libffi-3.4.2-1.ppc
    libgcc-8-1.ppc
    libgcc10-10.3.0-6.ppc
    libgcc8-8.3.0-6.ppc
    libgcrypt-1.9.4-1.ppc
    libgo-8-1.ppc
    libgo-devel-8-1.ppc
    libgo8-8.3.0-6.ppc
    libgo8-devel-8.3.0-6.ppc
    libgomp-8-1.ppc
    libgomp8-8.3.0-6.ppc
    libgpg-error-1.45-1.ppc
    libgpg-error-devel-1.45-1.ppc
    libiconv-1.17-1.ppc
    libjpeg-9d-1.ppc
    libksba-1.6.0-1.ppc
    libmodulemd-1.5.2-100.ppc
    libmpc-1.2.1-1.ppc
    libnghttp2-1.46.0-1.ppc
    libpaper-1.1.24-2.ppc
    libpng-1.6.37-1.ppc
    librepo-1.11.0-100.ppc
    libsmartcols-2.34-100.ppc
    libsmbclient-4.16.5-1.ppc
    libsolv-0.7.9-32_51.ppc
    libssh2-1.10.0-1.ppc
    libstdc++-8-1.ppc
    libstdc++-devel-8-1.ppc
    libstdc++8-8.3.0-6.ppc
    libstdc++8-devel-8.3.0-6.ppc
    libtasn1-4.16.0-1.ppc
    libtextstyle-0.21-2.ppc
    libtiff-4.4.0-1.ppc
    libunistring-0.9.10-1.ppc
    libwebp-1.0.2-1.ppc
    libxml2-2.9.14-1.ppc
    libyaml-0.2.5-1.ppc
    libzstd-1.5.2-1.ppc
    mpfr-4.1.0-1.ppc
    ncurses-6.3-1.ppc
    nettle-3.7.3-1.ppc
    npth-1.5-1.ppc
    openldap-2.4.58-4.ppc
    p11-kit-0.23.22-1.ppc
    p11-kit-tools-0.23.22-1.ppc
    pinentry-1.0.0-1.ppc
    popt-1.18-1.ppc
    pysqlite-2.8.3-2.ppc
    python-2.7.18-3.ppc
    python-devel-2.7.18-3.ppc
    python-iniparse-0.4-1.noarch
    python-pycurl-7.43.0-1.ppc
    python-tools-2.7.18-3.ppc
    python-urlgrabber-3.10.1-1.noarch
    python3-3.7.12-1.ppc
    python3-dateutil-2.8.0-1.noarch
    python3-dnf-4.2.17-32_50.ppc
    python3-dnf-plugin-migrate-4.0.16-32_50.ppc
    python3-dnf-plugins-core-4.0.16-32_50.ppc
    python3-gpg-1.13.1-100.ppc
    python3-hawkey-0.39.1-32_50.ppc
    python3-libcomps-0.1.11-100.ppc
    python3-libdnf-0.39.1-32_50.ppc
    python3-librepo-1.11.0-100.ppc
    python3-six-1.13.0-1.noarch
    readline-8.1-1.ppc
    rpm-python3-4.15.1-32_1.ppc
    samba-4.16.5-1.ppc
    samba-client-4.16.5-1.ppc
    samba-common-4.16.5-1.ppc
    samba-devel-4.16.5-1.ppc
    samba-libs-4.16.5-1.ppc
    samba-winbind-4.16.5-1.ppc
    samba-winbind-clients-4.16.5-1.ppc
    sed-4.8-1.ppc
    sqlite-3.37.2-1.ppc
    sudo-1.9.5p2-1.ppc
    xz-libs-5.2.5-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    zchunk-libs-1.1.4-101.ppc
    zlib-1.2.12-1.ppc

    rpm -qa | grep python
    python-iniparse-0.4-1.noarch
    python-urlgrabber-3.10.1-1.noarch
    python-devel-2.7.18-3.ppc
    rpm-python3-4.15.1-32_1.ppc
    python3-dateutil-2.8.0-1.noarch
    python3-3.7.12-1.ppc
    python3-hawkey-0.39.1-32_50.ppc
    python3-dnf-4.2.17-32_50.ppc
    python3-dnf-plugins-core-4.0.16-32_50.ppc
    python-2.7.18-3.ppc
    python-pycurl-7.43.0-1.ppc
    python-tools-2.7.18-3.ppc
    python3-six-1.13.0-1.noarch
    python3-libcomps-0.1.11-100.ppc
    python3-libdnf-0.39.1-32_50.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



    ------------------------------
    Jaqui Lynch
    ------------------------------


  • 2.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Thu June 15, 2023 05:33 PM

    Same problem for me on a 7200-05-06-2320 server:

    root> dnf info dnf
    ...
    Installed Packages
    Name         : dnf
    Version      : 4.2.17
    Release      : 32_50
    Architecture : ppc
    Size         : 9.3 k
    Source       : dnf-4.2.17-32_50.src.rpm
    Repository   : @System
    From repo    : AIX_Toolbox_72
    Summary      : Package manager
    License      : GPLv2+ and GPLv2 and GPL
    Description  : Utility that allows users to manage packages on their systems.
                 : It supports RPMs, modules and comps groups & environments.
     
    Available Packages
    Name         : dnf
    Version      : 4.2.17
    Release      : 32_51
    Architecture : ppc
    Size         : 14 k
    Source       : dnf-4.2.17-32_51.src.rpm
    Repository   : AIX_Toolbox_72
    Summary      : Package manager
    License      : GPLv2+ and GPLv2 and GPL
    Description  : Utility that allows users to manage packages on their systems.
                 : It supports RPMs, modules and comps groups & environments.


    ------------------------------
    Robert Wood
    ------------------------------



  • 3.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Thu June 15, 2023 06:13 PM

    I was able to do the update after I upgraded the rpm.rte fileset. See instructions here:

    https://community.ibm.com/community/user/power/discussion/migrating-to-python39-for-aix-toolbox-python3-ecosystem



    ------------------------------
    Robert Wood
    ------------------------------



  • 4.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Thu June 15, 2023 10:03 PM
    I did update rpm before doing this. Still getting the error

    Thanks

    Jaqui

    Sent from my iPhone




  • 5.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Fri June 16, 2023 06:35 AM

    Hi Jaqui,

    Can you run the updtvpkg command and retry.

    The AIX-rpm should list as.

    # rpm -q --provides AIX-rpm | grep librpm
    librpm.a(librpm.so.9)
    librpm.so
    librpm.so.9
    librpmbuild.a(librpmbuild.so.9)
    librpmbuild.so
    librpmbuild.so.9
    librpmio.a(librpmio.so.9)
    librpmio.so
    librpmio.so.9
    librpmsign.a(librpmsign.so.9)
    librpmsign.so
    librpmsign.so.9



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



  • 6.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Fri June 16, 2023 10:30 AM

    I was having the same issue yesterday after updating yum to dnf.  Today, i ran "dnf clean all" and tried again and now it's working.  IBM must have updated something in the repositories between yesterday and today.  Hopefully that works for you too!



    ------------------------------
    Isaac Kremer
    ------------------------------



  • 7.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Fri June 16, 2023 01:06 PM

    Thanks.  That worked for me but after running dnf update and updtvpkg (and rpm is updated t0 1010) I now get the following on dnf check:

    dnf check
    python3-dnf-plugin-migrate-4.0.16-32_51.ppc has installed conflict "python3-dnf-plugin-migrate < 4.0.16-64_1": python3-dnf-plugin-migrate-4.0.16-32_51.ppc
    python3-dnf-plugins-core-4.0.16-32_51.ppc has installed conflict "python3-dnf-plugins-core < 4.0.16-64_1": python3-dnf-plugins-core-4.0.16-32_51.ppc
    Error: Check discovered 2 problem(s)

    Anyone else see this?


    Thanks


    Jaqui

    On 6/16/2023 9:31 AM, Isaac Kremer via IBM TechXchange Community wrote:
    01000188c49e87fa-b171d4b5-20a1-4bfa-b9c1-e4f4db9df6bd-000000@email.amazonses.com">
    I was having the same issue yesterday after updating yum to dnf.  Today, i ran "dnf clean all" and tried again and now it's working.  IBM must...
    IBM TechXchange Community

    AIX Open Source

    Post New Message
    Re: DNF update fails with error saying the update would result in removing dnf
    Reply to Group Reply to Sender
    Isaac Kremer
    Jun 16, 2023 10:30 AM
    Isaac Kremer

    I was having the same issue yesterday after updating yum to dnf.  Today, i ran "dnf clean all" and tried again and now it's working.  IBM must have updated something in the repositories between yesterday and today.  Hopefully that works for you too!



    ------------------------------
    Isaac Kremer
    ------------------------------
      Reply to Group Online   View Thread   Recommend   Forward   Flag as Inappropriate  




     
    You are receiving this notification because you followed the 'DNF update fails with error saying the update would result in removing dnf' message thread. If you do not wish to follow this, please click here.

    Update your email preferences to choose the types of email you receive

    Unsubscribe from all participation emails




    Original Message:
    Sent: 6/16/2023 9:40:00 AM
    From: Isaac Kremer
    Subject: RE: DNF update fails with error saying the update would result in removing dnf

    I was having the same issue yesterday after updating yum to dnf.  Today, i ran "dnf clean all" and tried again and now it's working.  IBM must have updated something in the repositories between yesterday and today.  Hopefully that works for you too!



    ------------------------------
    Isaac Kremer
    ------------------------------


  • 8.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Mon June 19, 2023 01:26 PM

    Hi Jaqui - yes I have also seen this problem on AIX 7.2 (7.3 seems fine).  

    rowswell@nim01(b):/home/rowswell:$ s dnf update

    AIX generic repository                                                                            3.0 MB/s |  19 MB     00:06   

    AIX noarch repository                                                                             1.4 MB/s | 2.4 MB     00:01   

    AIX 7.2 specific repository                                                                       916 kB/s | 1.2 MB     00:01   

    Last metadata expiration check: 0:00:01 ago on Mon Jun 19 11:20:14 MDT 2023.

    Dependencies resolved.

    Nothing to do.

    Complete!

    rowswell@nim01(b):/home/rowswell:$ s dnf check

    python3-dnf-plugin-migrate-4.0.16-32_51.ppc has installed conflict "python3-dnf-plugin-migrate < 4.0.16-64_1": python3-dnf-plugin-migrate-4.0.16-32_51.ppc

    python3-dnf-plugins-core-4.0.16-32_51.ppc has installed conflict "python3-dnf-plugins-core < 4.0.16-64_1": python3-dnf-plugins-core-4.0.16-32_51.ppc

    Error: Check discovered 2 problem(s)

    During the "dnf update" I saw this message MANY times:

      Running scriptlet: rpm-python3.9-4.15.1-32_2.ppc                                                                          19/70

     

    This gets repeated MANY times  (did not happen with AIX 7.3)

     

    uname: invalid option -- 'W'

    Try 'uname --help' for more information.

    I resolved the dnf check errors by removing the packages:

    rowswell@nim01(b):/home/rowswell:$ s dnf erase python3-dnf-plugin-migrate-4.0.16-32_51.ppc python3.9-dnf-plugin-migrate-4.0.16-32_51.ppc

    ..

    rowswell@nim01(b):/home/rowswell:$ s dnf erase python3-dnf-plugins-core-4.0.16-32_51.ppc

    ..

    rowswell@nim01(b):/home/rowswell:$ s dnf update

    Last metadata expiration check: 0:01:52 ago on Mon Jun 19 11:20:14 MDT 2023.

    Dependencies resolved.

    Nothing to do.

    Complete!

    rowswell@nim01(b):/home/rowswell:$ s dnf check

    rowswell@nim01(b):/home/rowswell:$



    ------------------------------
    Dean Rowswell
    ------------------------------



  • 9.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Tue June 20, 2023 08:39 AM

    Seems to be a packaging error.

    We will correct this and upload the rebuilt version.



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



  • 10.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Tue June 20, 2023 09:16 AM

    Yep,

    Same here. Not seeing the issue in AIX 7.3 but definitely 7.2.   Had to add an additional step to our playbook to remove:

        - name: remove conflicting dnf packages (on AIX 7.2)
          dnf:
            name: python3-dnf-plugin-migrate, python3-dnf-plugins-core
            state: absent
          when: aix_version.stdout == "7.2.0.0"

    I see that this is being fixed as a result of a packaging error from the previous reply so that is good.

    Brent



    ------------------------------
    Brent Fortman
    ------------------------------



  • 11.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Fri June 16, 2023 01:40 PM

    The "open source guys" have moved their base release of python3 to python3.9 along with dnf.  So what was working say yesterday suddenly is broken since IBM doesn't use dnf modules to manage major releases of software packages (like RHEL does).

    This is documented here:

    https://community.ibm.com/community/user/power/discussion/migrating-to-python39-for-aix-toolbox-python3-ecosystem#bm894a7503-8015-4bf4-a5d5-197f17645d3b

    Basically you need rpm.rte 4.15.1.1010 for AIX 7.1 or 72  or 4.15.1.2009 for AIX 7.3 (you can download them from the link above)

    Be sure to run updtvpkg after rpm.rte install

    Then run "dnf update"

    If you are using python3 along with pip modules, you may need to run:

    /usr/bin/python3 -m ensurepip
    python3 -m pip install --upgrade pip

    Brent



    ------------------------------
    Brent Fortman
    ------------------------------



  • 12.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Sat June 17, 2023 03:30 PM
    Edited by Douglas Probst Sat June 17, 2023 03:37 PM

    I am in the middle of a production upgrade of 6 server and today dnf update stopped working on these boxes.  Really glad AIX used installp and we don't have to deal with this unmanaged Package manage for the OS.  I am rather irritated this is not working .. where is the link to the rpm I have to install to fix this, I don't want to read a book just get my servers patched before my outage window.. 

    For the next guy, here is the link, install it with installp, run updtvpkg then your dnf update will work.

    https://iwm.dhe.ibm.com/sdfdl/v2/regs2/rjagarla/Xa.2/Xb.YpX6IhcfDwrUvp2x3TsfOjNrRzZUSEEpocHy6hkIOVQ/Xc.rpm.rte.4.15.1.1010/Xd./Xf.lPr.AAvi/Xg.12341911/Xi.aixbp/XY.regsrvs/XZ.2kYxJr57snErCKAtj-cyM4GaDANiejvv/rpm.rte.4.15.1.1010
    ------------------------------
    Douglas Probst
    ------------------------------



  • 13.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Mon June 19, 2023 03:01 AM
    Edited by Ayappan P Mon June 19, 2023 03:01 AM

    pip & setuptools are now delivered as separate rpms for python3.9. So we recommend the users to install the rpms (python3-pip & python3-setuptools) instead of running ensurepip. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 14.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Tue August 01, 2023 03:38 PM
    Edited by Joshua Krause Tue August 01, 2023 03:41 PM

    I updated my rpm.rte to the proper version and now getting this error:

    dnf update
    AIX Generic repo                                                                                                                                                           10 MB/s | 6.4 MB     00:00
    AIX 7.2 specific repo                                                                                                                                                     5.2 MB/s | 1.2 MB     00:00
    AIX Noarch contentitory                                                                                                                                                   115 kB/s |  14 kB     00:00
    AIX Beta contentitory                                                                                                                                                     116 kB/s |  14 kB     00:00
    Error:
     Problem 1: package python3-dnf-plugins-core-4.0.16-32_52.ppc requires python3.9-dnf-plugins-core = 4.0.16-32_52, but none of the providers can be installed
      - cannot install the best update candidate for package python3-dnf-plugins-core-4.0.16-32_50.ppc
      - nothing provides python3.9-dateutil needed by python3.9-dnf-plugins-core-4.0.16-32_52.ppc
     Problem 2: package python3-dnf-plugin-migrate-4.0.16-32_52.ppc requires python3.9-dnf-plugin-migrate = 4.0.16-32_52, but none of the providers can be installed
      - package python3.9-dnf-plugin-migrate-4.0.16-32_52.ppc requires python3.9-dnf-plugins-core = 4.0.16-32_52, but none of the providers can be installed
      - cannot install the best update candidate for package python3-dnf-plugin-migrate-4.0.16-32_50.ppc
      - nothing provides python3.9-dateutil needed by python3.9-dnf-plugins-core-4.0.16-32_52.ppc
    (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

    Python3.9 is at proper version:

    (beastmastere:/tmp/rpm-test)#  rpm -qa | grep python3.9
    python3.9-3.9.17-1.ppc
    python3.9-gpg-1.13.1-101.ppc
    python3.9-libdnf-0.39.1-32_52.ppc
    python3.9-libcomps-0.1.15-101.ppc
    rpm-python3.9-4.15.1-32_2.ppc
    python3.9-hawkey-0.39.1-32_52.ppc
    python3.9-dnf-4.2.17-32_51.ppc

    What am I missing?



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



  • 15.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Thu August 03, 2023 11:57 AM
    Edited by SANGAMESH MALLAYYA Thu August 03, 2023 11:56 AM

    Hi Joshua,

    Your noarch repository doesn't seem to contain information of all the required latest package meta data information.

    Your noarch metadata information size seems to be very less (14KB).

    The current size is around 2.5MB.

    This what i get

    # dnf list python3.9-date\*
    AIX generic repository                                                                    4.1 MB/s |  19 MB     00:04
    AIX noarch repository                                                                     5.4 MB/s | 2.5 MB     00:00
    AIX 7.3 specific repository                                                               684 kB/s | 341 kB     00:00
    Available Packages
    python3.9-dateutil.noarch                                    2.8.0-2                                    AIX_Toolbox_noarch

    Please verify your noarch repository.



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



  • 16.  RE: DNF update fails with error saying the update would result in removing dnf

    Posted Thu August 03, 2023 12:20 PM

    Thanks for pointing that out.  Not sure how that got messed up but the noarch and beta had the same url being used on our Redhat Satellite server.



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