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

flatpak update gives "error: GPG signatures found, but none are in trusted keyring" after adding flathub #944

Closed
skierpage opened this issue Jul 31, 2017 · 10 comments

Comments

@skierpage
Copy link

I followed https://flathub.org/#using and added flathub to my old-ish flatpak setup:

% flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

but then flatpak update displays error: GPG signatures found, but none are in trusted keyring"

The error message is the same as in issue #421

@skierpage
Copy link
Author

I then tried flatpak remote-ls --app flathub and got the same error: GPG signatures found, but none are in trusted keyring.

I then tried to clean up with flatpak remote-delete flathub but that resulted in error: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Flatpak system operation ConfigureRemote not allowed for user
So I retried with sudo, sudo flatpak remote-delete flathub , which worked, but now when I try to reproduce, the same initial flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo command results in error: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Flatpak system operation ConfigureRemote not allowed for user

This is all with Flatpak 0.9.7

@pothos
Copy link

pothos commented Aug 1, 2017

Maybe my issue is the same. Do I really have to delete everything and add it anew to get it working again? Thanks for the help :)

flatpak update --user
Looking for updates...
Warning: Problem looking for related refs: GPG signatures found, but none are in trusted keyring
Warning: Can't find dependencies: GPG signatures found, but none are in trusted keyring
[…]
error: GPG signatures found, but none are in trusted keyring

@pothos
Copy link

pothos commented Aug 2, 2017

I might have used an 0.8 version while flathub changed its key and so it was not migrated as it would be with a recent flatpak version.

It could be resolved by importing the new key manually.

The flathub entry in ~/.local/share/flatpak/repo/config is:

[remote "flathub"]
gpg-verify=true
gpg-verify-summary=true
url=https://flathub.org/repo/
xa.title=Flathub

The manual key import was done via:

wget https://flathub.org/repo/flathub.gpg
flatpak --user remote-modify --gpg-import=flathub.gpg flathub

@viktormadarasz
Copy link

I have the same issue on flatpak 0.9.7 even after importing the key as @pothos specified

My Flatpak config entry looks like below in ~/.local/share/flatpak/repo/config

[core]
repo_version=1
mode=bare-user

[remote "flathub"]
gpg-verify=true
gpg-verify-summary=true
url=https://flathub.org/repo/
xa.title=Flathub

--- Error: ----------

[viktormadarasz@littlepocoklenovo Downloads]$ flatpak --user remote-modify --gpg-import=flathub.gpg flathub
[viktormadarasz@littlepocoklenovo Downloads]$ sudo flatpak install --from https://git.gnome.org/browse/recipes/plain/flatpak/gnome-recipes.flatpakref
[sudo] password for viktormadarasz:
Installing: org.gnome.Recipes/x86_64/stable
Warning: Can't find dependencies: GPG signatures found, but none are in trusted keyring
Warning: Problem looking for related refs: GPG signatures found, but none are in trusted keyring
error: GPG signatures found, but none are in trusted keyring

Thanks

Viktor

@alexlarsson
Copy link
Member

@viktormadarasz Ah, but that example is pulling gnome-recipes from the old gnome repo, not from flathub. After having adder the flathub remote (with --user) you should just do:
flatpak --user install flathub org.gnome.Recipes

@alexlarsson
Copy link
Member

Oh, sorry, that was wrong of me. The gnome-recipes flatpakref actually does point to flathub, but has the wrong (old) GPG key for it. lemme update it.

@viktormadarasz
Copy link

viktormadarasz commented Sep 5, 2017 via email

@Adhi1296
Copy link

Failed to install com.belledonnecommunications.linphone: Commit bae79f29ce390b6b28254cba0ae63f1bbb8d9a30f50acce422ce5ef1f1839441: GPG signatures found, but none are in trusted keyring getting this error again.

@barthalion
Copy link
Member

Please report it to the team managing repository that application comes from.

@lagweasel
Copy link

@Adhi1296 I had the same problem and found I needed to use https://linphone.org/flatpak/bc.flatpakrepo for the remote URL instead of https://linphone.org/flatpak/linphone.flatpakref

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

7 participants