Err:12 http://security.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre-headless amd64 11.0

1、问题

Err:12 http://security.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre-headless amd64 11.0.11+9-0ubuntu2~20.04
404 Not Found [IP: 91.189.88.152 80]

apt install openjdk-11-jre-headless  ## 安装java环境出现如下报错

Err:12 http://security.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre-headless amd64 11.0

 

 

2、解决方法

apt update

 

3、测试

apt install openjdk-11-jre-headless -y

 

root@DESKTOP-1N42TVH:/home/software/frontend# java --version
openjdk 11.0.13 2021-10-19
OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)

 

上一篇:预习Java开发


下一篇:[转帖]SAP BASIS日常需要做的工作