Issue
What were you trying to do that didn't work?
I am trying to check for software updates in Cockpit after I have activated the EPEL repository
Please provide the package NVR for which the bug is seen:
cockpit-packagekit-332-1.el10.noarch
How reproducible is this bug?:
Steps to reproduce
Enable EPEL repository
sudo dnf config-manager --set-enabled crb
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
Check for software updates in Cockpit
Expected results
Cockpit should display available software updates
Actual results
Loading available updates failed:
Failed to download gpg key for repo 'epel': Curl error (37): Could not read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever_major [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever_major]
I suspect that Cockpit does not know the variables $releasever_major and $releasever_minor that are used in /etc/yum.repos.d/epel.repo
The GPG key has been installed correctly in /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-10.
The installation of EPEL packages with dnf works without any problems.