adoptium / installer

Installer scripts for Eclipse Temurin binaries
Apache License 2.0
145 stars 71 forks source link

Debian Bookworm repository for Temurin 21 not working #766

Open jinzo opened 8 months ago

jinzo commented 8 months ago

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.

mrairzuk commented 5 months ago

We've manually replaced some of the missing packages (root cause analysis is still ongoing) so please do try again and let us know!

Just successfully updated JDK 17

Get:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 17.0.10.0.0+7 [166 MB]
Fetched 166 MB in 1min 40s (1659 kB/s)
ByCzech commented 5 months ago

Right now new problem with JDK 21 + JRE 17 remain (see above):

Err:1 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jre amd64 17.0.10.0.0+7 400 Bad Request [IP: 151.101.3.42 443] Err:2 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-21-jdk amd64 21.0.2.0.0+13 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-jre_17.0.10.0.0%2b7_amd64.deb 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.2.0.0%2b13_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]

gdams commented 5 months ago

E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jre_17.0.10.0.0%2b7_amd64.deb 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.2.0.0%2b13_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]

@ByCzech those URL's look broken (see the $%7BVERSION%7D) I'll check this out

ByCzech commented 5 months ago

E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jre_17.0.10.0.0%2b7_amd64.deb 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.2.0.0%2b13_amd64.deb 400 Bad Request [IP: 151.101.3.42 443]

@ByCzech those URL's look broken (see the $%7BVERSION%7D) I'll check this out

I know, this happened in past too. See above https://github.com/adoptium/installer/issues/766#issue-1965166105

ByCzech commented 5 months ago

Problem seems solved for me. This try i successfully upgraded temurin-17-jre temurin-21-jdk temurin-21-jre temurin-8-jdk packages.

mezpahlan commented 5 months ago

Hi thanks all for the help trying to get this working. I've tried again from my home connection and it still didn't work (updating JDK 17). This is on my work laptop which got me thinking maybe it is my companies VPN messing things up.

I turned off my VPN and tried the update again and this time it has worked :balloon: .

image

So for everyone else with the same problem maybe try turning off your VPN? I still think it should work when the VPN is connected but this might be an easy workaround?

slovdahl commented 4 months ago

Also getting something similar in CI now:

5.610   Error reading from server. Remote end closed connection [IP: 151.101.247.42 443]
5.616 E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-17/temurin-17-jdk_17.0.10.0.0%2b7_amd64.deb  Error reading from server. Remote end closed connection [IP: 151.101.247.42 443]
emile-ekane-vectorive commented 3 months ago

Hello, Just tried installing temurin-21-jdk and got this error. System : Ubuntu 22.04.3 LTS

ekane@pcdata08:~$ sudo apt-get install temurin-21-jdk
[sudo] password for ekane:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package temurin-21-jdk

Is there a workaround solution ?

dmayo3 commented 2 months ago

Just had this issue with debian bookworm while trying to install temurin 21.

Weirdly none of the packages would be available to install unless I ran the following command twice 🤔

add-apt-repository https://packages.adoptium.net/artifactory/deb/

After that it worked.

dmayo3 commented 2 months ago

For those seeing 403 Forbidden [IP: x.x.x.x] type errors, there seems to be some sort of rate limiting in place.

I was seeing this a lot when rebuilding docker images a lot that included the temurin package.

I would have to wait a while before retrying again.

Now I avoid reinstalling it as often and it hasn't been an issue for me lately.

Codes301 commented 1 week ago

Step 2 does not work for me on Linux Mint Debian, LMDE 6 "Faye"

"Download the Eclipse Adoptium GPG key:"

wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null edit: Sorry, i posted step 3 results. I was able to get both by adding "sudo" to the code.

I need to install this for Ren'py, it is the version they ask for in order to create Android builds. Renpy 8 2 3 jdk

karianna commented 1 week ago

Step 2 does not work for me on Linux Mint Debian, LMDE 6 "Faye"

"Download the Eclipse Adoptium GPG key:"

echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list

It results in this: tee: /etc/apt/sources.list.d/adoptium.list: Permission denied deb

You need to add sudo to the tee command

echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list