0

For Ubuntu 18.04 and 20.04 I need to install python 3. Currently 3.9.5 as I wrote this post. I watched some videos on youtube and read some tutorials. There are two different approaches

One

sudo apt install python3 [python-pip]`

Two

sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.9

The situation is that about “deadsnakes” team says:

  • Team for maintaining unofficial Python packages for different releases of Ubuntu.

And in ppa:deadsnakes - New Python Versions says:

This PPA contains more recent Python versions packaged for Ubuntu.

Disclaimer: there's no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.

Update Note

Please use this repository instead of ppa:fkrull/deadsnakes.

Observation: The tutorials and videos based on ppa:deadsnakes are <1 year ago (they are not neither very old nor outdated) and even are for Ubuntu 20.04 and works. Question 1: When could be mandatory take the ppa:deadsnakes approach?

So thinking in have always the latest, stable and secure python installed. Question 2: what approach is the correct?

I am not sure, but seems there is no an official guide to install Python (latest version 3.9.5) on Ubuntu. Question 3: Is there an official (latest-stable-secure) Python repository for PPA?.

For future

So if Python at https://www.python.org/ releases the 3.9.6 version, then if sudo apt update upgrade is executed that new release must be installed

0 Answers0