GitLab runner package fails to install

Summary

The 16.4.1-1 version of the GitLab Runner yum package doesn't install successfully on Amazon Linux 2.

Steps to reproduce

Here's a Dockerfile that demonstrates the issue:

FROM public.ecr.aws/amazonlinux/amazonlinux:2

RUN curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | bash

RUN yum -y install gitlab-runner

Actual behavior

The yum install fails with an error:

Package does not match intended download.

See more detailed log below.

Expected behavior

A successful install, please.

Relevant logs and/or screenshots

Here's the output of docker build .:

[+] Building 71.0s (6/6) FINISHED                                                                          docker:desktop-linux
 => [internal] load .dockerignore                                                                                          0.0s
 => => transferring context: 2B                                                                                            0.0s
 => [internal] load build definition from Dockerfile                                                                       0.0s
 => => transferring dockerfile: 225B                                                                                       0.0s
 => [internal] load metadata for public.ecr.aws/amazonlinux/amazonlinux:2                                                  0.7s
 => CACHED [1/3] FROM public.ecr.aws/amazonlinux/amazonlinux:2@sha256:f09c0c66d64604b7a7f890c3f67f2cb8cf0f0999832e57afb0e  0.0s
 => [2/3] RUN curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | bash        51.2s
 => ERROR [3/3] RUN yum -y install gitlab-runner                                                                          19.1s
------                                                                                                                          
 > [3/3] RUN yum -y install gitlab-runner:                                                                                      
0.377 Loaded plugins: ovl, priorities                                                                                           
2.853 Resolving Dependencies                                                                                                    
2.857 --> Running transaction check                                                                                             
2.857 ---> Package gitlab-runner.x86_64 0:16.4.1-1 will be installed                                                            
2.859 --> Processing Dependency: tar for package: gitlab-runner-16.4.1-1.x86_64
2.892 --> Processing Dependency: git for package: gitlab-runner-16.4.1-1.x86_64
2.905 --> Running transaction check
2.905 ---> Package git.x86_64 0:2.40.1-1.amzn2.0.1 will be installed
2.907 --> Processing Dependency: perl-Git = 2.40.1-1.amzn2.0.1 for package: git-2.40.1-1.amzn2.0.1.x86_64
2.912 --> Processing Dependency: git-core-doc = 2.40.1-1.amzn2.0.1 for package: git-2.40.1-1.amzn2.0.1.x86_64
2.915 --> Processing Dependency: git-core = 2.40.1-1.amzn2.0.1 for package: git-2.40.1-1.amzn2.0.1.x86_64
2.918 --> Processing Dependency: perl >= 5.008 for package: git-2.40.1-1.amzn2.0.1.x86_64
2.938 --> Processing Dependency: perl(warnings) for package: git-2.40.1-1.amzn2.0.1.x86_64
2.938 --> Processing Dependency: perl(strict) for package: git-2.40.1-1.amzn2.0.1.x86_64
2.938 --> Processing Dependency: perl(lib) for package: git-2.40.1-1.amzn2.0.1.x86_64
2.938 --> Processing Dependency: perl(Term::ReadKey) for package: git-2.40.1-1.amzn2.0.1.x86_64
2.940 --> Processing Dependency: perl(IPC::Open2) for package: git-2.40.1-1.amzn2.0.1.x86_64
2.942 --> Processing Dependency: perl(Git) for package: git-2.40.1-1.amzn2.0.1.x86_64
2.944 --> Processing Dependency: perl(Getopt::Long) for package: git-2.40.1-1.amzn2.0.1.x86_64
2.946 --> Processing Dependency: perl(File::Spec) for package: git-2.40.1-1.amzn2.0.1.x86_64
2.948 --> Processing Dependency: perl(File::Find) for package: git-2.40.1-1.amzn2.0.1.x86_64
2.950 --> Processing Dependency: perl(File::Basename) for package: git-2.40.1-1.amzn2.0.1.x86_64
2.950 --> Processing Dependency: /usr/bin/perl for package: git-2.40.1-1.amzn2.0.1.x86_64
2.952 ---> Package tar.x86_64 2:1.26-35.amzn2.0.2 will be installed
2.957 --> Running transaction check
2.957 ---> Package git-core.x86_64 0:2.40.1-1.amzn2.0.1 will be installed
2.962 --> Processing Dependency: openssh-clients for package: git-core-2.40.1-1.amzn2.0.1.x86_64
2.968 --> Processing Dependency: less for package: git-core-2.40.1-1.amzn2.0.1.x86_64
2.969 --> Processing Dependency: libpcre2-8.so.0()(64bit) for package: git-core-2.40.1-1.amzn2.0.1.x86_64
2.972 ---> Package git-core-doc.noarch 0:2.40.1-1.amzn2.0.1 will be installed
2.973 ---> Package perl.x86_64 4:5.16.3-299.amzn2.0.2 will be installed
3.005 --> Processing Dependency: perl-libs = 4:5.16.3-299.amzn2.0.2 for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.008 --> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.010 --> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.012 --> Processing Dependency: perl-macros for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.016 --> Processing Dependency: perl-libs for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.017 --> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.020 --> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.021 --> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.023 --> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.024 --> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.026 --> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.027 --> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.027 --> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.028 --> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.030 --> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.030 --> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.032 --> Processing Dependency: perl(File::Temp) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.034 --> Processing Dependency: perl(File::Path) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.035 --> Processing Dependency: perl(Exporter) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.036 --> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.037 --> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-299.amzn2.0.2.x86_64
3.038 ---> Package perl-Getopt-Long.noarch 0:2.40-3.amzn2 will be installed
3.040 --> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-3.amzn2.noarch
3.041 --> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-3.amzn2.noarch
3.042 ---> Package perl-Git.noarch 0:2.40.1-1.amzn2.0.1 will be installed
3.044 --> Processing Dependency: perl(Error) for package: perl-Git-2.40.1-1.amzn2.0.1.noarch
3.045 ---> Package perl-PathTools.x86_64 0:3.40-5.amzn2.0.2 will be installed
3.048 ---> Package perl-TermReadKey.x86_64 0:2.30-20.amzn2.0.2 will be installed
3.051 --> Running transaction check
3.051 ---> Package less.x86_64 0:458-9.amzn2.0.2 will be installed
3.054 --> Processing Dependency: groff-base for package: less-458-9.amzn2.0.2.x86_64
3.056 ---> Package openssh-clients.x86_64 0:7.4p1-22.amzn2.0.5 will be installed
3.061 --> Processing Dependency: openssh = 7.4p1-22.amzn2.0.5 for package: openssh-clients-7.4p1-22.amzn2.0.5.x86_64
3.064 --> Processing Dependency: fipscheck-lib(x86-64) >= 1.3.0 for package: openssh-clients-7.4p1-22.amzn2.0.5.x86_64
3.067 --> Processing Dependency: libfipscheck.so.1()(64bit) for package: openssh-clients-7.4p1-22.amzn2.0.5.x86_64
3.067 --> Processing Dependency: libedit.so.0()(64bit) for package: openssh-clients-7.4p1-22.amzn2.0.5.x86_64
3.070 ---> Package pcre2.x86_64 0:10.23-11.amzn2.0.1 will be installed
3.071 ---> Package perl-Carp.noarch 0:1.26-244.amzn2 will be installed
3.072 ---> Package perl-Error.noarch 1:0.17020-2.amzn2 will be installed
3.074 ---> Package perl-Exporter.noarch 0:5.68-3.amzn2 will be installed
3.076 ---> Package perl-File-Path.noarch 0:2.09-2.amzn2 will be installed
3.077 ---> Package perl-File-Temp.noarch 0:0.23.01-3.amzn2 will be installed
3.081 ---> Package perl-Filter.x86_64 0:1.49-3.amzn2.0.2 will be installed
3.084 ---> Package perl-Pod-Simple.noarch 1:3.28-4.amzn2 will be installed
3.088 --> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.amzn2.noarch
3.091 --> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.amzn2.noarch
3.093 ---> Package perl-Pod-Usage.noarch 0:1.63-3.amzn2 will be installed
3.097 --> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.amzn2.noarch
3.100 --> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.amzn2.noarch
3.103 ---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.amzn2.0.2 will be installed
3.104 ---> Package perl-Socket.x86_64 0:2.010-4.amzn2.0.2 will be installed
3.106 ---> Package perl-Storable.x86_64 0:2.45-3.amzn2.0.2 will be installed
3.108 ---> Package perl-Text-ParseWords.noarch 0:3.29-4.amzn2 will be installed
3.109 ---> Package perl-Time-HiRes.x86_64 4:1.9725-3.amzn2.0.2 will be installed
3.111 ---> Package perl-Time-Local.noarch 0:1.2300-2.amzn2 will be installed
3.113 ---> Package perl-constant.noarch 0:1.27-2.amzn2.0.1 will be installed
3.116 ---> Package perl-libs.x86_64 4:5.16.3-299.amzn2.0.2 will be installed
3.117 ---> Package perl-macros.x86_64 4:5.16.3-299.amzn2.0.2 will be installed
3.118 ---> Package perl-threads.x86_64 0:1.87-4.amzn2.0.2 will be installed
3.121 ---> Package perl-threads-shared.x86_64 0:1.43-6.amzn2.0.2 will be installed
3.123 --> Running transaction check
3.123 ---> Package fipscheck-lib.x86_64 0:1.4.1-6.amzn2.0.2 will be installed
3.124 --> Processing Dependency: /usr/bin/fipscheck for package: fipscheck-lib-1.4.1-6.amzn2.0.2.x86_64
3.126 ---> Package groff-base.x86_64 0:1.22.2-8.amzn2.0.2 will be installed
3.128 ---> Package libedit.x86_64 0:3.0-12.20121213cvs.amzn2.0.2 will be installed
3.129 ---> Package openssh.x86_64 0:7.4p1-22.amzn2.0.5 will be installed
3.130 --> Processing Dependency: audit-libs >= 1.0.8 for package: openssh-7.4p1-22.amzn2.0.5.x86_64
3.135 --> Processing Dependency: /sbin/nologin for package: openssh-7.4p1-22.amzn2.0.5.x86_64
3.155 ---> Package perl-Encode.x86_64 0:2.51-7.amzn2.0.2 will be installed
3.159 ---> Package perl-Pod-Escapes.noarch 1:1.04-299.amzn2.0.2 will be installed
3.161 ---> Package perl-Pod-Perldoc.noarch 0:3.20-4.amzn2.0.1 will be installed
3.166 --> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.amzn2.0.1.noarch
3.167 --> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.amzn2.0.1.noarch
3.169 ---> Package perl-podlators.noarch 0:2.5.1-3.amzn2.0.1 will be installed
3.172 --> Running transaction check
3.173 ---> Package audit-libs.x86_64 0:2.8.1-3.amzn2.1 will be installed
3.174 --> Processing Dependency: libcap-ng.so.0()(64bit) for package: audit-libs-2.8.1-3.amzn2.1.x86_64
3.178 ---> Package fipscheck.x86_64 0:1.4.1-6.amzn2.0.2 will be installed
3.178 ---> Package perl-HTTP-Tiny.noarch 0:0.033-3.amzn2.0.1 will be installed
3.181 ---> Package perl-parent.noarch 1:0.225-244.amzn2.0.1 will be installed
3.182 ---> Package util-linux.x86_64 0:2.30.2-2.amzn2.0.11 will be installed
3.192 --> Processing Dependency: libsmartcols = 2.30.2-2.amzn2.0.11 for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.198 --> Processing Dependency: libfdisk = 2.30.2-2.amzn2.0.11 for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.203 --> Processing Dependency: pam >= 1.1.3-7 for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.208 --> Processing Dependency: libutempter.so.0(UTEMPTER_1.1)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.211 --> Processing Dependency: libudev.so.1(LIBUDEV_183)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.231 --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.231 --> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.30)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.234 --> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.29)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.234 --> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.28)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.234 --> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.27)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.234 --> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.25)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.234 --> Processing Dependency: libpam_misc.so.0(LIBPAM_MISC_1.0)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.235 --> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.235 --> Processing Dependency: libfdisk.so.1(FDISK_2.30)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.236 --> Processing Dependency: libfdisk.so.1(FDISK_2.29)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.236 --> Processing Dependency: libfdisk.so.1(FDISK_2.28)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.236 --> Processing Dependency: libfdisk.so.1(FDISK_2.27)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.236 --> Processing Dependency: libfdisk.so.1(FDISK_2.26)(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.237 --> Processing Dependency: /etc/pam.d/system-auth for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.238 --> Processing Dependency: libutempter.so.0()(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.238 --> Processing Dependency: libudev.so.1()(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.240 --> Processing Dependency: libsystemd.so.0()(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.240 --> Processing Dependency: libsmartcols.so.1()(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.241 --> Processing Dependency: libpam_misc.so.0()(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.241 --> Processing Dependency: libpam.so.0()(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.242 --> Processing Dependency: libfdisk.so.1()(64bit) for package: util-linux-2.30.2-2.amzn2.0.11.x86_64
3.242 --> Running transaction check
3.243 ---> Package libcap-ng.x86_64 0:0.7.5-4.amzn2.0.4 will be installed
3.244 ---> Package libfdisk.x86_64 0:2.30.2-2.amzn2.0.11 will be installed
3.244 ---> Package libsmartcols.x86_64 0:2.30.2-2.amzn2.0.11 will be installed
3.245 ---> Package libutempter.x86_64 0:1.1.6-4.amzn2.0.2 will be installed
3.245 --> Processing Dependency: shadow-utils for package: libutempter-1.1.6-4.amzn2.0.2.x86_64
3.248 ---> Package pam.x86_64 0:1.1.8-23.amzn2.0.1 will be installed
3.251 --> Processing Dependency: libpwquality >= 0.9.9 for package: pam-1.1.8-23.amzn2.0.1.x86_64
3.256 --> Processing Dependency: cracklib-dicts >= 2.8 for package: pam-1.1.8-23.amzn2.0.1.x86_64
3.259 --> Processing Dependency: libcrack.so.2()(64bit) for package: pam-1.1.8-23.amzn2.0.1.x86_64
3.261 ---> Package systemd-libs.x86_64 0:219-78.amzn2.0.22 will be installed
3.264 --> Processing Dependency: liblz4.so.1()(64bit) for package: systemd-libs-219-78.amzn2.0.22.x86_64
3.268 --> Processing Dependency: libdw.so.1()(64bit) for package: systemd-libs-219-78.amzn2.0.22.x86_64
3.274 --> Running transaction check
3.274 ---> Package cracklib.x86_64 0:2.9.0-11.amzn2.0.2 will be installed
3.275 --> Processing Dependency: gzip for package: cracklib-2.9.0-11.amzn2.0.2.x86_64
3.277 ---> Package cracklib-dicts.x86_64 0:2.9.0-11.amzn2.0.2 will be installed
3.278 ---> Package elfutils-libs.x86_64 0:0.176-2.amzn2.0.2 will be installed
3.280 --> Processing Dependency: default-yama-scope for package: elfutils-libs-0.176-2.amzn2.0.2.x86_64
3.285 ---> Package libpwquality.x86_64 0:1.2.3-5.amzn2 will be installed
3.286 ---> Package lz4.x86_64 0:1.7.5-2.amzn2.0.1 will be installed
3.286 ---> Package shadow-utils.x86_64 2:4.1.5.1-24.amzn2.0.3 will be installed
3.288 --> Processing Dependency: libsemanage.so.1(LIBSEMANAGE_1.0)(64bit) for package: 2:shadow-utils-4.1.5.1-24.amzn2.0.3.x86_64
3.291 --> Processing Dependency: libsemanage.so.1()(64bit) for package: 2:shadow-utils-4.1.5.1-24.amzn2.0.3.x86_64
3.291 --> Running transaction check
3.291 ---> Package elfutils-default-yama-scope.noarch 0:0.176-2.amzn2.0.2 will be installed
3.291 --> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-2.amzn2.0.2.noarch
3.310 --> Processing Dependency: systemd for package: elfutils-default-yama-scope-0.176-2.amzn2.0.2.noarch
3.310 ---> Package gzip.x86_64 0:1.5-10.amzn2.0.1 will be installed
3.310 ---> Package libsemanage.x86_64 0:2.5-11.amzn2 will be installed
3.313 --> Processing Dependency: libustr-1.0.so.1(USTR_1.0.1)(64bit) for package: libsemanage-2.5-11.amzn2.x86_64
3.316 --> Processing Dependency: libustr-1.0.so.1(USTR_1.0)(64bit) for package: libsemanage-2.5-11.amzn2.x86_64
3.316 --> Processing Dependency: libustr-1.0.so.1()(64bit) for package: libsemanage-2.5-11.amzn2.x86_64
3.316 --> Running transaction check
3.317 ---> Package systemd.x86_64 0:219-78.amzn2.0.22 will be installed
3.322 --> Processing Dependency: kmod >= 18-4 for package: systemd-219-78.amzn2.0.22.x86_64
3.325 --> Processing Dependency: libkmod.so.2(LIBKMOD_5)(64bit) for package: systemd-219-78.amzn2.0.22.x86_64
3.329 --> Processing Dependency: libcryptsetup.so.4(CRYPTSETUP_1.0)(64bit) for package: systemd-219-78.amzn2.0.22.x86_64
3.331 --> Processing Dependency: dbus for package: systemd-219-78.amzn2.0.22.x86_64
3.335 --> Processing Dependency: acl for package: systemd-219-78.amzn2.0.22.x86_64
3.336 --> Processing Dependency: libqrencode.so.3()(64bit) for package: systemd-219-78.amzn2.0.22.x86_64
3.339 --> Processing Dependency: libkmod.so.2()(64bit) for package: systemd-219-78.amzn2.0.22.x86_64
3.339 --> Processing Dependency: libcryptsetup.so.4()(64bit) for package: systemd-219-78.amzn2.0.22.x86_64
3.339 ---> Package ustr.x86_64 0:1.0.4-16.amzn2.0.3 will be installed
3.340 --> Running transaction check
3.340 ---> Package acl.x86_64 0:2.2.51-14.amzn2 will be installed
3.340 ---> Package cryptsetup-libs.x86_64 0:1.7.4-4.amzn2 will be installed
3.341 --> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-1.7.4-4.amzn2.x86_64
3.347 --> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: cryptsetup-libs-1.7.4-4.amzn2.x86_64
3.347 --> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: cryptsetup-libs-1.7.4-4.amzn2.x86_64
3.347 ---> Package dbus.x86_64 1:1.10.24-7.amzn2.0.3 will be installed
3.350 --> Processing Dependency: dbus-libs(x86-64) = 1:1.10.24-7.amzn2.0.3 for package: 1:dbus-1.10.24-7.amzn2.0.3.x86_64
3.352 --> Processing Dependency: libdbus-1.so.3(LIBDBUS_PRIVATE_1.10.24)(64bit) for package: 1:dbus-1.10.24-7.amzn2.0.3.x86_64
3.352 --> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: 1:dbus-1.10.24-7.amzn2.0.3.x86_64
3.353 --> Processing Dependency: libdbus-1.so.3()(64bit) for package: 1:dbus-1.10.24-7.amzn2.0.3.x86_64
3.353 ---> Package kmod.x86_64 0:25-3.amzn2.0.2 will be installed
3.353 ---> Package kmod-libs.x86_64 0:25-3.amzn2.0.2 will be installed
3.354 ---> Package qrencode-libs.x86_64 0:3.4.1-3.amzn2.0.2 will be installed
3.354 --> Running transaction check
3.355 ---> Package dbus-libs.x86_64 1:1.10.24-7.amzn2.0.3 will be installed
3.356 ---> Package device-mapper-libs.x86_64 7:1.02.170-6.amzn2.5 will be installed
3.357 --> Processing Dependency: device-mapper = 7:1.02.170-6.amzn2.5 for package: 7:device-mapper-libs-1.02.170-6.amzn2.5.x86_64
3.358 --> Running transaction check
3.358 ---> Package device-mapper.x86_64 7:1.02.170-6.amzn2.5 will be installed
3.376 --> Finished Dependency Resolution
3.398 
3.398 Dependencies Resolved
3.413 
3.413 ================================================================================
3.413  Package                 Arch   Version                       Repository   Size
3.413 ================================================================================
3.413 Installing:
3.413  gitlab-runner           x86_64 16.4.1-1                      runner_gitlab-runner
3.413                                                                           461 M
3.413 Installing for dependencies:
3.413  acl                     x86_64 2.2.51-14.amzn2               amzn2-core   82 k
3.413  audit-libs              x86_64 2.8.1-3.amzn2.1               amzn2-core   99 k
3.413  cracklib                x86_64 2.9.0-11.amzn2.0.2            amzn2-core   80 k
3.413  cracklib-dicts          x86_64 2.9.0-11.amzn2.0.2            amzn2-core  3.6 M
3.413  cryptsetup-libs         x86_64 1.7.4-4.amzn2                 amzn2-core  224 k
3.413  dbus                    x86_64 1:1.10.24-7.amzn2.0.3         amzn2-core  245 k
3.413  dbus-libs               x86_64 1:1.10.24-7.amzn2.0.3         amzn2-core  167 k
3.413  device-mapper           x86_64 7:1.02.170-6.amzn2.5          amzn2-core  297 k
3.413  device-mapper-libs      x86_64 7:1.02.170-6.amzn2.5          amzn2-core  326 k
3.413  elfutils-default-yama-scope
3.413                          noarch 0.176-2.amzn2.0.2             amzn2-core   33 k
3.413  elfutils-libs           x86_64 0.176-2.amzn2.0.2             amzn2-core  289 k
3.413  fipscheck               x86_64 1.4.1-6.amzn2.0.2             amzn2-core   21 k
3.413  fipscheck-lib           x86_64 1.4.1-6.amzn2.0.2             amzn2-core   11 k
3.413  git                     x86_64 2.40.1-1.amzn2.0.1            amzn2-core   54 k
3.413  git-core                x86_64 2.40.1-1.amzn2.0.1            amzn2-core   10 M
3.413  git-core-doc            noarch 2.40.1-1.amzn2.0.1            amzn2-core  3.0 M
3.413  groff-base              x86_64 1.22.2-8.amzn2.0.2            amzn2-core  948 k
3.413  gzip                    x86_64 1.5-10.amzn2.0.1              amzn2-core  129 k
3.413  kmod                    x86_64 25-3.amzn2.0.2                amzn2-core  111 k
3.413  kmod-libs               x86_64 25-3.amzn2.0.2                amzn2-core   59 k
3.413  less                    x86_64 458-9.amzn2.0.2               amzn2-core  121 k
3.413  libcap-ng               x86_64 0.7.5-4.amzn2.0.4             amzn2-core   25 k
3.413  libedit                 x86_64 3.0-12.20121213cvs.amzn2.0.2  amzn2-core   93 k
3.413  libfdisk                x86_64 2.30.2-2.amzn2.0.11           amzn2-core  238 k
3.413  libpwquality            x86_64 1.2.3-5.amzn2                 amzn2-core   84 k
3.413  libsemanage             x86_64 2.5-11.amzn2                  amzn2-core  152 k
3.413  libsmartcols            x86_64 2.30.2-2.amzn2.0.11           amzn2-core  155 k
3.413  libutempter             x86_64 1.1.6-4.amzn2.0.2             amzn2-core   25 k
3.413  lz4                     x86_64 1.7.5-2.amzn2.0.1             amzn2-core   99 k
3.413  openssh                 x86_64 7.4p1-22.amzn2.0.5            amzn2-core  508 k
3.413  openssh-clients         x86_64 7.4p1-22.amzn2.0.5            amzn2-core  652 k
3.413  pam                     x86_64 1.1.8-23.amzn2.0.1            amzn2-core  715 k
3.413  pcre2                   x86_64 10.23-11.amzn2.0.1            amzn2-core  207 k
3.413  perl                    x86_64 4:5.16.3-299.amzn2.0.2        amzn2-core  8.0 M
3.413  perl-Carp               noarch 1.26-244.amzn2                amzn2-core   19 k
3.413  perl-Encode             x86_64 2.51-7.amzn2.0.2              amzn2-core  1.5 M
3.413  perl-Error              noarch 1:0.17020-2.amzn2             amzn2-core   32 k
3.413  perl-Exporter           noarch 5.68-3.amzn2                  amzn2-core   29 k
3.413  perl-File-Path          noarch 2.09-2.amzn2                  amzn2-core   27 k
3.413  perl-File-Temp          noarch 0.23.01-3.amzn2               amzn2-core   56 k
3.413  perl-Filter             x86_64 1.49-3.amzn2.0.2              amzn2-core   76 k
3.413  perl-Getopt-Long        noarch 2.40-3.amzn2                  amzn2-core   56 k
3.413  perl-Git                noarch 2.40.1-1.amzn2.0.1            amzn2-core   41 k
3.413  perl-HTTP-Tiny          noarch 0.033-3.amzn2.0.1             amzn2-core   39 k
3.413  perl-PathTools          x86_64 3.40-5.amzn2.0.2              amzn2-core   83 k
3.413  perl-Pod-Escapes        noarch 1:1.04-299.amzn2.0.2          amzn2-core   52 k
3.413  perl-Pod-Perldoc        noarch 3.20-4.amzn2.0.1              amzn2-core   87 k
3.413  perl-Pod-Simple         noarch 1:3.28-4.amzn2                amzn2-core  216 k
3.413  perl-Pod-Usage          noarch 1.63-3.amzn2                  amzn2-core   27 k
3.413  perl-Scalar-List-Utils  x86_64 1.27-248.amzn2.0.2            amzn2-core   36 k
3.413  perl-Socket             x86_64 2.010-4.amzn2.0.2             amzn2-core   49 k
3.413  perl-Storable           x86_64 2.45-3.amzn2.0.2              amzn2-core   78 k
3.413  perl-TermReadKey        x86_64 2.30-20.amzn2.0.2             amzn2-core   31 k
3.413  perl-Text-ParseWords    noarch 3.29-4.amzn2                  amzn2-core   14 k
3.413  perl-Time-HiRes         x86_64 4:1.9725-3.amzn2.0.2          amzn2-core   45 k
3.413  perl-Time-Local         noarch 1.2300-2.amzn2                amzn2-core   24 k
3.413  perl-constant           noarch 1.27-2.amzn2.0.1              amzn2-core   19 k
3.413  perl-libs               x86_64 4:5.16.3-299.amzn2.0.2        amzn2-core  685 k
3.413  perl-macros             x86_64 4:5.16.3-299.amzn2.0.2        amzn2-core   45 k
3.413  perl-parent             noarch 1:0.225-244.amzn2.0.1         amzn2-core   12 k
3.413  perl-podlators          noarch 2.5.1-3.amzn2.0.1             amzn2-core  112 k
3.413  perl-threads            x86_64 1.87-4.amzn2.0.2              amzn2-core   50 k
3.413  perl-threads-shared     x86_64 1.43-6.amzn2.0.2              amzn2-core   39 k
3.413  qrencode-libs           x86_64 3.4.1-3.amzn2.0.2             amzn2-core   50 k
3.413  shadow-utils            x86_64 2:4.1.5.1-24.amzn2.0.3        amzn2-core  1.1 M
3.413  systemd                 x86_64 219-78.amzn2.0.22             amzn2-core  5.0 M
3.413  systemd-libs            x86_64 219-78.amzn2.0.22             amzn2-core  409 k
3.413  tar                     x86_64 2:1.26-35.amzn2.0.2           amzn2-core  845 k
3.413  ustr                    x86_64 1.0.4-16.amzn2.0.3            amzn2-core   96 k
3.413  util-linux              x86_64 2.30.2-2.amzn2.0.11           amzn2-core  2.3 M
3.413 
3.413 Transaction Summary
3.413 ================================================================================
3.413 Install  1 Package (+70 Dependent packages)
3.413 
3.416 Total download size: 505 M
3.416 Installed size: 649 M
3.416 Downloading packages:
17.97 https://packages.gitlab.com/runner/gitlab-runner/amazon/2/x86_64/gitlab-runner-16.4.1-1.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=runner_gitlab-runner clean metadata
17.97 Trying other mirror.
17.99 
17.99 
17.99 Error downloading packages:
17.99   gitlab-runner-16.4.1-1.x86_64: [Errno 256] No more mirrors to try.
17.99 
------
Dockerfile:5
--------------------
   3 |     RUN curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | bash
   4 |     
   5 | >>> RUN yum -y install gitlab-runner
   6 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c yum -y install gitlab-runner" did not complete successfully: exit code: 1 

Environment description

We're using Amazon Linux 2 EC2 instances in an autoscaling group and installing the runner package as part of the userdata script.

Used GitLab Runner version

16.4.1-1

Possible fixes

We're working around this for now by pinning to an older version:

yum -y install gitlab-runner-16.2.2