Ubuntu apt install jdk8 and python3.8

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)

image-20230429040725260

sudo apt update

image-20230429031810712

sudo apt-get install openjdk-8-jdk

image-20230429040819063

Enter the command to check whether the installation is successful

java -version

image-20230429041308336

Install python3.8

sudo apt install software-properties-common

image-20230429031851675

sudo add-apt-repository ppa:deadsnakes/ppa

image-20230429031922621

sudo apt update

image-20230429031810712

This command needs to be confirmed by pressing the enter key (carriage return)

image-20230429032014566

sudo apt install python3.8

image-20230429032032965

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

image-20230429032101032

Guess you like

Origin blog.csdn.net/qq_49619863/article/details/130437566