-
Notifications
You must be signed in to change notification settings - Fork 241
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
Installing CLI without apt-key #1741
Comments
I just ran into this. For me, the issue was that https://releases.jfrog.io/artifactory/jfrog-gpg-public/jfrog_public_gpg.key uses
makes everything work as expected. |
Thanks a lot for your response @klaegera ! That does indeed seem to be the issue, and removing all Still, while this is good work-around, the issue remains. |
The scripts used to create the debian and rpm installers of jfrog-cli are managed here, in case someone would like to attempt improving them through a pull request. |
@eyalbe4 this is a problem with https://releases.jfrog.io/artifactory/jfrog-gpg-public/jfrog_public_gpg.key — This is a problem for anyone running Ubuntu 22.04 or later, since they will be fetching and storing https://releases.jfrog.io/artifactory/jfrog-gpg-public/jfrog_public_gpg.key on the filesystem, as this is now the correct way to install gpg keys for APT. So the downloaded key is used directly rather than processing it by gpg first. It's very non-obvious that the problem is that the key is in the wrong format. |
This fixes the problem in APT: https://salsa.debian.org/apt-team/apt/-/merge_requests/309 |
Currently the installation instructions on the download page includes:
But given that
apt-key
is being deprecated, with 22.04 being the last supported version, this needs to be updated. This process can normally be done manually by downloading the key to/usr/share/keyrings
1 and adding asigned-by
reference to the public key. However, doing that I end up with:when the repo list has a
signed-by
part. This is solved by removing thesigned-by
part, but sometimes (I can't seem to reproduce when) this results in another error whereapt
reports something like "Updates with this method cannot be made securely" and aborts the whole update process.Even when adding the public key via
gpg --keyserver keyserver.ubuntu.com --recv-key 6B219DCCD7639232
it still gives the above error message. I'm guessing this is due to the repository actually not being signed, and that it does not make a difference whether the public key is fetched. My question is, do you have a suggested way to do this securely, withoutapt-key
?Footnotes
curl -sS https://releases.jfrog.io/artifactory/jfrog-gpg-public/jfrog_public_gpg.key | sudo tee /usr/share/keyrings/jfrog.asc && echo "deb [signed-by=/usr/share/keyrings/jfrog.asc] https://releases.jfrog.io/artifactory/jfrog-debs xenial contrib" > /etc/apt/source.list.d/jfrog.list
↩The text was updated successfully, but these errors were encountered: