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

GPG error in Ubuntu install - public key is not available? #462

Closed
joemcl opened this issue Aug 29, 2017 · 10 comments
Closed

GPG error in Ubuntu install - public key is not available? #462

joemcl opened this issue Aug 29, 2017 · 10 comments

Comments

@joemcl
Copy link

joemcl commented Aug 29, 2017

I'm attempting to sudo apt-get update in Ubuntu 17.04 after adding http://qgis.org/debian/ to my /etc/apt/sources.list, and getting the following error message:

"W: GPG error: http://qgis.org/debian zesty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CAEB3DC3BDF7FB45
E: The repository 'http://qgis.org/debian zesty 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."

I'm checking out the manpage entry, but obviously I'd prefer to do a secure update ;) .
So can 'http://qgis.org/debian zesty InRelease' be signed/updated?
Thanks!

@dennilopez6
Copy link

dennilopez6 commented Sep 11, 2017

Add the following lines in terminal:
wget -O - http://qgis.org/downloads/qgis-2017.gpg.key | gpg --import
gpg --fingerprint CAEB3DC3BDF7FB45

Should output:
pub 2048R/BDF7FB45 2017-08-16 [expires: 2019-08-16]
Key fingerprint = 61E0 A086 749E 463E DE50 2255 CAEB 3DC3 BDF7 FB45
uid QGIS Archive Automatic Signing Key (2017) qgis-developer@lists.osgeo.org
sub 2048R/E959BBCF 2017-08-16 [expires: 2019-08-16]

then add:
sudo apt-get update
gpg --export --armor CAEB3DC3BDF7FB45 | sudo apt-key add -
sudo apt-get update (again to see if there are still any errors)

That should resolve it.

User justinmnoor posted this on 31 March for the NO_PUBKEY 089EBE08314DF160 error:

Hi. If you have time, please review the QGIS Installers Documentation for Ubuntu Xenial 16.04.

I installed Las Palmas 2.18.5 on Ubuntu Xenial 16.04 LTS, following the instructions at:http://www.qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

The following error was generated:
W: GPG error: http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 089EBE08314DF160

I resolved it with: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 089EBE08314DF160

This key is not referred to in the documentation. Sorry in advance if I've missed anything.

These fixed it for me.

@joemcl
Copy link
Author

joemcl commented Sep 20, 2017

@dennilopez6 thanks so much! The steps above fixed the issue. I noticed that the steps above are now at http://www.qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu .

@joemcl joemcl closed this as completed Sep 20, 2017
@Semo
Copy link

Semo commented Nov 26, 2018

Still an acceptable workaround, though it's a mess that it's not fixed in late 2018!!!

@brotherdust
Copy link

The key mentioned in this issue is now expired as of 8/16/2019. Workaround no longer works.

@hmallen
Copy link

hmallen commented Aug 23, 2019

I'm having the same issue with Debian stable. Attempts to retrieve a new key only result in retrieval of the old key and gpg reports that the key is unchanged as a result. I noticed this around the same time as user from the previous comment. It had been working fine for the last couple months.

Edit: I realized that I was actually running Debian stretch on that machine, and a switch from the 3.8 back to the 3.4 LTR repository as instructed in installer footnotes solved my problem.

@mbernasocchi
Copy link
Member

@jef-n I just had somebody in xenial trying to install QGIS with deb http://qgis.org/ubuntu-ltr xenial main ubuntu-ltr but apt update complains that the key on the server is outdated. do you have any hints?

@jef-n
Copy link
Member

jef-n commented Aug 26, 2019

plain xenial has also long been dropped - 3.4 requires GDAL2 at least. You can go for ubuntugis-ltr + ubuntugis (see also the footnotes).

@mbernasocchi
Copy link
Member

ah, I missed the foot notes thanks

@GregorioF2
Copy link

Today on 2019 i had to addapt this solution to:

@jef-n
Copy link
Member

jef-n commented Dec 2, 2019

Today on 2019 i had to addapt this solution to:

See also https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

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

No branches or pull requests

8 participants