On Fri, 2020-08-14 at 00:34 -0700, Samuel Sieb wrote:
On 8/13/20 8:50 PM, D. Hugh Redelmeier wrote:
> > From: Bob Goodwin <bobgoodwin(a)fastmail.us>
> > Date: Wed, 10 Jun 2020 06:43:38 -0400
> > Error: SQLite error on "/var/lib/dnf/history.sqlite": Reading a row
failed: database disk image is malformed
>
> I too got this SQLite error.
>
> I was able to fix it simply: just
> sudo mv /var/lib/dnf/history.sqlite /var/lib/dnf/history.sqlite.hide
>
> I have no idea if this causes other damage but dnf update now works.
>
> What does this file do and what am I going to lose without it?
> Is there a way to reliably repair this file?
> Based on googling, this problem seems quite rare.
This is the dnf history database. By removing it, you now have no way
to see the history of your dnf transactions.
/var/log/dnf.rpm.log contains some useful information. Not as much as
the DNF log, but I find that to be more than I need a lot of the time.
poc