AIX Open Source

 View Only
  • 1.  dnf not found error on AIX server

    Posted 12 days ago

    Hi Team,

    After upgrading OS from 7.2 to 7.3, we are getting error dnf not found. We did lot of upgrade but first time we see this error. We can see python3.9 is missing from /opt/freeware/bin path. Can you please suggest?

    root@host:/opt# /opt/freeware/bin/dnf list
    ksh: /opt/freeware/bin/dnf:  not found.
    root@host:/opt# ls -dl /opt/freeware/bin/dnf
    lrwxrwxrwx    1 root     system            5 Feb 19 00:48 /opt/freeware/bin/dnf -> dnf-3
    root@host:/opt# head -1 /opt/freeware/bin/dnf
    #!/opt/freeware/bin/python3.9
    root@host:/opt# ls -ld /opt/freeware/bin/python3.9
    ls: 0653-341 The file /opt/freeware/bin/python3.9 does not exist.
    root@host:/opt# ls -ld /opt/freeware/bin/python3
    lrwxrwxrwx    1 root     system            9 Oct 01 2024  /opt/freeware/bin/python3 -> python3.9
    root@host:/opt# ls -ld /opt/freeware/bin/python3
    lrwxrwxrwx    1 root     system            9 Oct 01 2024  /opt/freeware/bin/python3 -> python3.9
    root@host:/opt# ls -ld /opt/freeware/bin/python3.9
    ls: 0653-341 The file /opt/freeware/bin/python3.9 does not exist.
    root@host:/opt# file /opt/freeware/bin/python3
    /opt/freeware/bin/python3: symbolic link to python3.9.
    root@host:/opt# file /opt/freeware/bin/dnf
    /opt/freeware/bin/dnf: shell script 
    root@host:/opt# dnf 
    ksh: dnf:  not found.
    root@host:/opt# head -1 /opt/freeware/bin/dnf
    #!/opt/freeware/bin/python3.9
    root@host:/opt# 
    root@host:/opt# rpm -qa --last|grep -i python3
    1743732691                                    python3-librepo-1.11.0-103.ppc Thu Apr  3 22:11:31 EDT 2025
    1743732691                                    python3-libdnf-0.39.1-64_52.ppc Thu Apr  3 22:11:31 EDT 2025
    1743732691                                    python3-libcomps-0.1.15-101.ppc Thu Apr  3 22:11:31 EDT 2025
    1743732691                                    python3-hawkey-0.39.1-64_52.ppc Thu Apr  3 22:11:31 EDT 2025
    1743732691                                    python3-gpg-1.13.1-101.ppc Thu Apr  3 22:11:31 EDT 2025
    1743732690                                    python3.9-librepo-1.11.0-103.ppc Thu Apr  3 22:11:30 EDT 2025
    1743732690                                    python3.9-gpg-1.13.1-101.ppc Thu Apr  3 22:11:30 EDT 2025
    1743732690                                    python3.9-dnf-4.2.17-64_54.ppc Thu Apr  3 22:11:30 EDT 2025
    1743732690                                    python3-dnf-4.2.17-64_54.ppc Thu Apr  3 22:11:30 EDT 2025
    1743732689                                    python3.9-libdnf-0.39.1-64_52.ppc Thu Apr  3 22:11:29 EDT 2025
    1743732689                                    python3.9-hawkey-0.39.1-64_52.ppc Thu Apr  3 22:11:29 EDT 2025
    1743732685                                    python3.9-libcomps-0.1.15-101.ppc Thu Apr  3 22:11:25 EDT 2025
    1743732677                                    python3.9-3.9.20-1.ppc Thu Apr  3 22:11:17 EDT 2025
    1743732677                                    python3-3.9.20-1.ppc Thu Apr  3 22:11:17 EDT 2025
    1743732473                                    rpm-python3.9-4.15.1-64_4.ppc Thu Apr  3 22:07:53 EDT 2025
    1743732473                                    rpm-python3-4.15.1-64_4.ppc Thu Apr  3 22:07:53 EDT 2025



    ------------------------------
    Manoj Kumar
    ------------------------------


  • 2.  RE: dnf not found error on AIX server

    Posted 9 days ago

    Hi Manoj,

    Can you check what are all the files are missing by installed python3 package with "rpm -V python3-3.9.20-1"



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



  • 3.  RE: dnf not found error on AIX server

    Posted 8 days ago

    Please find below. That means nothing is missing?

    root@:/# rpm -V python3-3.9.20-1
    root@:/# 



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 4.  RE: dnf not found error on AIX server

    Posted yesterday

    Hi Team,

    Can we have update on it?



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 5.  RE: dnf not found error on AIX server

    Posted yesterday

    Run "rpm -V" on python3.9

    rpm -V python3.9 



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



  • 6.  RE: dnf not found error on AIX server

    Posted yesterday

    PFB.

    /# rpm -V python3.9
    missing     /opt/freeware/bin/python3.9
    ....L....    /opt/freeware/lib/libpython3.9.a
    ....L....    /opt/freeware/lib64/libpython3.9.a



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 7.  RE: dnf not found error on AIX server

    Posted 15 hours ago

    As you can see, the files are modified. The main binary python3.9 is missing and the libraries are now symlinks. 
    Please re-install python3.9 rpm manually. 



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



  • 8.  RE: dnf not found error on AIX server

    Posted 10 hours ago

    Hi Ayappan,

    We tried to install it manually but it is showing already installed. What would be next?

    root@:/mnt/python3# ls -rlt
    -rwxr-x---    1 c36661pa c36661pa   42388945 Apr 04 04:49 python3.9-3.9.20-1.aix7.1.ppc.rpm
    root@:/mnt/python3# rpm -Uvh python3.9-3.9.20-1.aix7.1.ppc.rpm
    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
            package python3.9-3.9.20-1.ppc is already installed

    # rpm -qa|grep -i python3
    rpm-python3.9-4.15.1-64_4.ppc
    rpm-python3-4.15.1-64_4.ppc
    python3.9-3.9.20-1.ppc
    python3-3.9.20-1.ppc
    python3.9-libcomps-0.1.15-101.ppc
    python3.9-libdnf-0.39.1-64_52.ppc
    python3.9-hawkey-0.39.1-64_52.ppc
    python3.9-gpg-1.13.1-101.ppc
    python3.9-dnf-4.2.17-64_54.ppc
    python3-dnf-4.2.17-64_54.ppc
    python3.9-librepo-1.11.0-103.ppc
    python3-librepo-1.11.0-103.ppc
    python3-gpg-1.13.1-101.ppc
    python3-hawkey-0.39.1-64_52.ppc
    python3-libdnf-0.39.1-64_52.ppc
    python3-libcomps-0.1.15-101.ppc
     



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 9.  RE: dnf not found error on AIX server

    Posted 7 hours ago

    Use "rpm --reinstall <rpm> "



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