rpm-software-management / dnf5

Next-generation RPM package management system
Other
253 stars 86 forks source link

Nondescriptive error when upgrading a package which has been removed: "Package was not found in rpm database" #492

Open ppisar opened 1 year ago

ppisar commented 1 year ago

When running "dfn5 upgrade", I noticed an unneeded package. So I run "dnf remove" for that single package in parallel. The removal finished before a transaction check of the upgrade and naturally the transaction check of the upgrade failed because of the package became missing:

[163/163] Total                                                                                                                                                           100% |  13.7 MiB/s | 279.7 MiB |  00m20s
Verifying PGP signatures

Running transaction
Package was not found in rpm database

My complain is that the error message does name what package is missing. In my case it was texlive-lib package. I would expect:

texlive-lib package was not found in rpm database.

Observed with dnf5-5.0.7-20230405004417.109.g1a26c95b.fc38.x86_64.

j-mracek commented 1 year ago

I agree, we should check rpm cookie to identify whether RPMdb is still at the same state. I think it could be related enhancement of dnf5 lock.