Score:0

Can't install packages after trying to install .deb file

om flag

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: 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?

guiverc avatar
cn flag
Please refer https://askubuntu.com/help/on-topic, Ubuntu and official *flavors* of Ubuntu (https://ubuntu.com/download/flavours) are on-topic on this site. The on-topic link provides alternate SE sites for non-Ubuntu OSes. *Ubuntu Unity releases before 22.10 are not official being unofficial respins*
user535733 avatar
cn flag
Apt literally doesn't know the meaning of "failure": Once you tell apt to install something, it will keep trying to install that package. Try `sudo apt-mark remove playonlinux crossover:i386` to tell apt that those packages should be removed instead of installed. Let us know if it works, since there are several possible follow-up errors that you might encounter.
Whacc avatar
om flag
@user535733 I tried that, and it said that they're marked for removal. But when I try to run apt upgrade, it goes back to trying to install crossover:i386
Score:0
pm flag

rm -rd -f /opt/cxoffice

rm -f /var/lib/dpkg/info/crossover.postinst

apt update

then remove the binaries

Score:0
pk flag

this is because the CrossOver package tries to execute some Python code functions which were deprecated in Python 3.3 and hence removed in 3.10 which is installed on your system (/usr/lib/python3.10/...).

Sure, you definitely need to contact CodeWeavers for an updated version of the package. Downgrading Python to 3.9 might still be another option. but beware of possible dependency issues happening in the future.

Source:

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.