Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install the installer (Pop!_OS Linux) #1076

Open
mothwiingz opened this issue Dec 15, 2024 · 8 comments
Open

Can't install the installer (Pop!_OS Linux) #1076

mothwiingz opened this issue Dec 15, 2024 · 8 comments

Comments

@mothwiingz
Copy link

Installing the installer packages. Copying the exact commands the site tells me to use, returns this error. It's step 2 specifically.
Screenshot from 2024-12-15 03-04-31

I'm on a Ubuntu based distro, if that helps

@judovana
Copy link

hi! What read-me are you following? The error message is moreover clear - redundant 0. The sudo wget -q - https://packages.adoptium.net/artifactory/api/gpg/key/public should do the job. hth.

@judovana
Copy link

judovana commented Dec 15, 2024

also the sudo looks a bit weird, becasue Only the first command runs as root, but the last piped program - tee, is not. And it is the last command which is writing to the restricted file in /etc.
So it should be wget -q - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | sudo tee /etc/...

@judovana
Copy link

As for gpg --dearmor resulting to gpg: no valid OpenPGP data found. I hit the same. Afik it is not necessary here. So ... what readme are you following? ps: please, use copy-paste as text nenxt time, instead of image. TY!

@karianna karianna transferred this issue from adoptium/installer Dec 15, 2024
@mothwiingz
Copy link
Author

hi! What read-me are you following? The error message is moreover clear - redundant 0. The sudo wget -q - https://packages.adoptium.net/artifactory/api/gpg/key/public should do the job. hth.

The exact commands listed at https://adoptium.net/installation/linux/.

@mothwiingz
Copy link
Author

mothwiingz commented Dec 16, 2024

I followed the commands you guys suggested, then continued with the process. Then, this happened:

huntersmoon999@pop-os:~$ sudo apt update sudo apt install temurin-17-jdk
Hit:1 https://repo.steampowered.com/steam stable InRelease
0% [Connected to packages.adoptium.net (104.18.20.66)] [Conn^0% [Connected to packages.adoptium.net (104.18.20.66)] [Conn^Hit:2 http://apt.pop-os.org/proprietary jammy InRelease
Hit:3 http://apt.pop-os.org/release jammy InRelease
Hit:4 http://apt.pop-os.org/ubuntu jammy InRelease
Get:5 http://apt.pop-os.org/ubuntu jammy-security InRelease [129 kB]
Hit:6 https://repo.protonvpn.com/debian stable InRelease
Get:7 http://apt.pop-os.org/ubuntu jammy-updates InRelease [128 kB]
Get:8 https://packages.adoptium.net/artifactory/deb jammy InRelease [7,511 B]
Err:8 https://packages.adoptium.net/artifactory/deb jammy InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 843C48A565F8F04B
Get:9 http://apt.pop-os.org/ubuntu jammy-backports InRelease [127 kB]
Get:10 http://apt.pop-os.org/ubuntu jammy-security/main amd64 DEP-11 Metadata [43.1 kB]
Get:11 http://apt.pop-os.org/ubuntu jammy-security/restricted amd64 DEP-11 Metadata [208 B]
Get:12 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 DEP-11 Metadata [125 kB]
Get:13 http://apt.pop-os.org/ubuntu jammy-security/multiverse amd64 DEP-11 Metadata [208 B]
Get:14 http://apt.pop-os.org/ubuntu jammy-updates/main amd64 DEP-11 Metadata [103 kB]
Get:15 http://apt.pop-os.org/ubuntu jammy-updates/restricted amd64 DEP-11 Metadata [212 B]
Get:16 http://apt.pop-os.org/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [356 kB]
Get:17 http://apt.pop-os.org/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:18 http://apt.pop-os.org/ubuntu jammy-backports/main amd64 DEP-11 Metadata [5,340 B]
Get:19 http://apt.pop-os.org/ubuntu jammy-backports/restricted amd64 DEP-11 Metadata [212 B]
Get:20 http://apt.pop-os.org/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [17.7 kB]
Get:21 http://apt.pop-os.org/ubuntu jammy-backports/multiverse amd64 DEP-11 Metadata [212 B]
Reading package lists... Done
W: GPG error: https://packages.adoptium.net/artifactory/deb jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 843C48A565F8F04B
E: The repository 'https://packages.adoptium.net/artifactory/deb jammy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package temurin-17-jdk

Sorry if this is dumb and obvious, I've literally just started using Linux like two weeks ago. I'm also 15 and not very good at computer stuff in general

@judovana
Copy link

hi! What read-me are you following? The error message is moreover clear - redundant 0. The sudo wget -q - https://packages.adoptium.net/artifactory/api/gpg/key/public should do the job. hth.

The exact commands listed at https://adoptium.net/installation/linux/.

Thanx. It seems it will need a bit of tuning.

@judovana
Copy link

W: GPG error: https://packages.adoptium.net/artifactory/deb jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 843C48A565F8F04B
E: The repository 'https://packages.adoptium.net/artifactory/deb jammy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

I'm not familiar with apt enough, but indeed it skipped the key import, so /etc/apt/trusted.gpg.d/adoptium.gpg is not there. You can skip the signature check if you must. Internet will help.

I had now tried the instructions as they are: https://adoptium.net/installation/linux/#_deb_installation_on_debian_or_ubuntu and it works out of the box on latest ubuntu. Even the -q0. The -q0 is essential to make the command sequence work as it is (sorry for missleading yu with 'jsut -q', but it is the error you had)

As your's wget do not know -q0 you may have weird wget. Tried on

wget --version
GNU Wget 1.21.4 built on linux-gnu.

-cares +digest -gpgme +https +ipv6 +iri +large-file -metalink +nls 
+ntlm +opie +psl +ssl/openssl 

and

wget --version
GNU Wget2 2.1.0 - multithreaded metalink/file/website downloader

+digest +https +ssl/gnutls +ipv6 +iri +large-file +nls -ntlm -opie +psl -hsts
+iconv +idn2 +zlib -lzma +brotlidec +zstd -bzip2 -lzip +http2 +gpgme

And they both had -q0

Pls try to log in as root (sudo su) and the execute the command from https://adoptium.net/installation/linux/#_deb_installation_on_debian_or_ubuntu

@jerboaa jerboaa transferred this issue from adoptium/adoptium-support Dec 16, 2024
@sxa
Copy link
Member

sxa commented Dec 18, 2024

The exact commands listed at https://adoptium.net/installation/linux/.

Thanx. It seems it will need a bit of tuning.

The Permission denied error is because you've added sudo to the wget command and not the bit of the pipeline that's trying to write the file into the location under /etc/apt. You need the elevated access for the tee command which is writing to the file. If you change your command to be wget -q0 - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null then it should complete without the error. Alternatively you could run sudo su - first before running the command as-is on the installation page.

Note: Apologies if there's any typos in the line above - I've typed it manually from your screenshot. For future reference it's usually preferable for text to be put directly into the issues instead of screenshots so they can be cut and pasted more easily by anyone attempting to reproduce your issue - see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks for some examples.

The need for sudo in these cases if you're not already root is mentioned in this section of the installer page that you referenced:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants