Power

 View Only
  • 1.  dnf now fails with - what(): os-release file not found

    Posted Fri December 02, 2022 09:57 AM
    The dnf command was working great.  I needed to install curl so did ,

    # dnf install curl  -  got Complete!

    But now,

    # dnf list installed
    terminate called after throwing an instance of 'std::runtime_error'
    what(): os-release file not found
    IOT/Abort trap(coredump)

    Anyone comes across this please?

    Cheers
    Brad



    ------------------------------
    Bradley Wells
    ------------------------------


  • 2.  RE: dnf now fails with - what(): os-release file not found

    Posted Mon December 05, 2022 05:16 PM

    Bradley - Give the community a break and include the Operating System and if Linux the Distro and release, next time!!!

    Looks to me like you have deleted /etc/os-release

    Very unlikely to be caused by the upgrade.

    From a quick look around this config and versions file seems to be created by systemd.
    So if you think you feel lucky try an OS reboot.

    Best of luck, Nigel



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 3.  RE: dnf now fails with - what(): os-release file not found

    Posted Tue December 06, 2022 01:46 AM
    Morning Nigel,

    Sorry my bad, just assumed it would fall under AIX as POWER community post.

    Its AIX 7.2.(7200-05-01-2038)  So I ran truss against dnf after it stopped working following the dnf update and the update of python3 to latest version.

    It was looking for /etc/os-release file which I know is normally there in Linux and even Solaris 11.4 now. But never seen it on AIX.
    I created one and it moved on now looking for "/opt/freeware/etc/dnf/aliases.d/ALIASES.conf" so I created that one.  Sadly, it now just core dumps.  This is all to get curl-devel installed lol.  The latest version of curl that has a curl-devel wants python3 so you need to update curl and install python3 and then it goes wrong.  Still investigating.  Thanks for the quick reply..

    Kind regards,
    Brad

    ------------------------------
    Bradley Wells
    ------------------------------



  • 4.  RE: dnf now fails with - what(): os-release file not found

    Posted Tue December 20, 2022 12:29 PM
    We are having the same issue.  We are running AIX 7200-05-04-2220 and just ran dnf update --nobest on all our non-prod servers.  Seemed to work fine but after a subsequent reboot we get the same error message and also do not have any os-release file in /etc.  Is anyone from IBM working on this?

    ------------------------------
    Robert Murphy
    ------------------------------



  • 5.  RE: dnf now fails with - what(): os-release file not found

    Posted Wed December 21, 2022 02:55 AM
    Hi Robert,

    Not that I know of.  Like I say I got to move on by creating the missing files, but still ended up with it core dumping on each time I tried to run it.

    Cheers,
    Brad

    ------------------------------
    Bradley Wells
    ------------------------------



  • 6.  RE: dnf now fails with - what(): os-release file not found

    Posted Wed December 21, 2022 07:05 AM

    a colleague of mine got nmap working using the following steps.  
    rpm -evh nmap

    rpm -Uvh --oldpackage python3-3.7.9-0.aix7.1.ppc.rpm python3-devel-3.7.9-0.aix7.1.ppc.rpm python3-docs-3.7.9-0.aix7.1.ppc.rpm python3-test-3.7.9-0.aix7.1.ppc.rpm python3-tools-3.7.9-0.aix7.1.ppc.rpm python3-libcomps-0.1.11-32_1.aix7.1.ppc.rpm libcomps-0.1.11-32_1.aix7.1.ppc.rpm

    #note, the above will have errors related to the fact that the libcomps packages are already installed at a newer level

    dnf install nmap-7.80-1



    ------------------------------
    Robert Murphy
    ------------------------------



  • 7.  RE: dnf now fails with - what(): os-release file not found

    IBM Champion
    Posted Thu December 22, 2022 02:02 AM
    Hello Bradley,

    I think you should post this in the "open source" community to get some help from the AIX toolbox developers...

    best regards

    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 8.  RE: dnf now fails with - what(): os-release file not found

    Posted Fri December 23, 2022 01:47 AM
    Thanks for the pointer Joerg!

    Kind regards,
    Bradley

    ------------------------------
    Bradley Wells
    ------------------------------



  • 9.  RE: dnf now fails with - what(): os-release file not found

    Posted Tue February 07, 2023 10:18 AM
    Any resolution to this?  I attempted to create a os-release file, not sure I did it right, however it still isn't working.

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