installer
installer copied to clipboard
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.
Having the same error on Ubuntu 22.04 (Jammy).
sudo 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 fonts-dejavu-extra java-common
Suggested packages:
default-jre
The following NEW packages will be installed:
adoptium-ca-certificates fonts-dejavu-extra java-common temurin-21-jdk
0 upgraded, 4 newly installed, 0 to remove and 9 not upgraded.
Need to get 177 MB/179 MB of archives.
After this operation, 368 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-21-jdk amd64 21.0.1.0.0+12
400 Bad Request [IP: 151.101.3.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.3.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Worth noting that Temurin 17 also appears to be broken currently:
sudo apt install temurin-17-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
adoptium-ca-certificates fonts-dejavu-extra java-common
Suggested packages:
default-jre
The following NEW packages will be installed:
adoptium-ca-certificates fonts-dejavu-extra java-common temurin-17-jdk
0 upgraded, 4 newly installed, 0 to remove and 9 not upgraded.
Need to get 166 MB/168 MB of archives.
After this operation, 338 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.9.0+9
400 Bad Request [IP: 151.101.131.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.131.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
As pointing out above, looks like ${VERSION} isn't being replaced for some reason
Interestingly, temurin-17-jdk did work for me on Debian Bookworm.
Having similar issues installing temurin-17-jdk on ubuntu focal. My install script looks like the following (taken from the instructions)
apt-get -qq install -y wget apt-transport-https
# Download the Eclipse Adoptium GPG key:
mkdir -p /etc/apt/keyrings
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc
# Configure the Eclipse Adoptium apt repository
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print $2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
# install the jdk
apt-get -qq update
apt-get -qq install -y temurin-17-jdk
and the output I get is
--2023-10-27 00:56:22-- https://packages.adoptium.net/artifactory/api/gpg/key/public
Resolving packages.adoptium.net (packages.adoptium.net)... 146.75.35.42
Connecting to packages.adoptium.net (packages.adoptium.net)|146.75.35.42|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1793 (1.8K) [text/plain]
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBGGTvTQBCAC6ey144n7CG8foafF6mwgIBN1fIm1ILZDuGS4tMr0/XI8pgJnT
Saving to: ‘STDOUT’
0K . 100% 20.9M=0s
QvsPxZWEvtSm7bEMObzEoZJcXwjBcJl1B0ui8k5kHMTI75gCmZPsoKLFWIEpuRBQ
2023-10-27 00:56:22 (20.9 MB/s) - written to stdout [1793/1793]
PBocusw80apDmLnNDQLVQvDFtEua5gaNa/fRw9YsmBoXBqvgrjFUIdGyWoQvH5+a
9OYlWD9n5VV0gnVMb+aclwVzB/zJw3kHGSgzuMtlAHeQiah7Y8yomQn/UIX8yqDf
+11sP3+c87YcjkRqImRTtmKEDcEtGPAIXC6SYA+uEEkbYE0Fy0chkvtnVWJ597fa
Epai4rnICU8zoJ6X5z3v1aM2WerhX9oq9X8PABEBAAG0QEFkb3B0aXVtIEdQRyBL
ZXkgKERFQi9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7aowfgy34
hOk3B67LffkJpIh738Oa9CtlwxQ9xcytmBmQ1fBBOwm/9IhAwHPQuydYIs4DxWbj
0MGSP4fDntU7e4UjsHNmhudDcYol0FaqdHHIIB9C/G4CzetRwHFOn3b4JwXMU7YU
6aJA3mXhi3hggMC3wkT2HHZ/TquuOdNc02fypWOCDOHz0alBBJNqoVUNFNqU3tfJ
wI4qF/KKq9BfyfucAs0ykA==
=szki
-----END PGP PUBLIC KEY BLOCK-----deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb focal main
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-/temurin-17-jdk_17.0.9.0+9_amd64.deb 400 Bad Request [IP: 146.75.35.42 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Same problem, can't upgrade temurin jdk packages.
EDIT: Interesting, that Temurin JRE 21 is instalable. See https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jre_21.0.1.0.0%2b12_amd64.deb
Err:1 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-11-jdk amd64 11.0.21.0.0+9 400 Bad Request [IP: 151.101.3.42 443] Err:2 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-11-jre amd64 11.0.21.0.0+9 400 Bad Request [IP: 151.101.3.42 443] Err:3 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jdk amd64 17.0.9.0+9 400 Bad Request [IP: 151.101.3.42 443] Err:4 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jre amd64 17.0.9.0+9 400 Bad Request [IP: 151.101.3.42 443] E: Selhalo stažení 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.3.42 443] E: Selhalo stažení https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-11-jre_11.0.21.0.0%2b9_amd64.deb 400 Bad Request [IP: 151.101.3.42 443] E: Selhalo stažení 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.3.42 443] E: Selhalo stažení https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jre_17.0.9.0%2b9_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]
Same problem on Debian 12 with temurin-17-jdk.
The following packages will be upgraded:
temurin-17-jdk
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 166 MB of archives.
After this operation, 130 kB of additional disk space will be used.
Err:1 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jdk amd64 17.0.9.0+9
400 Bad Request [IP: 151.101.3.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.3.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".
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".
Hm...
$ LANG=C wget 'https://packages.adoptium.net/ui/api/v1/download?repoKey=deb&path=pool%2Fmain%2Ft%2Ftemurin-%24%7BVERSION%7D%2Ftemurin-21-jdk_21.0.1.0.0%2B12_amd64.deb&jfLoader=true' --2023-10-27 07:51:31-- https://packages.adoptium.net/ui/api/v1/download?repoKey=deb&path=pool%2Fmain%2Ft%2Ftemurin-%24%7BVERSION%7D%2Ftemurin-21-jdk_21.0.1.0.0%2B12_amd64.deb&jfLoader=true Resolving packages.adoptium.net (packages.adoptium.net)... 151.101.3.42, 151.101.67.42, 151.101.131.42, ... Connecting to packages.adoptium.net (packages.adoptium.net)|151.101.3.42|:443... connected. HTTP request sent, awaiting response... 503 Response object too large 2023-10-27 07:51:32 ERROR 503: Response object too large.
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
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 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?
It looks as though there was some problem with whatever script updated the deb repository metadata. If you look at the Packages files, eg:
curl https://packages.adoptium.net/artifactory/deb/dists/jammy/main/binary-amd64/Packages
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 by 11.
That's why it works when you specify an older version.
And to save anyone from looking up what those versions are...
- java 21:
apt install temurin-21-jdk=21.0.0.0.0+35 - java 17:
apt install temurin-17-jdk=17.0.8.1.0+1 - java 11:
apt install temurin-11-jdk=11.0.20.1.0+1
It looks as though there was some problem with whatever script updated the deb repository metadata. If you look at the Packages files, eg:
curl https://packages.adoptium.net/artifactory/deb/dists/jammy/main/binary-amd64/PackagesThe latest patches have file redirects with
${VERSION}inside, instead of whatever value${VERSION}actually is.For example
temurin-11-jdk_11.0.21redirects to file:pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0+9_amd64.debbut
temurin-11-jdk_11.0.20.1redirects to:pool/main/t/temurin-11/temurin-11-jdk_11.0.20.1.0+1_amd64.debWhere${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...
- java 21:
apt install temurin-21-jdk=21.0.0.0.0+35- java 17:
apt install temurin-17-jdk=17.0.8.1.0+1- java 11:
apt install temurin-11-jdk=11.0.20.1.0+1
The Folder ${VERSION} exists https://adoptium.jfrog.io/ui/repos/tree/General/deb/pool/main/t/temurin-$%7BVERSION%7D
But the encoding is bad somewhere with ${VERSION}.
I am seeing the same problem. I hope we can fix this soon. Thanks for anyone who is working on this problem
Same issue on Linux Mint 21.2, both in Update Manager and apt upgrade:
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: 146.75.119.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: 146.75.119.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: 146.75.119.42 443]
Interesting note. If I just get into docker: docker run -it $image /bin/bash and run commands there, it works. If I run them from Dockerfile - same error with BAD_REQUEST.
In other words, it works in interactive session for some reason.
Actually, scratch that, it's not interactive session that works, it's ARM64 platform. Works fine on arm64/aarch64, fails on x64.
When it will fixed? I am trying to build ubuntu22 runner-images which depends on this and due to thi bug the build is failing.
temurin-${VERSION}/ has been deleted. Is this still a issue?
@sophia-guo thank you, works in my build.
@tnymlr works for x64 now, correct? Thanks!
temurin-11-jdk and temurin-21-jdk work now, but not temurin-17-jdk yet.
Err:1 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-17-jdk_17.0.9.0%2b9_amd64.deb 400 Bad Request [IP: 151.101.247.42 443]
temurin-11-jdkandtemurin-21-jdkwork now, but nottemurin-17-jdkyet.Err:1 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-17-jdk_17.0.9.0%2b9_amd64.deb 400 Bad Request [IP: 151.101.247.42 443]
can confirm temurin-8-jdk and temurin-11-jdk works, temurin-17-jdk not...
Hi folks, we're aware of the issue and are investigating with our CDN and package repo providers.
@sophia-guo yes, x64. Thank's again =).
@sophia-guo
temurin-${VERSION}/ has been deleted. Is this still a issue?
Not works for temurin-17-jdk
Quick way to see if the problem isn't yet fixed:
❯ curl -s 'https://packages.adoptium.net/artifactory/deb/dists/jammy/main/binary-amd64/Packages' |grep '${VERSION}'
Filename: pool/main/t/temurin-${VERSION}/temurin-21-jdk_21.0.1.0.0+12_amd64.deb
Filename: pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0+9_amd64.deb
Filename: pool/main/t/temurin-${VERSION}/temurin-11-jdk_11.0.21.0.0+9_amd64.deb
Filename: pool/main/t/temurin-${VERSION}/temurin-11-jre_11.0.21.0.0+9_amd64.deb
Filename: pool/main/t/temurin-${VERSION}/temurin-17-jre_17.0.9.0+9_amd64.deb
As long as you get this type of result, the problem remains.
By searching the repository content, ${VERSION} is only referenced from https://github.com/adoptium/installer/blob/master/linux/Jenkinsfile . Perhaps there's some quotes issue in Jenkinsfile?
Well, it seems to be an issue only in the packages index. The same version is duplicated in the index and the invalid one gets picked.
For example:
❯ curl -s 'https://packages.adoptium.net/artifactory/deb/dists/jammy/main/binary-amd64/Packages' |grep jdk_21.0.1.0.0
Filename: pool/main/t/temurin-${VERSION}/temurin-21-jdk_21.0.1.0.0+12_amd64.deb
Filename: pool/main/t/temurin-21/temurin-21-jdk_21.0.1.0.0+12_amd64.deb
❯ curl -s 'https://packages.adoptium.net/artifactory/deb/dists/jammy/main/binary-amd64/Packages' |grep jdk_17.0.9.0
Filename: pool/main/t/temurin-${VERSION}/temurin-17-jdk_17.0.9.0+9_amd64.deb
Filename: pool/main/t/temurin-17/temurin-17-jdk_17.0.9.0+9_amd64.deb
I guess the index needs to be fixed or the version bumped?
It looks like the Packages index is now fixed and this issue is resolved. Thanks for fixing this!
It looks like the Packages index is now fixed and this issue is resolved. Thanks for fixing this!
I confirm. x64 & temurin 17 works.
Fixed. Working for me too.