Closed TondiToday closed 4 years ago
Comparing the size of the received file versus the expected file (11511 vs 517188), this sounds like you've got a (corporate?) firewall/proxy/content blocker which is intercepting and replacing and/or truncating the requested file.
Have tried it on different networks. Same error persists
I can't reproduce: :confused:
$ docker pull openjdk:8-jdk
8-jdk: Pulling from library/openjdk
Digest: sha256:f815268bb2af51279b3361666c0b702e1a61f9eec83d817c6df49b78af768922
Status: Image is up to date for openjdk:8-jdk
docker.io/library/openjdk:8-jdk
$ docker run --rm openjdk:8-jdk apt-get update
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:1 http://security-cdn.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Get:5 http://deb.debian.org/debian buster-updates/main amd64 Packages [7380 B]
Get:6 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [181 kB]
Fetched 8331 kB in 1s (7674 kB/s)
Reading package lists...
Okay, I solved this but it was a weird one. Currently trying to run docker on Mac OS Catalina 10.15.3. And we found that when you try to Curl to the URL which was failing it received an HTML file as opposed to a bitstream file. So we attempted ping the website directly and found that the native Screentime app on the OS was blocking the request for an unknown reason. Went ahead and disabled Content and Privacy restrictions and solved the problem. So NOT an openjdk problem, but if anyone else runs into the issue this is the fix.
Okay, I solved this but it was a weird one. Currently trying to run docker on Mac OS Catalina 10.15.3. And we found that when you try to Curl to the URL which was failing it received an HTML file as opposed to a bitstream file. So we attempted ping the website directly and found that the native Screentime app on the OS was blocking the request for an unknown reason. Went ahead and disabled Content and Privacy restrictions and solved the problem. So NOT an openjdk problem, but if anyone else runs into the issue this is the fix.
This is the correct answer!
I have been running into this issue when trying to run apt-get update in my docker file. Commands run
Output
Ive tried many combinations of answers online to try and fix this. Has anyone who has run into the error been able to fix it.