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)

Most upvoted comments

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).

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

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 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.

2023/10/29 09:21:25 ui: 2023-10-29T09:21:25Z:     azure-arm.ubuntu20: After this operation, 214 MB of additional disk space will be used.
2023/10/29 09:21:25 ui: 2023-10-29T09:21:25Z:     azure-arm.ubuntu20: Get:1 https://packages.adoptium.net/artifactory/deb focal/main amd64 adoptium-ca-certificates all 1.0.2-1 [2304 B]
2023/10/29 09:21:25 ui: 2023-10-29T09:21:25Z:     azure-arm.ubuntu20: Get:2 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.382.0.0+5 [84.8 MB]
2023/10/29 09:21:25 ui: 2023-10-29T09:21:25Z:     azure-arm.ubuntu20: Get:3 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 p11-kit-modules amd64 0.23.20-1ubuntu0.1 [231 kB]
2023/10/29 09:21:26 ui: 2023-10-29T09:21:26Z:     azure-arm.ubuntu20: Get:4 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 p11-kit amd64 0.23.20-1ubuntu0.1 [93.8 kB]
2023/10/29 09:21:26 ui: 2023-10-29T09:21:26Z:     azure-arm.ubuntu20: Get:5 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 fonts-dejavu-extra all 2.37-1 [1953 kB]
2023/10/29 09:21:26 ui: 2023-10-29T09:21:26Z:     azure-arm.ubuntu20: Get:6 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 fonts-dejavu all 2.37-1 [3130 B]
2023/10/29 09:21:26 ui: 2023-10-29T09:21:26Z:     azure-arm.ubuntu20: Get:7 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 java-common all 0.72 [6816 B]
2023/10/29 09:21:27 ui: 2023-10-29T09:21:27Z:     azure-arm.ubuntu20: Err:2 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.382.0.0+5
2023/10/29 09:21:27 ui: 2023-10-29T09:21:27Z:     azure-arm.ubuntu20:   403  Forbidden [IP: 151.101.39.42 443]
2023/10/29 09:21:27 ui: 2023-10-29T09:21:27Z:     azure-arm.ubuntu20: Fetched 2290 kB in 2s (1344 kB/s)
2023/10/29 09:21:28 ui error: 2023-10-29T09:21:28Z: ==> azure-arm.ubuntu20: E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-8/temurin-8-jdk_8.0.382.0.0+5_amd64.deb  403  Forbidden [IP: 151.101.39.42 443]
2023/10/29 09:21:28 ui error: 2023-10-29T09:21:28Z: ==> azure-arm.ubuntu20: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

It looks like the Packages index is now fixed and this issue is resolved. Thanks for fixing this!

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

It’s NOT fixed! Using these scripts, I still get the error randomly.

2023/10/29 09:21:25 ui: 2023-10-29T09:21:25Z:     azure-arm.ubuntu20: After this operation, 214 MB of additional disk space will be used.
2023/10/29 09:21:25 ui: 2023-10-29T09:21:25Z:     azure-arm.ubuntu20: Get:1 https://packages.adoptium.net/artifactory/deb focal/main amd64 adoptium-ca-certificates all 1.0.2-1 [2304 B]
2023/10/29 09:21:25 ui: 2023-10-29T09:21:25Z:     azure-arm.ubuntu20: Get:2 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.382.0.0+5 [84.8 MB]
2023/10/29 09:21:25 ui: 2023-10-29T09:21:25Z:     azure-arm.ubuntu20: Get:3 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 p11-kit-modules amd64 0.23.20-1ubuntu0.1 [231 kB]
2023/10/29 09:21:26 ui: 2023-10-29T09:21:26Z:     azure-arm.ubuntu20: Get:4 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 p11-kit amd64 0.23.20-1ubuntu0.1 [93.8 kB]
2023/10/29 09:21:26 ui: 2023-10-29T09:21:26Z:     azure-arm.ubuntu20: Get:5 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 fonts-dejavu-extra all 2.37-1 [1953 kB]
2023/10/29 09:21:26 ui: 2023-10-29T09:21:26Z:     azure-arm.ubuntu20: Get:6 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 fonts-dejavu all 2.37-1 [3130 B]
2023/10/29 09:21:26 ui: 2023-10-29T09:21:26Z:     azure-arm.ubuntu20: Get:7 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 java-common all 0.72 [6816 B]
2023/10/29 09:21:27 ui: 2023-10-29T09:21:27Z:     azure-arm.ubuntu20: Err:2 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.382.0.0+5
2023/10/29 09:21:27 ui: 2023-10-29T09:21:27Z:     azure-arm.ubuntu20:   403  Forbidden [IP: 151.101.39.42 443]
2023/10/29 09:21:27 ui: 2023-10-29T09:21:27Z:     azure-arm.ubuntu20: Fetched 2290 kB in 2s (1344 kB/s)
2023/10/29 09:21:28 ui error: 2023-10-29T09:21:28Z: ==> azure-arm.ubuntu20: E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-8/temurin-8-jdk_8.0.382.0.0+5_amd64.deb  403  Forbidden [IP: 151.101.39.42 443]
2023/10/29 09:21:28 ui error: 2023-10-29T09:21:28Z: ==> azure-arm.ubuntu20: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

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.

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]

can confirm temurin-8-jdk and temurin-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