Fedora Account System
Red Hat Associate
Red Hat Customer
Happened to me on live distro: ```console # dnf --setopt=cachedir=/tmp/dnfcache remove somepackage Loading system state TOML file /usr/lib/sysimage/libdnf5/nevras.toml failed (see dnf5-system-state(7)): [error] bad format: unknown value appeared --> /usr/lib/sysimage/libdnf5/nevras.toml | 1669 | ... -3.fc41.x86_64" = {from_repo = | ^-- here [error] toml::parse_inline_table: missing closing bracket `}` --> /usr/lib/sysimage/libdnf5/nevras.toml | 1669 | ... -3.fc41.x86_64" = {from_repo = | ^-- expected `}`, reached line end ``` Apparently, it is vital for that file to always be in consistent state, written in full or not at all/former version retained. This situation is also likely not solvable by the means of dnf proper such as with a subcommand to reconcile the state, or even with some automatic resolution (consult RPM DB?). Reproducible: Always Additional Information: ```console # rpm -qf /usr/lib/sysimage/libdnf5/nevras.toml dnf5-5.2.11.0-1.fc43.x86_64 ```
Could `renameat2(,,,,RENAME_EXCHANGE)` possibly help?
*** This bug has been marked as a duplicate of bug 2330306 ***