Ubuntu apt install jdk8 and python3.8
Install JDK8
sudo add-apt-repository ppa:openjdk-r/ppa
This command needs to be confirmed by pressing the enter key (carriage return)
sudo apt update
sudo apt-get install openjdk-8-jdk
Enter the command to check whether the installation is successful
java -version
Install python3.8
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
This command needs to be confirmed by pressing the enter key (carriage return)
sudo apt install python3.8
sudo ln -s /usr/bin/python3.8 /usr/bin/python
After the execution is completed, enter the command to verify the version, and if the version number appears, the installation is successful
python --version