On Wed, 14 Sep 2022 05:06:29 -0000
"Richard Myers" <rmm(a)cantrip.org> wrote:
This is for F35 -> F37 ...
I sure
would love it if anybody knows how to fix the below warning(?), which
shows up every time I run DNF (it has persisted through at least 3 or
4 Fedora revisions, maybe more):
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/dnf/plugin.py", line 104,
in _caller getattr(plugin, method)()
File
"/usr/lib/python3.10/site-packages/dnf-plugins/generate_completion_cache.py",
line 62, in sack cur.execute("delete from available")
sqlite3.DatabaseError: database disk image is malformed
I've tried (in the past) many things to try to fix it, but nothing
worked. Can't remember everything I tried, because it has been a
couple of years, but suffice to say, I've tried the low-hanging,
obvious stuff, and some obscure things...
The database it is trying to access is
/var/cache/dnf/packages.db
If you delete it, it will rebuild it at the next update, and that
should take care of the error, since it shouldn't build a malformed
database from scratch. If it does, you should open an error agaist
package
python3-dnf-plugins-core
component
generate_completion_cache.py