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

debian: GPG key required to add dvc repository #4565

Closed
bobertlo opened this issue Sep 12, 2020 · 9 comments
Closed

debian: GPG key required to add dvc repository #4565

bobertlo opened this issue Sep 12, 2020 · 9 comments
Labels
triage Needs to be triaged

Comments

@bobertlo
Copy link
Contributor

Someone reported on discord that installing on debian did not work:

@ruslan Hi again,
I am trying to install dvc on compute engine on a debian machine
$ uname -a
Linux instance-1 4.19.0-10-cloud-amd64 iterative/dvc.org#1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux

Here are the commands that I try to install on debian machine.
$ sudo wget \
       https://dvc.org/deb/dvc.list \
       -O /etc/apt/sources.list.d/dvc.list
$ sudo apt update
$ sudo apt install dvc

Unfortunately this returns
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dvc

Can you help about it please?

I verified the instructions on the website but was suspicious since there was no key added. I tried on my machine (Debian WSL) and got this error when running sudo apt update:

W: GPG error: https://s3-us-east-2.amazonaws.com/dvc-s3-repo/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 13587BADC50AAAD1
@jorgeorpinel
Copy link
Contributor

Sounds like a core issue? Transferring for now.

@jorgeorpinel jorgeorpinel transferred this issue from iterative/dvc.org Sep 12, 2020
@jorgeorpinel jorgeorpinel added the triage Needs to be triaged label Sep 12, 2020
@efiop
Copy link
Contributor

efiop commented Sep 14, 2020

Hi @bobertlo ! Thanks for creating this issue!

That one is a known issue iterative/dvc-s3-repo#3 with our deb packages, but it is a warning that is normally ignored by apt (it is a GPG error, but deb warning), so shouldn't affect users, unless a strict policy is in place that doesn't allow installing such packages.

Closing in favor of iterative/dvc-s3-repo#3 . Thanks again for the feedback! 🙏

@efiop efiop closed this as completed Sep 14, 2020
@bmabir17-asj
Copy link

Hello @efiop ,
I am getting a similar error
W: GPG error: https://s3-us-east-2.amazonaws.com/dvc-s3-repo/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F84CB84729F1B545
The workflow was working fine 2 days ago.

@efiop
Copy link
Contributor

efiop commented May 7, 2022

@bmabir17-asj Hey. Could you please make sure you ran

wget -qO - https://dvc.org/deb/iterative.asc | sudo apt-key add -

from https://dvc.org/doc/install/linux#from-repo-on-debian-ubuntu ?

@bmabir17-asj
Copy link

@efiop ,
Thanks . After running

wget -qO - https://dvc.org/deb/iterative.asc | sudo apt-key add -

I got another error with NO_PUBKEY for nvidia cuda package and solved it with the following commands

sudo apt update 2>&1 1>/dev/null | sed -ne 's/.*NO_PUBKEY //p' | while read key; do if ! [[ ${keys[*]} =~ "$key" ]]; then sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys "$key"; keys+=("$key"); fi; done

@efiop
Copy link
Contributor

efiop commented May 7, 2022

@bmabir17-asj So it solved the issue for you, right? Just making sure 🙂

@bmabir17-asj
Copy link

@efiop yes

@david-waterworth
Copy link

Note on Ubuntu 22.04 this method works but is deprecated

wget -qO - https://dvc.org/deb/iterative.asc | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

@efiop
Copy link
Contributor

efiop commented Mar 12, 2023

Thanks @david-waterworth ! 🙏 Created iterative/dvc-s3-repo#121

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

No branches or pull requests

5 participants