installer: Debian Bookworm repository for Temurin 21 not working
What are you trying to do? Install temurin-21-jdk on Debian Bookworm
Observed behaviour:
root@bennu:~# cat /etc/apt/sources.list.d/adoptium.list
deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb bookworm main
root@bennu:~# apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Hit:3 https://download.docker.com/linux/debian bookworm InRelease
Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
Get:5 https://packages.adoptium.net/artifactory/deb bookworm InRelease [6,638 B]
Fetched 54.6 kB in 1s (55.7 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@bennu:~# apt install temurin-21-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
adoptium-ca-certificates alsa-topology-conf alsa-ucm-conf fontconfig-config fonts-dejavu-core fonts-dejavu-extra java-common libasound2 libasound2-data libfontconfig1
libxi6 libxrender1 libxtst6 p11-kit p11-kit-modules x11-common
Suggested packages:
default-jre libasound2-plugins alsa-utils
The following NEW packages will be installed:
adoptium-ca-certificates alsa-topology-conf alsa-ucm-conf fontconfig-config fonts-dejavu-core fonts-dejavu-extra java-common libasound2 libasound2-data libfontconfig1
libxi6 libxrender1 libxtst6 p11-kit p11-kit-modules temurin-21-jdk x11-common
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
Need to get 177 MB/183 MB of archives.
After this operation, 378 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Err:1 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-21-jdk amd64 21.0.1.0.0+12
400 Bad Request [IP: 151.101.243.42 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-21-jdk_21.0.1.0.0%2b12_amd64.deb 400 Bad Request [IP: 151.101.243.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Any other comments:
Fresh Bookworm install from today, almost nothing else installed than base netinstall. Lookslike something is wrong and ${VERSION}
did not get replaced with 21 with the debian repository build.
About this issue
- Original URL
- State: open
- Created 8 months ago
- Reactions: 21
- Comments: 44 (8 by maintainers)
Hi folks, we’re aware of the issue and are investigating with our CDN and package repo providers.
Having the same error on Ubuntu 22.04 (Jammy).
Worth noting that Temurin 17 also appears to be broken currently:
As pointing out above, looks like
${VERSION}
isn’t being replaced for some reasonIt looks as though there was some problem with whatever script updated the deb repository metadata. If you look at the Packages files, eg:
The latest patches have file redirects with
${VERSION}
inside, instead of whatever value${VERSION}
actually is.For example
temurin-11-jdk_11.0.21
redirects to file:pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0+9_amd64.deb
but
temurin-11-jdk_11.0.20.1
redirects to:pool/main/t/temurin-11/temurin-11-jdk_11.0.20.1.0+1_amd64.deb
Where${VERSION}
is correctly replaced by11
.That’s why it works when you specify an older version.
And to save anyone from looking up what those versions are…
apt install temurin-21-jdk=21.0.0.0.0+35
apt install temurin-17-jdk=17.0.8.1.0+1
apt install temurin-11-jdk=11.0.20.1.0+1
It looks like the Packages index is now fixed and this issue is resolved. Thanks for fixing this!
There have been a few similar issues raised recently, although in each case I have been unable to reproduce it. It feels like a caching issue somewhere. I’ve transferred this to the installer repository as it’s the most appropriate place for it.
Same problems today for Ubuntu Jammy : Encoding URL seems too be bad
Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-11-jdk amd64 11.0.21.0.0+9 400 Bad Request Err:2 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0+9 400 Bad Request E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0%2B9_amd64.deb 400 Bad Request E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0%2B9_amd64.deb 400 Bad Request
It’s NOT fixed! Using these scripts, I still get the error randomly.
I confirm. x64 & temurin 17 works.
Same today for Ubuntu 22.04.3 LTS (Jammy Jellyfish).
Fails on all JDK installed (11 and 17)
Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-11-jdk amd64 11.0.21.0.0+9 400 Bad Request [IP: 151.101.247.42 443] Err:2 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0+9 400 Bad Request [IP: 151.101.247.42 443] E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0%2B9_amd64.deb 400 Bad Request [IP: 151.101.247.42 443] E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0%2B9_amd64.deb 400 Bad Request [IP: 151.101.247.42 443] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Looks like the latest build in the debian repo is broken. Can be seen from links shown here. Previous versions that are still available can be downloaded fine.
A temporary workaround would be explicitly specify the version before the latest one. For JDK17, that would be
temurin-17-jdk=17.0.8.1.0+1
.EDIT: Looks like JDK8 is still fine (no
${VERSION}
). Also, the repo pages appear bugged as I’m getting a lot of errors saying I’m “not authorized”.Interestingly, temurin-17-jdk did work for me on Debian Bookworm.
@swi-jared looking at your log it suggests that Fastly has cached a partial request rather than a full one, I’m still working with Fastly to get this fixed as it’s a known bug.
I’m hitting a “Error reading from server. Remote end closed connection” issue, commented about that on https://github.com/adoptium/installer/issues/754#issuecomment-1785810245
I just tried a wget for the deb and the link is working at the moment. The 403 error is a different thing from the
${VERSION}
issue.The server is behaving a bit odd. Whenever I try to look at the info of a package version on the repo website (packages.adoptium.net), as soon as the “Builds” tab starts to load, I would receive several 403 errors (“You’re not authorized to view this page.”) which kicked me back to the package list with a 500 page followed shortly after. The “Location” tab itself (which contains the package links) appears fine but as I’m being kicked out I could only take a brief glance of it if I switch to that tab quick enough.
Fixed. Working for me too.
can confirm
temurin-8-jdk
andtemurin-11-jdk
works,temurin-17-jdk
not…I am seeing the same problem. I hope we can fix this soon. Thanks for anyone who is working on this problem