AlmaLinux / raspberry-pi

AlmaLinux Raspberry Pi
122 stars 17 forks source link

Packagekit fails with missing gpg key #19

Closed camckay closed 1 year ago

camckay commented 1 year ago

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.

metalefty commented 1 year ago

@srbala I've created PR. https://git.almalinux.org/rpms/almalinux-release-raspberrypi/pulls/1

metalefty commented 1 year ago

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

andrewlukoshko commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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