I tried this one from google
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.6
But the problem is in add-apt-repository it shows
- Note: Python2.7 (all), Python 3.5 (xenial), Python 3.6 (bionic), Python 3.8 (focal) are not provided by deadsnakes as upstream ubuntu provides those packages.
And while installing it shows error
Err:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu groovy Release 404 Not Found [IP: 91.189.95.85 80]
And when I try the sudo apt install python3.6. It shows the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3.6
E: Couldn't find any package by glob 'python3.6'
How can I install from upstream ubuntu?
I had no problem installing python 3.6 on ubuntu 20.04 last time.
python3.6(ie.rmadison python3.6) shows no support for it except in bionic. The language used by deadsnakes is inclusive of it's purposes ("new python versions") where you're after old python versions... – guiverc Apr 21 '21 at 05:26