Score:0

Failed to install default-jdk with apt

eg flag

I am trying to install default-jdk, but it is failing with the following error:

After this operation, 590 MB of additional disk space will be used.
Ign:1 http://mirrors.digitalocean.com/ubuntu jammy-updates/main amd64 openjdk-11-jre-headless amd64 11.0.17+8-1ubuntu2~22.04
Ign:2 http://mirrors.digitalocean.com/ubuntu jammy-updates/main amd64 openjdk-11-jre amd64 11.0.17+8-1ubuntu2~22.04
Ign:3 http://mirrors.digitalocean.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.17+8-1ubuntu2~22.04
Ign:4 http://mirrors.digitalocean.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk amd64 11.0.17+8-1ubuntu2~22.04
Err:1 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jre-headless amd64 11.0.17+8-1ubuntu2~22.04
  404  Not Found [IP: 104.21.29.13 80]
Err:2 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jre amd64 11.0.17+8-1ubuntu2~22.04
  404  Not Found [IP: 104.21.29.13 80]
Err:3 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.17+8-1ubuntu2~22.04
  404  Not Found [IP: 104.21.29.13 80]
Err:4 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk amd64 11.0.17+8-1ubuntu2~22.04
  404  Not Found [IP: 104.21.29.13 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-lts/openjdk-11-jre-headless_11.0.17%2b8-1ubuntu2%7e22.04_amd64.deb  404  Not Found [IP: 104.21.29.13 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-lts/openjdk-11-jre_11.0.17%2b8-1ubuntu2%7e22.04_amd64.deb  404  Not Found [IP: 104.21.29.13 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-lts/openjdk-11-jdk-headless_11.0.17%2b8-1ubuntu2%7e22.04_amd64.deb  404  Not Found [IP: 104.21.29.13 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-lts/openjdk-11-jdk_11.0.17%2b8-1ubuntu2%7e22.04_amd64.deb  404  Not Found [IP: 104.21.29.13 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Installing openjdk-11-jre gives the same error, but installing other non-jdk related packages works fine.

I'm on Ubuntu 22.04.1 LTS.

This installation worked just two weeks ago, did something change in the repos since then?

Thank for your help.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.