You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple URLs may be specified here in the same manner as the baseurl option (above). If a GPG key is required to install a package from a repository, all keys specified for that repository will be installed.
dnf/yum are able to accept multiple gpgkey keys like in the following example of mysql repo definition:
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Microdnf will throw the following error until the secondary key is removed:
(microdnf:25): libdnf-WARNING **: 20:42:52.540: Skipping refresh of mysql80-community: Failed to download gpg key for repo 'mysql80-community': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022;file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022;file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql]
The text was updated successfully, but these errors were encountered:
Microdnf supports multiple public gpg repo keys. The problem is in the multi-line notation in the configuration file.
Try to write all the keys on one line. Example: gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Dnf supports the non-standard multi-line extension of the INI format. Using single-line notation is a more compatible approach.
Multiple keys on a single line are supported in both dnf and microdnf.
@jrohel Thank you for the response it is good to understand there is a behavior difference between microdnf and dnf. I am sure this is going to trip people up and cause people to have to troubleshoot the issue as I did.
Would making it the same be too much overhead for microdnf?
Conan-Kudo
changed the title
microdnf is unable to accept multiple repo gpg public keys
libdnf doesn't properly support multiple gpg public keys in repo config files breaking microdnf
Nov 28, 2022
Conan-Kudo
changed the title
libdnf doesn't properly support multiple gpg public keys in repo config files breaking microdnf
libdnf doesn't properly support multiple gpg public keys in repo config files, breaking microdnf
Nov 28, 2022
Version Info:
Taken from the yum man page:
dnf/yum are able to accept multiple gpgkey keys like in the following example of mysql repo definition:
Microdnf will throw the following error until the secondary key is removed:
The text was updated successfully, but these errors were encountered: