any attempt to use dnf results in error: An error occurred when parsing the temporary files memory file at '/var/cache/libdnf5/temporary_files.toml': [error] toml::value::as_array(): bad_cast to array --> unknown file Google pointed me at python3-toml, but that package is not installed. Dnf is broken, so I cannot install anything to fix it. GnomeSoftware still works, I can do system updates, but nothing selective. Reproducible: Always Steps to Reproduce: 1. try to install software with dnf 2. 3. Actual Results: ailed to download packages An error occurred when parsing the temporary files memory file at '/var/cache/libdnf5/temporary_files.toml': [error] toml::value::as_array(): bad_cast to array --> unknown file fresh install of rawhide
Could you tell us what dnf5 version you use and what was the last operation with it before it started reporting this error?
By the way, what is a content of your /var/cache/libdnf5/temporary_files.toml?
/var/cache/libdnf5/temporary_files.toml is empty, zero length. The curious thing about it is the date, Dec. 1, rather than today, Dec. 4. It is not being newly created ? An earlier failure left this artifact ?
It might happened that DNF5 crashed before writing to that file. Currently DNF5 reports an error instead of ignoring bogus TOML files. If you want to get the error away, you can remove that file. A purpose of that file is to enumerate downloaded, but not yet installed packages. I think we won't find out how the bogus file was produced. I can reproduce the error by creating that empty file end invoking "dnf reinstall bash" with dnf5-5.2.8.0-20241204010939.0.g2af228e4.fc42.x86_64.
I will remove file and retry.
Removing file removed error. Thank you. further search turned up: https://github.com/rpm-software-management/dnf5/issues/1001 Known isssue.
*** Bug 2345199 has been marked as a duplicate of this bug. ***
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42.
*** Bug 2369519 has been marked as a duplicate of this bug. ***
Upstream PR: https://github.com/rpm-software-management/dnf5/pull/2372
FEDORA-2025-e4842f3165 (dnf5-5.2.16.0-1.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2025-e4842f3165
FEDORA-2025-e4842f3165 (dnf5-5.2.16.0-1.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report.