Bdb_ro error reading Packages database

warning: Found bdb_ro Packages database while
attempting sqlite backend: using bdb_ro backend

bdb_ro error reading Packages database

I tried perfom in dom:
sudo rpm --rebuilddb
sudo dnf clean all
sudo dnf makecache

It didn’t help.

Try:
[user@dom0 ~]$ sudo qubes-dom0-update --clean
… this will clean the cache(s) on sys-whonix, as opposed to your commands which are executed in dom0.

Another idea: I see that you’re running R4.2, and I only saw this type of error with older Whonix templates. Is your sys-whonix based on whonix-gateway-17? and is the template up-to-date?

Yes. Template is whonix-gateway-17 and template is up-to-date.

[user@dom0 ~]$ sudo qubes-dom0-update --clean

It didn’t help.