Zorin OS 18: Corrupt Package dB

I'm new to Zorin, had been a lifetime Windows user. I have run into problems with the package dB. It has been corrupted and I can't seem to purge the bad files. I will mention that I installed both Wine and Windows App Support and the problems started after that.
I ran the following: sudo apt-get install -f
And received errors:
Removing zorin-os-default-settings (18.1.9) ...
No diversion 'diversion of /usr/lib/firefox/distribution/distribution.ini to /usr/lib/firefox/distribution/distribution.ini.real by zorin-os-default-settings', none removed.
Removing 'diversion of /etc/gtk-3.0/settings.ini to /etc/gtk-3.0/settings.ini.real by zorin-os-default-settings'
dpkg-divert: error: rename involves overwriting '/etc/gtk-3.0/settings.ini' with
different file '/etc/gtk-3.0/settings.ini.real', not allowed
dpkg: error processing package zorin-os-default-settings (--remove):
installed zorin-os-default-settings package post-removal script subprocess returned error exit status 2
dpkg: too many errors, stopping
Errors were encountered while processing:
zorin-os-default-settings
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any help appreciated

Welcome to the Forum!

Is this a fresh Install? You could try sudo apt reinstall zorin-os-default-settings

1 Like

No, I have quite a few programs already installed. So, I guess it's not so fresh. Thanks for the help. Is there any other option w/o having to go back to point zero?

I do not see anything related to Wine or dB in the output you posted.
There is a Zorin OS file, though, that would need to be overwritten. Since the existing one is backing up dpkg, just save a copy of it elsewhere:

sudo mv /etc/gtk-3.0/settings.ini /etc/gtk-3.0/settings.ini.bk

sudo mv /etc/gtk-3.0/settings.ini.real /etc/gtk-3.0/settings.ini

Then run the fix:

sudo dpkg --configure -a

sudo apt --fix-broken install

Thanks for the guidance

1 Like

I gave You this Command:

This should reinstall the Packages mentioned in Your Output. Hopefully that helps.