[QUOTE=rsteinmetz70112;13891049]Before we do anything dangerour lets find out a little more about the state of your system. Run the following commands and post the results.
Code:
$ ls /usr/lib | grep python
$ ls -ld /usr/bin/python
$ ls -ld /usr/bin/python3
$ which python
$ python --version
To remove a package:
Code:
sudo apt remove <package name>
I'm not sure if that will work on partially installed packages if not try.
Code:
sudo apt purge <package name>
or combine the two
Code:
sudo apt remove --purge <package name>
I'd be careful and remove them one at a time.
The command should include the version number the standard Ubuntu would be something like apt-python3.7
Python-minimal is a pretty important package breaking it could break all sorts of stuff.
This seems to me likely to be the most critical package holding up the works since the 3.7 version is already installed.
[/QOTE]
Code:
$ ls /usr/lib |grep python
python2.7
python3
python3.5
python3.7
python3.8
$ ls -ld /usr/bin/python
lrwxrwxrwx 1 root root 9 Nov 23 2017 /usr/bin/python -> python2.7
$ ls -ld /usr/bin/python3
lrwxrwxrwx 1 root root 9 Mar 26 03:25 /usr/bin/python3 -> python3.7
$ which python
/usr/bin/python
$ python --version
Python 2.7.12
Let's see, just making sure that I understand. the Python3.8 library seems to be a bit out of place, why does Python3 not link to the 3.8, should it?
Now, I have not gone ahead and removed or purged anything else yet. I've also got the following:
Code:
$ ls -l /usr/bin/python*
lrwxrwxrwx 1 root root 9 Nov 23 2017 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root 9 Nov 23 2017 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root 15 Jul 25 09:29 /usr/bin/python2.5 -> /usr/bin/python
-rwxr-xr-x 1 root root 3492656 Aug 22 12:43 /usr/bin/python2.7
lrwxrwxrwx 1 root root 33 Aug 22 12:43 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config
lrwxrwxrwx 1 root root 16 Nov 23 2017 /usr/bin/python2-config -> python2.7-config
lrwxrwxrwx 1 root root 9 Mar 26 03:25 /usr/bin/python3 -> python3.7
-rwxr-xr-x 2 root root 4460272 Aug 20 13:08 /usr/bin/python3.5
lrwxrwxrwx 1 root root 33 Aug 20 13:08 /usr/bin/python3.5-config -> x86_64-linux-gnu-python3.5-config
-rwxr-xr-x 2 root root 4460272 Aug 20 13:08 /usr/bin/python3.5m
lrwxrwxrwx 1 root root 34 Aug 20 13:08 /usr/bin/python3.5m-config -> x86_64-linux-gnu-python3.5m-config
-rwxr-xr-x 2 root root 4877888 Apr 2 22:39 /usr/bin/python3.7
lrwxrwxrwx 1 root root 33 Apr 2 22:39 /usr/bin/python3.7-config -> x86_64-linux-gnu-python3.7-config
-rwxr-xr-x 2 root root 4877888 Apr 2 22:39 /usr/bin/python3.7m
lrwxrwxrwx 1 root root 34 Apr 2 22:39 /usr/bin/python3.7m-config -> x86_64-linux-gnu-python3.7m-config
lrwxrwxrwx 1 root root 16 Mar 26 03:25 /usr/bin/python3-config -> python3.7-config
lrwxrwxrwx 1 root root 10 Mar 26 03:25 /usr/bin/python3m -> python3.7m
lrwxrwxrwx 1 root root 17 Mar 26 03:25 /usr/bin/python3m-config -> python3.7m-config
lrwxrwxrwx 1 root root 16 Nov 23 2017 /usr/bin/python-config -> python2.7-config
Originally Posted by
rsteinmetz70112
Before doing anything irreversible you might want to try:
Code:
sudo apt install python3-minimal libpython3-stdlib --reinstall --simulate
This should run the command without actually doing anything but should also show you what the command would do without the --simulate
to make sure it will try to download and install 3.5.1-3 over the existing 3.7 packages.
Cool, I didn't even know about the --simulate option. Great, Thanks!
Originally Posted by
rsteinmetz70112
In fact you might want to download the debs for python3-minimal or get a Ubuntu 16.04 iso and add it to your sources before you attempt to remove anything so if apt breaks you will still have them available
Yes, I will download a 16.04 iso and mount it!
Thanks!
Bookmarks