I run Ubuntu Unity 22.04, and I've tried to install Crossover from a .deb file. It didn't work, but now whenever I try to install something from the terminal, it defaults to trying to install Crossover.
Here's the screenshot of what happens:

And a transcript:
Setting up crossover:i386 (19.0.0-1) ...
Traceback (most recent call last):
File "/opt/cxoffice/lib/python/cxconfig.py", line 12, in <module>
from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/cxoffice/bin/cxtie", line 135, in <module>
import cxtiemain
File "/opt/cxoffice/lib/python/cxtiemain.py", line 6, in <module>
import c4parser
File "/opt/cxoffice/lib/python/c4parser.py", line 10, in <module>
import cxproduct
File "/opt/cxoffice/lib/python/cxproduct.py", line 7, in <module>
import cxconfig
File "/opt/cxoffice/lib/python/cxconfig.py", line 15, in <module>
from UserDict import DictMixin as MutableMapping
ModuleNotFoundError: No module named 'UserDict'
dpkg: error processing package crossover:i386 (--configure):
installed crossover:i386 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
crossover:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
How do I fix it?