0

I apologise for any technical incorrectness, I am a complete beginner in bioinformatics with really limited linux knowledge. I have the following problem – accidentally deleted python3.5 from my vm Ubuntu 16.04. Upon doing that, all my files went with it and I knew something was very wrong. I know understand that python 2.7 and 3.5 are default for my Ubuntu version and it was a bad idea.

I currently have python 2.7 and 3.7 in urs/bin, python 3 in linuxbrew/bin. However, I cannot run any packages depending on python version =>3.5. I tried to fix this by running sudo apt-get install python3-all this returns too many errors etc because python3 depends on python 3.5 and vice versa, catch 22 situation. I spoke to a family friend who works in the area of computer science, but not with ubuntu, and he suggests to delete all versions of python 3 (3 and 3.7.7 in my case) and start new installs. The issue with that is, I have seen a post from someone who deleted python3 from Ubuntu (I deleted package 'python3' on Ubuntu and I have lost dashboard, terminal and Unity. Help me to restore my data please) and they lost the dashboard, terminal and Unity. I am anxious to do that. In addition, I am not sure python 3.7 has installed fully with all dependencies.

What is the best way to approach this?

Thank you very much in advance.

EDIT: This is the output from sudo apt-get install python3-all and sudo apt-get install software-center as suggested solutions in Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work. Is it a good idea to run sudo apt-get remove python3 first followed by sudo apt-get install python3? I am so scared to do that in case I lose the terminal as in the previous post of the person who removed python3.

sudo apt-get install python3-all output1sudo apt-get install python3-all output2

3
  • This ls -l /usr/bin/python* has to have links to correct versions of python. Or python to correct python2.x and python3 to correct version of python3.x. You can install additional versions, but never change links to default versions. See ubuntuforums.org/…. Otherwise full chroot and reinstall pythons and entire desktop. Or total "dirty" reinstall where you do not reformat partition. Your data is not changed, but any config files you changed will be overwritten. – oldfred May 1 '20 at 14:54
  • 4
  • I tried all of these options and I get a lot of error messages when I run sudo apt-get install python3-all or sudo apt-get install software-center. The system is looking for python3.5, obviously cannot find it and that triggers a lot of error messages say that there are dependency problems-leaving unconfigured. I am starting to think that deleting the python3.5 default version is a mistake that cannot be repaired. I am open to any suggestions really as it cannot get worse. – Yoana Petrova May 2 '20 at 10:37

Browse other questions tagged or ask your own question.