I accidentally modified python3 symbolic links due to which most of the features are not working. I cannot even open the terminal. Is there a way to revert this? I am using Ubuntu 17.04.

Screenshot of error message

  • 1
    Could you please add a little more detail? What exactly did you do, what did you want to achieve and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question (edit). You can select, copy and paste terminal content and most dialogue messages in Ubuntu. (see How do I ask a good question?) – dessert Dec 28 '17 at 8:25

Try to reinstall python3-minimal package with

sudo apt-get install --reinstall python3-minimal

If it does not help you can reinstall all python3 packages with

sudo apt-get install --reinstall \
$(dpkg -l | grep python3 | grep ^ii | awk '{print $2}')

You can use xterm or plain terminal (accessed from Ctrl+Alt+F1).

  • I think sudo apt install --reinstall *python3* does the same. – dessert Dec 29 '17 at 8:30
  • @dessert NO. On my system (of course with --simulate option) it causes unmet dependencies and conflicts. So it is bad idea. – N0rbert Dec 29 '17 at 10:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.