AIX Open Source

 View Only
  • 1.  AIX 7322 - dnf upgrade fails with dependency chaos

    Posted Mon July 22, 2024 11:32 AM

    Hi,

    had a working dnf installation with aix 7312, updated to 7322, now updates fail with dependency conflict:
    Problem 1: cannot install both dnf-data-4.2.17-64_51.ppc and dnf-data-4.2.17-64_6.noarch
    Problem 2: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc

    Problem 3: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc


    tried update using --nobest and/or --allowerasing, only made dnf break itself.

    reinstallation fails due to missing dependencies, which it will not install due higher versions already installed.

    manually removing all conflicting packages and then installing + dnf update will lead to "Problem 1-3".

    read through some threads here, quite hard to follow (try this, try that, oops, package error, try again...). updated rpm, fresh download of install_dnf.sh - no change.



    ------------------------------
    Jan van Beers
    ------------------------------


  • 2.  RE: AIX 7322 - dnf upgrade fails with dependency chaos

    Posted Tue July 23, 2024 04:19 AM

    Same situation on AIX 731:

    manually removed all dnf related packages allows install_dnf.sh to claim "install successfully", yes it wil fail on first start, complaining about its own packages:

    (continung with --nobest, --allowerasing or --skip-broken will break the installation even further).

    Installing the packages...
     
    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:librepo-1.11.0-64_2              ################################# [  4%]
       2:rpm-python3.9-4.15.1-64_4        ################################# [  8%]
       3:rpm-python3-4.15.1-64_4          ################################# [ 13%]
       4:libdnf-0.39.1-64_5               ################################# [ 17%]
       5:python3.9-libdnf-0.39.1-64_5     ################################# [ 21%]
       6:python3.9-hawkey-0.39.1-64_5     ################################# [ 25%]
       7:python3.9-librepo-1.11.0-64_2    ################################# [ 29%]
       8:python3.9-gpg-1.13.1-64_3        ################################# [ 33%]
       9:libcomps-0.1.15-64_1             ################################# [ 38%]
      10:python3.9-libcomps-0.1.15-64_1   ################################# [ 42%]
      11:dnf-data-4.2.17-64_6             ################################# [ 46%]
      12:python3.9-dnf-4.2.17-64_6        ################################# [ 50%]
      13:python3-dnf-4.2.17-64_6          ################################# [ 54%]
      14:dnf-4.2.17-64_6                  ################################# [ 58%]
      15:dnf-automatic-4.2.17-64_6        ################################# [ 63%]
      16:python3-libcomps-0.1.15-64_1     ################################# [ 67%]
      17:python3-librepo-1.11.0-64_2      ################################# [ 71%]
      18:python3-hawkey-0.39.1-64_5       ################################# [ 75%]
      19:python3-libdnf-0.39.1-64_5       ################################# [ 79%]
      20:ca-certificates-2023.2.60-0      ################################# [ 83%]
    Cleaning up / removing...
      21:python3-libcomps-0.1.11-101      ################################# [ 88%]
      22:libcomps-0.1.11-101              ################################# [ 92%]
      23:rpm-python3-4.15.1-64_2          ################################# [ 96%]
      24:ca-certificates-2021.2.52-3      ################################# [100%]
     
    dnf installed successfully.
    Please run 'dnf update' to update packages to the latest level.

    root@k201aix:/mnt/dnf_731 # dnf update
    Last metadata expiration check: 0:00:05 ago on Tue Jul 23 10:13:57 DFT 2024.
    Error:
     Problem 1: cannot install both dnf-data-4.2.17-64_51.ppc and dnf-data-4.2.17-64_6.noarch
      - package python3.9-dnf-4.2.17-64_6.noarch requires dnf-data = 4.2.17-64_6, but none of the providers can be installed
      - cannot install the best update candidate for package dnf-data-4.2.17-64_6.noarch
      - problem with installed package python3.9-dnf-4.2.17-64_6.noarch
     Problem 2: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc
      - package python3.9-hawkey-0.39.1-64_5.ppc requires libdnf = 0.39.1-64_5, but none of the providers can be installed
      - cannot install the best update candidate for package libdnf-0.39.1-64_5.ppc
      - problem with installed package python3.9-hawkey-0.39.1-64_5.ppc
     Problem 3: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc
      - package python3-hawkey-0.39.1-64_50.ppc requires libdnf = 0.39.1-64_50, but none of the providers can be installed
      - package python3.9-libdnf-0.39.1-64_5.ppc requires libdnf = 0.39.1-64_5, but none of the providers can be installed
      - cannot install the best update candidate for package python3-hawkey-0.39.1-64_5.ppc
      - problem with installed package python3.9-libdnf-0.39.1-64_5.ppc
    (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)



    ------------------------------
    Jan van Beers
    ------------------------------



  • 3.  RE: AIX 7322 - dnf upgrade fails with dependency chaos

    Posted Tue July 23, 2024 05:47 AM

    Hi Jan,

    Can you show the output of your dnf.conf file and rpm -qa ?

    Did you try the "dnf update" after dnf clean all ?



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



  • 4.  RE: AIX 7322 - dnf upgrade fails with dependency chaos

    Posted Tue July 23, 2024 06:28 AM
    Edited by Jan van Beers Tue July 23, 2024 06:33 AM

    root@k201aix:/ # cat /opt/freeware/etc/dnf/dnf.conf.rpmsave

    [main]

    plugins=1

    cachedir=/var/cache/dnf

    keepcache=1

    debuglevel=2

    logfile=/var/log/dnf.log

    exactarch=1

    gpgcheck=1

    installonly_limit=3

    clean_requirements_on_remove=True

    best=True

     

     

     

     

    [AIX_Toolbox]

    name=AIX generic repository

    baseurl=http://192.168.x.y/yumrepo/yum/AIX_Toolbox/

    enabled=1

    gpgcheck=0

     

     

    [AIX_Toolbox_noarch]

    name=AIX noarch repository

    baseurl=http://192.168.x.y/yumrepo/yum/AIX_Toolbox_noarch/

    enabled=1

    gpgcheck=0

     

    [AIX_Toolbox_72]

    name=AIX 7.2 specific repository

    baseurl=http://192.168.x.y/yumrepo/yum/AIX_Toolbox_72/

    enabled=0

    gpgcheck=0

     

    [AIX_Toolbox_73]

    name=AIX 7.3 specific repository

    baseurl=http://192.168.x.y/yumrepo/yum/AIX_Toolbox_73/

    enabled=1

    gpgcheck=0

     

     

    [Diverse_RPM]

    name=Other AIX generic repository

    baseurl=http://192.168.x.y/yumrepo/yum/Diverse/

    enabled=1

    gpgcheck=0


    root@k201aix:/ # dnf clean all
    35 files removed
    You have mail in /usr/spool/mail/root
    root@k201aix:/ # dnf update
    AIX generic repository                                               77 MB/s | 7.5 MB     00:00
    AIX noarch repository                                                59 MB/s | 2.9 MB     00:00
    AIX 7.3 specific repository                                          15 MB/s | 248 kB     00:00
    Other AIX generic repository                                        648 kB/s | 5.2 kB     00:00
    Error:
     Problem 1: cannot install both dnf-data-4.2.17-64_51.ppc and dnf-data-4.2.17-64_6.noarch
      - package python3.9-dnf-4.2.17-64_6.noarch requires dnf-data = 4.2.17-64_6, but none of the providers can be installed
      - cannot install the best update candidate for package dnf-data-4.2.17-64_6.noarch
      - problem with installed package python3.9-dnf-4.2.17-64_6.noarch
     Problem 2: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc
      - package python3.9-hawkey-0.39.1-64_5.ppc requires libdnf = 0.39.1-64_5, but none of the providers can be installed
      - cannot install the best update candidate for package libdnf-0.39.1-64_5.ppc
      - problem with installed package python3.9-hawkey-0.39.1-64_5.ppc
     Problem 3: cannot install both libdnf-0.39.1-64_50.ppc and libdnf-0.39.1-64_5.ppc
      - package python3-hawkey-0.39.1-64_50.ppc requires libdnf = 0.39.1-64_50, but none of the providers can be installed
      - package python3.9-libdnf-0.39.1-64_5.ppc requires libdnf = 0.39.1-64_5, but none of the providers can be installed
      - cannot install the best update candidate for package python3-hawkey-0.39.1-64_5.ppc
      - problem with installed package python3.9-libdnf-0.39.1-64_5.ppc
    (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)

     

     






  • 5.  RE: AIX 7322 - dnf upgrade fails with dependency chaos

    Posted Tue July 30, 2024 03:40 AM

    OK, solved:
    the rpm provided in https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/dnf_bundle_aix_73_v12.tar are incomatible to each other/AIX7.3  [given the package is fron late 2023, one should not be surprised], manually collecting from the toolbox website (https://www.ibm.com/support/pages/node/883796#top) the as of today current versions

    python3-dnf-4.2.17-64_53.aix7.3.ppc.rpm

    dnf-data-4.2.17-64_53.aix7.3.ppc.rpm

    python3-hawkey-0.39.1-64_52.aix7.3.ppc.rpm 

    python3-dnf-4.2.17-64_53.aix7.3.ppc.rpm

     python3.9-dnf-4.2.17-64_53.aix7.3.ppc.rpm

    python3.9-hawkey-0.39.1-64_52.aix7.3.ppc.rpm

    python3.9-gpg-1.13.1-101.aix7.1.ppc.rpm 

    python3.9-libcomps-0.1.15-101.aix7.1.ppc.rpm

    python3.9-libdnf-0.39.1-64_52.aix7.3.ppc.rpm 

    libdnf-0.39.1-64_52.aix7.3.ppc.rpm

    python3.9-libdnf-0.39.1-64_52.aix7.3.ppc.rpm 

    libcomps-0.1.15-101.aix7.1.ppc.rpm 

    python3.9-libcomps-0.1.15-101.aix7.1.ppc.rpm 

    python3.9-libdnf-0.39.1-64_52.aix7.3.ppc.rpm 

    libsolv-0.7.9-64_52.aix7.3.ppc.rpm 

    librepo-1.11.0-103.aix7.1.ppc.rpm 

    gpgme-1.13.1-101.aix7.1.ppc.rpm 

    dnf-4.2.17-64_53.aix7.3.ppc.rpm

    and rpm -Uvh them will install a working environment, dnf update will then be able to start. No need for install_dnf.sh scripts or interent connectivity during installation.



    ------------------------------
    Jan van Beers
    ------------------------------