0

I was upgrading from Ubuntu17.04(zesty) to 17.10(artful) , by do-release-upgrade and I do have the same problem as here How to fix "python installation is corrupted"?.

Tried remediation as mentioned in the note,

  1. update-alternatives --remove-all python
  2. sudo ln -sf /usr/bin/python3.5 /usr/bin/python
  3. removed miniconda3 directory
  4. sudo apt-get install --reinstall python

...but still the problem unresolved.
Can someone provide other solutions, appreciate your help.

  • #2 Makes more problems than it solves. /usr/bin/python should link to Python 2.7. /usr/bin/python3 should link to Python 3.6 (not 3.5) in 17.04. By mis-linking, you have seriously broken your system. – user535733 Dec 24 '17 at 14:20
  • Thank you. I liked python3 to 3.6, and python to 2.7. Then, do-release-upgrade showed another error: ""Original exception was: Traceback (most recent call last): File "/usr/bin/do-release-upgrade", line 11, in <module> from UpdateManager.Core.MetaRelease import MetaReleaseCore File "/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py", line 25, in <module> import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module> import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' What should I do with this? – himagine Dec 25 '17 at 12:30
  • That's a different Question. One question per thread, please. This is a question/answer site, not a forum. – user535733 Dec 25 '17 at 13:27

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.