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

Packagekit fails with missing gpg key #19

Closed
camckay opened this issue Nov 11, 2022 · 5 comments
Closed

Packagekit fails with missing gpg key #19

camckay opened this issue Nov 11, 2022 · 5 comments
Assignees
Labels
ready-to-close close after creating updated image

Comments

@camckay
Copy link

camckay commented Nov 11, 2022

Actual error output...

Command failed: Failed to download gpg key for repo 'raspberrypi': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux]

/etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux doesn't actually exist. Should be looking for RPM-GPG-KEY-AlmaLinux-9. Creating symlink works around the issue.

@srbala srbala self-assigned this Nov 11, 2022
@metalefty
Copy link
Member

@metalefty
Copy link
Member

The fixed package has been released. I'll test dnf update when it spread spread to mirrors.

@andrewlukoshko
Copy link
Member

It's also possible to fix this by importing GPG key manually:

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9

I'll close this issue when we have updated image.

@metalefty
Copy link
Member

This will also happen when executing not-installed commands:

[meta@rpi400 ~]$ tig
bash: tig: command not found...
Failed to search for file: Failed to download gpg key for repo 'raspberrypi': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux]

Now we have a fixed package. It is now available via dnf update. After updating package, the issue no longer happens.

[meta@rpi400 ~]$ tig
bash: tig: command not found...
Install package 'tig' to provide command 'tig'? [N/y]

@metalefty metalefty added the ready-to-close close after creating updated image label Apr 27, 2023
@metalefty
Copy link
Member

Now the issue is solved at 20230615 image.
https://repo.almalinux.org/development/almalinux/9/raspberrypi/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-close close after creating updated image
Projects
None yet
Development

No branches or pull requests

4 participants