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
  • 1.  dnf update leads to dnf-automatic package conflict

    Posted Mon July 25, 2022 07:27 PM
    Hi,

    We just did an OS upgrade to AIX 7.2 SP2.  Following that, we did a updtvpkg and then ran dnf update.  During the update, we saw this:

    Running scriptlet: dnf-automatic-4.2.17-64_3.noarch 59/86
    error: %preun(dnf-automatic-4.2.17-64_3.noarch) scriptlet failed, exit status 1

    Error in PREUN scriptlet in rpm package dnf-automatic
    Running scriptlet: dnf-4.2.17-64_3.noarch 60/86
    error: dnf-automatic-4.2.17-64_3.noarch: erase failed
    error: %preun(dnf-4.2.17-64_3.noarch) scriptlet failed, exit status 1

    Error in PREUN scriptlet in rpm package dnf
    Cleanup : python3-dnf-4.2.17-64_3.noarch 61/86
    error: dnf-4.2.17-64_3.noarch: erase failed

    Now we get this with a dnf check:

    [root@crilnim1 ~]# dnf check
    dnf-4.2.17-64_3.noarch has missing requires of python3-dnf = 4.2.17-64_3
    dnf-4.2.17-64_3.noarch is a duplicate with dnf-4.2.17-64_51.ppc
    dnf-automatic-4.2.17-64_3.noarch is a duplicate with dnf-automatic-4.2.17-64_51.ppc
    Error: Check discovered 3 problem(s)

    Also, this:

    [root@crilnim1 ~]# rpm -qa | grep -i dnf
    dnf-automatic-4.2.17-64_3.noarch
    python3-libdnf-0.39.1-64_50.ppc
    dnf-4.2.17-64_51.ppc
    dnf-4.2.17-64_3.noarch
    dnf-data-4.2.17-64_51.ppc
    libdnf-0.39.1-64_50.ppc
    python3-dnf-4.2.17-64_51.ppc
    dnf-automatic-4.2.17-64_51.ppc

    It kind of looks like a "noarch" package was to be replaced with a "ppc" package but it got all messed up.  See this for example:

    [root@crilnim1 ~]# rpm -ql dnf-automatic-4.2.17-64_3.noarch
    /opt/freeware/bin/dnf-automatic
    /opt/freeware/lib/python3.7/site-packages/dnf/automatic
    /opt/freeware/lib/python3.7/site-packages/dnf/automatic/__init__.py
    /opt/freeware/lib/python3.7/site-packages/dnf/automatic/emitter.py
    /opt/freeware/lib/python3.7/site-packages/dnf/automatic/main.py
    [root@crilnim1 ~]# rpm -ql dnf-automatic-4.2.17-64_51.ppc
    /opt/freeware/bin/dnf-automatic
    /opt/freeware/lib/python3.7/site-packages/dnf/automatic
    /opt/freeware/lib/python3.7/site-packages/dnf/automatic/__init__.py
    /opt/freeware/lib/python3.7/site-packages/dnf/automatic/emitter.py
    /opt/freeware/lib/python3.7/site-packages/dnf/automatic/main.py

    ...which is almost for sure not okay.  Please tell me how to properly fix this.  I have 6 new AIX 7.3 LPARs I'd like to soon put in production but I don't want to push out broken stuff.  Thanks.

    Mike





    ------------------------------
    Michael Metts
    ------------------------------


  • 2.  RE: dnf update leads to dnf-automatic package conflict

    Posted Tue July 26, 2022 02:10 AM
    Hi Michael,

    The dnf packages with errors you are seeing are for AIX 7.3.
    Is this a migration from AIX 7.1/7.2 to AIX 7.3 or it's an upgrade to AIX 7.2 ?


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



  • 3.  RE: dnf update leads to dnf-automatic package conflict

    Posted Tue July 26, 2022 02:43 AM
    Hi Sangamesh,

    These are AIX 7.3 LPARs that had a clean install of dnf and the repos when we first built them about 2 months ago. There’s not migration here. We just applied a service pack to take it from 7300-00-01-2148 to 7300-00-02-2220. The service pack installed w/o errors. lppchk was run with no errors. updtvpkg was run with no errors.

    Then, we ran dnf update and got the things you see in my post. To be clear, these are existing AIX 7.3 systems with dnf running on them having been installed when they were recently built. We did not use the dnf script.

    We really want to fix this:

    [root@crilnim1 ~]# dnf check
    dnf-4.2.17-64_3.noarch has missing requires of python3-dnf = 4.2.17-64_3
    dnf-4.2.17-64_3.noarch is a duplicate with dnf-4.2.17-64_51.ppc
    dnf-automatic-4.2.17-64_3.noarch is a duplicate with dnf-automatic-4.2.17-64_51.ppc
    Error: Check discovered 3 problem(s)




    Please advise.

    Thanks,
    Mike

    Michael L. Metts (he/him/his)
    /ˈmaɪkəɫ ˈɛɫ ˈmɛts/
    Principal Data Engineer
    CORNERSTONE RESEARCH
    1000 El Camino Real, Suite 250
    Menlo Park, CA 94025-4327
    650.470.7171 direct
    650.740.8551 mobile
    www.cornerstone.com<http: www.cornerstone.com="">




  • 4.  RE: dnf update leads to dnf-automatic package conflict

    Posted Tue July 26, 2022 05:09 AM
    Hi Michael,

    Actually we don't run any pre uinstall script in dnf and dnf-automatic which could fail.

    # rpm -qp --scripts dnf-automatic-4.2.17-64_4.aix7.1.noarch.rpm
    postinstall scriptlet (using /bin/sh):
    #%systemd_post dnf-automatic.timer
    #%systemd_post dnf-automatic-notifyonly.timer
    #%systemd_post dnf-automatic-download.timer
    #%systemd_post dnf-automatic-install.timer
    preuninstall scriptlet (using /bin/sh):
    #%systemd_preun dnf-automatic.timer
    #%systemd_preun dnf-automatic-notifyonly.timer
    #%systemd_preun dnf-automatic-download.timer
    #%systemd_preun dnf-automatic-install.timer
    postuninstall scriptlet (using /bin/sh):
    #%systemd_postun_with_restart dnf-automatic.timer
    #%systemd_postun_with_restart dnf-automatic-notifyonly.timer
    #%systemd_postun_with_restart dnf-automatic-download.timer
    #%systemd_postun_with_restart dnf-automatic-install.timer

    # rpm -qp --scripts dnf-4.2.17-64_4.aix7.1.noarch.rpm
    preuninstall scriptlet (using /bin/sh):
    #%systemd_preun dnf-makecache.timer
    postuninstall scriptlet (using /bin/sh):
    #%systemd_postun_with_restart dnf-makecache.timer

    So, you had the rpm packages from bundled installed manually without using dnf script ?
    I am not sure how AIX update would cause this error.
    Will check more on this and let you know.

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



  • 5.  RE: dnf update leads to dnf-automatic package conflict

    Posted Tue July 26, 2022 10:20 AM
    Hi Sangamesh,

    Okay. One more time:

    1) we built AIX 7.3 LPARs

    2) we installed dnf using the script

    3) we ran dnf update

    4) 2 months later we installed AIX 7.3 SP2

    5) we ran updtvpkg

    6) we ran dnf update

    Now it’s messed up. We *did not* run any rpm installs or scripts separately. Don’t you want to focus on the fact that you have 2 sets of 2 packages with the same names more or less but one set is PPC and one is NOARCH and now it’s reported that there’s a conflict because they are duplicates?

    Mike

    Michael L. Metts (he/him/his)
    /ˈmaɪkəɫ ˈɛɫ ˈmɛts/
    Principal Data Engineer
    CORNERSTONE RESEARCH
    1000 El Camino Real, Suite 250
    Menlo Park, CA 94025-4327
    650.470.7171 direct
    650.740.8551 mobile
    www.cornerstone.com<http: www.cornerstone.com="">




  • 6.  RE: dnf update leads to dnf-automatic package conflict

    Posted Tue July 26, 2022 10:46 AM
    Never mind. Fixed it myself. Thanks.


    [root@crilnim1 ~]# dnf check
    dnf-4.2.17-64_3.noarch has missing requires of python3-dnf = 4.2.17-64_3
    dnf-4.2.17-64_3.noarch is a duplicate with dnf-4.2.17-64_51.ppc
    dnf-automatic-4.2.17-64_3.noarch is a duplicate with dnf-automatic-4.2.17-64_51.ppc
    Error: Check discovered 3 problem(s)

    [root@crilnim1 dnf]# rpm -e --nodeps dnf-4.2.17-64_3.noarch
    [root@crilnim1 dnf]# rpm -e --nodeps dnf-automatic-4.2.17-64_3.noarch
    [root@crilnim1 dnf]# rpm -qa | grep python3-dnf
    python3-dnf-4.2.17-64_51.ppc

    [root@crilnim1 dnf]# ll
    total 464
    -rw-r----- 1 root system 11450 Jul 26 09:35 dnf-4.2.17-64_51.aix7.3.ppc.rpm
    -rw-r----- 1 root system 12291 Jul 26 09:35 dnf-automatic-4.2.17-64_51.aix7.3.ppc.rpm
    -rw-r----- 1 root system 197976 Jul 26 09:35 python3-dnf-4.2.17-64_51.aix7.3.ppc.rpm

    [root@crilnim1 dnf]# rpm -Fvh *.rpm
    [root@crilnim1 dnf]# dnf check
    [root@crilnim1 dnf]# dnf check-update
    Last metadata expiration check: 16:52:36 ago on Mon Jul 25 16:45:56 CDT 2022.
    [root@crilnim1 dnf]# rpm -Va
    missing /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/README
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/assert.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/complex.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/curses.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/dbm.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/fcntl.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/libmilter/mfapi.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/limits.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/locale.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/math.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/net/if_arp.h
    missing /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/netinet
    missing /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/netinet/if_802_5.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/pcap/bpf.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/setjmp.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stddef.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdint.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdio.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/stdlib.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/string.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/dir.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/param.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/signal.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/types.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/sys/wait.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/syslimits.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/time.h
    S.5....T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/unistd.h
    .......T. /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include-fixed/wchar.h
    S.5....T. /opt/freeware/lib/libiconv.a
    .M....... g /opt/freeware/etc/ssl/certs/extracted/java/cacerts
    .M....... g /opt/freeware/etc/ssl/certs/extracted/openssl/ca-bundle.trust.crt
    .M....... g /opt/freeware/etc/ssl/certs/extracted/pem/email-ca-bundle.pem
    .M....... g /opt/freeware/etc/ssl/certs/extracted/pem/objsign-ca-bundle.pem
    .M....... g /opt/freeware/etc/ssl/certs/extracted/pem/tls-ca-bundle.pem
    S.5....T. /opt/freeware/lib/libXrender.a
    S.5....T. c /opt/freeware/etc/dnf/dnf.conf
    [root@crilnim1 dnf]#




    Michael L. Metts (he/him/his)
    /ˈmaɪkəɫ ˈɛɫ ˈmɛts/
    Principal Data Engineer
    CORNERSTONE RESEARCH
    1000 El Camino Real, Suite 250
    Menlo Park, CA 94025-4327
    650.470.7171 direct
    650.740.8551 mobile
    www.cornerstone.com<http: www.cornerstone.com="">