Score:1

openjdk-11-jdk-headless_11.0.16 Connection failed[IP: 91.189.91.39 80]

it flag

I trying to install openjdk-11-jdk-headless But the same error (connection failed) occurs repeatedly as below. How could I solve this problem ?

Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.16+8-0ubuntu1~22.04
Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.16+8-0ubuntu1~22.04
Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.16+8-0ubuntu1~22.04
Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.16+8-0ubuntu1~22.04
Err:1 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.16+8-0ubuntu1~22.04
  Connection failed [IP: 91.189.91.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-lts/openjdk-11-jdk-headless_11.0.16%2b8-0ubuntu1%7e22.04_amd64.deb  Connection failed [IP: 91.189.91.39 80]
Score:0
bo flag
Jon

Lots of reasons as to why this could be happening... if networking is all good, check the length of time it takes to download the file by manually trying to acquire the failing resources thru a curl or wget command. If such commands do not work, you will need to search the various answers here for potential solutions on networking settings to configure.

In my case, the reason for the apt upgrade failure was because it was taking too long to download the files. Regardless of the reason why it's taking so long to download, the solution in my case was to increase the apt timeout. See this answer for more about how to do this: How to extend APT connection timeout?

I increased my /etc/apt/apt.conf timeout settings to 300 seconds and everything worked fine.

  Acquire::http::Timeout "300";
  Acquire::ftp::Timeout "300";
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.