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 !

Well, Dom0 got an update. So it should not be completely broken i guess. I still do not know if these errors matter, but hopefully it should be fine?

I’ve just upgraded to 4.3.1 from 4.2, using the clean install method. I’ve not made any changes to dom0, just trying to use this command to install a package but it fails with the error in OP:
sudo qubes-dom0-update --action=install --downloadonly --downloaddir=./ <package>

does anyone know what to do about this?