Dom0 update error "Unable to open sqlite database"

Good day,

I believe that I am unable to update Dom0, whenever I try to, I get this:

Checking for available updates for dom0...
Using sys-firewall as UpdateVM for Dom0
Checking for dom0 updates...
error: Unable to open sqlite database /var/lib/rpm/rpmdb.sqlite: unable to open database file
error: cannot open Packages index using sqlite - Operation not permitted (1)
error: cannot open Packages database in
No new updates available
No dom0 updates available

I get the same errors when running sudo qubes-dom0-update in a Dom0 terminal.

If anyone has any advice regarding this, I would greatly appreciate it.

Thank you!
-can

I am running QubesOS version R4.2.4

I assume you have not changed anything big that could cause this?

Have you:

  • Restarted?
  • checked that the sqlite db is there?
  • checked that the files permissions are normal? (On 4.3 mine is-rw-r--r-- 1 root root 88M Jan 20 11:11 /var/lib/rpm/rpmdb.sqlite
  • Exported it to another VM and opened it there with a sqlite browser to ensure correct formatting and maybe content?

Thank you for the suggestions!

I have not changed anything noteworthy as far as I remember. Though I did create an audio qube which required I make a new file in Dom0. I think that I have updated Dom0 since then, but I can not say for certain.
The permissions look the same -rw-r--r--.
I was able to open the database using sqlitebrowser, but I am not certain what I would be looking for.

Thank you once more for the help @HardcodedNonce !