0

I've been messing with Python installation and I messed it up completely. Now when I'm doing apt upgrade I always get following error.

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: The package python-incremental needs to be reinstalled, but I can't find an archive for it.

I've been trying many things that I found around but no luck so far.

$ sudo dpkg --remove python-incremental
dpkg: dependency problems prevent removal of python-incremental:
 python-twisted-core depends on python-incremental.

dpkg: error processing package python-incremental (--remove): dependency problems - not removing Errors were encountered while processing: python-incremental

$ sudo dpkg --remove python-twisted-core dpkg: dependency problems prevent removal of python-twisted-core: deluge-common depends on python-twisted-core; however: Package python-twisted-core is to be removed.

dpkg: error processing package python-twisted-core (--remove): dependency problems - not removing Errors were encountered while processing: python-twisted-core

$ sudo apt-get install --reinstall python-minimal python-lockfile Reading package lists... Done Building dependency tree
Reading state information... Done E: The package python-incremental needs to be reinstalled, but I can't find an archive for it.

$ sudo apt-get -f install Reading package lists... Done Building dependency tree
Reading state information... Done E: The package python-incremental needs to be reinstalled, but I can't find an archive for it.

And many more...

Seems like APT is stuck by this issue and I have no idea how to continue. I'm on Ubuntu 20.04.3 LTS. Any ideas? Thanks.

piktor
  • 61

0 Answers0