On Sat, 13 Jun 2020 12:43:47 -0400
Bob Goodwin <bobgood...@fastmail.us> wrote:

> Error: SQLite error on "/var/lib/dnf/history.sqlite": Reading a row 
> failed: database disk image is malformed
> 
> I have not rebboted or logged out since doing that, if that is
> requured? But the erro messag always points to SQLite ...

Should not be required.  Would you show the output of 
ls -nZ /var/lib/dnf/*

The folder /var/lib/dnf is owned by the package dnf-data, but no
package owns the files in /var/lib/dnf/.  They have to be
created by the system after install.  My system shows

-rw-r--r--. 1 0 0 system_u:object_r:rpm_var_lib_t:s0     13979648 Jun 13 11:21 
/var/lib/dnf/history.sqlite
-rw-r--r--. 1 0 0 system_u:object_r:rpm_var_lib_t:s0        32768 Jun 13 11:21 
/var/lib/dnf/history.sqlite-shm
-rw-r--r--. 1 0 0 system_u:object_r:rpm_var_lib_t:s0      4144752 Jun 12 10:39 
/var/lib/dnf/history.sqlite-wal

Something strange is going on with this history.
man dnf says that history will be saved 'assuming the history_record
configuration option is set'
but man dnf.conf shows no such option.  Oversight, or is it always
turned on now, and that option is obsolete?

Try this.
Edit /etc/dnf/dnf.conf and in the [main] section add the line
history_record=True
Then, as root, delete the files
/var/lib/dnf/history.sqlite*
yet one more time.
Run dnf update again, and see if the files
/var/lib/dnf/*
are created.

Post the output of the ls command given above again.
ls -nZ /var/lib/dnf/*
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to