adoptium / installer

Installer scripts for Eclipse Temurin binaries
Apache License 2.0
149 stars 75 forks source link

error in installation instructions #779

Open goodale opened 10 months ago

goodale commented 10 months ago

The installation instructions at the following page https://adoptium.net/installation/linux/ for Deb (Ubuntu) Linux appear to have a step missing.

The following error occurs:

$ sudo echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^UBUNTU_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb focal main
$ sudo apt update

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.adoptium.net/artifactory/deb focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 843C48A565F8F04B
W: Failed to fetch https://packages.adoptium.net/artifactory/deb/dists/focal/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 843C48A565F8F04B
W: Some index files failed to download. They have been ignored, or old ones used instead.
V0IDL355 commented 9 months ago

Remove the sign key and readd it

dtanner commented 3 months ago

I just had similar symptoms for an installation based on ubuntu 22.04. I don't know if my cause is identical to the this, but in my case, the file permissions of the /etc/apt/trusted.gpg.d/adoptium.gpg file were -rw-r-----, and they needed to be readable by others so that the _apt user can read the file. My apt update logs contained: The key(s) in the keyring /etc/apt/trusted.gpg.d/adoptium.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

My fix was to run chmod a+r /etc/apt/trusted.gpg.d/adoptium.gpg before the apt update command.