PYGPGME is no more available on RHEL-9 based distros
Summary
GITLAB-RUNNER installation process also install (or try to) PYGPGME and a few other dependencies. Unfortunatelly, at least since RHEL-9, PYGPGME is no more available with EL9. Then, Rocky Linux 9 (my case), CentOS 9 and also latest Fedora are concerned too.
I digged around and found a few interesting links:
- https://forum.gitlab.com/t/red-hat-9-and-workalike-support-rocky-alma-centos-9/81959
- https://access.redhat.com/documentation/fr-fr/red_hat_enterprise_linux/7/html/7.7_release_notes/deprecated_functionality#deprecated_packages
Similar issues:
I wonder what the side effects will be, it GITLAB-RUNNER uses PYGPGME:
Steps to reproduce
Standard installation, on Rocky Linux freshly updated (yum update ...
), as described here:
https://docs.gitlab.com/runner/install/linux-repository.html#installing-gitlab-runner
Example Project
What is the current bug behavior?
GITLAB-RUNNER dependency not installed.
What is the expected correct behavior?
All required dependencies should be installed. Dependency should match what is actually officially supported by the given distro.
I suspect that GPG signature management is now performed differently, dnf
itself.
I found some article explaining this, but I'm unable to find it back at the moment.
Relevant logs and/or screenshots
Rocky Linux 9:
[root@prod-d6fd85 ~]# curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7016 100 7016 0 0 23231 0 --:--:-- --:--:-- --:--:-- 23231
Detected operating system as rocky/9.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/runner/gitlab-runner/config_file.repo?os=rocky&dist=9&source=script
done.
Installing pygpgme to verify GPG signatures...
runner_gitlab-runner-source 8.0 kB/s | 3.1 kB 00:00
runner_gitlab-runner-source 6.8 kB/s | 3.1 kB 00:00
runner_gitlab-runner-source 7.0 kB/s | 3.1 kB 00:00
runner_gitlab-runner-source 102 B/s | 296 B 00:02
No match for argument: pygpgme
Error: Unable to find a match: pygpgme
WARNING:
The pygpgme package could not be installed. This means GPG verification is not possible for any RPM installed on your system.
To fix this, add a repository with pygpgme. Usualy, the EPEL repository for your system will have this.
More information: https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F
Installing yum-utils...
runner_gitlab-runner-source 1.1 kB/s | 951 B 00:00
Package yum-utils-4.3.0-11.el9_3.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Generating yum cache for runner_gitlab-runner...
Generating yum cache for runner_gitlab-runner-source...
The repository is setup! You can now install packages.
Installation continues normally, though.
Centos-7: (had to remove and reinstall it, to get the capture below).
[root@prod-179-amd64 ~]# curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7016 100 7016 0 0 23825 0 --:--:-- --:--:-- --:--:-- 23863
Detected operating system as centos/7.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/runner/gitlab-runner/config_file.repo?os=centos&dist=7&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.proxad.net
* epel: cdn.centos.no
* extras: centos.mirrors.proxad.net
* rpmfusion-free-updates: www.mirrorservice.org
* updates: centos.mirrors.proxad.net
runner_gitlab-runner-source/signature | 862 B 00:00:00
Retrieving key from https://packages.gitlab.com/runner/gitlab-runner/gpgkey
Importing GPG key 0x51312F3F:
Userid : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
Fingerprint: f640 3f65 44a3 8863 daa0 b6e0 3f01 618a 5131 2f3f
From : https://packages.gitlab.com/runner/gitlab-runner/gpgkey
Retrieving key from https://packages.gitlab.com/runner/gitlab-runner/gpgkey/runner-gitlab-runner-4C80FB51394521E9.pub.gpg
Retrieving key from https://packages.gitlab.com/runner/gitlab-runner/gpgkey/runner-gitlab-runner-49F16C5CC3A0F81F.pub.gpg
runner_gitlab-runner-source/signature | 951 B 00:00:00 !!!
runner_gitlab-runner-source/primary | 175 B 00:00:00
Package pygpgme-0.3-9.el7.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.proxad.net
* epel: cdn.centos.no
* extras: centos.mirrors.proxad.net
* rpmfusion-free-updates: www.mirrorservice.org
* updates: centos.mirrors.proxad.net
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
Nothing to do
Generating yum cache for runner_gitlab-runner...
Importing GPG key 0x51312F3F:
Userid : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
Fingerprint: f640 3f65 44a3 8863 daa0 b6e0 3f01 618a 5131 2f3f
From : https://packages.gitlab.com/runner/gitlab-runner/gpgkey
Generating yum cache for runner_gitlab-runner-source...
The repository is setup! You can now install packages.
Output of checks
dnf search pygpgme
obviously gives no match
.
Results of GitLab environment info
Results of GitLab application Check
Possible fixes
/label ~"type::bug"