Cannot install Launchpad COPR repo

I want to install gnome-encfs-manager. The required steps therefore are:

dnf config-manager --add-repo https://download.opensuse.org/repositories/home:moritzmolch:gencfsm/Fedora_28/home:moritzmolch:gencfsm.repo
dnf install gnome-encfs-manager

In Silverblue this doesn’t work, so I fetched that repo file and moved it into /etc/yum.repos.d/. When I then want to install it, I get:

Resolving dependencies... done
error: package gnome-encfs-manager-1.8.19-300.1.x86_64 cannot be verified and repo home_moritzmolch_gencfsm is GPG enabled: failed to lookup digest in keyring for /var/cache/rpm-ostree/repomd/home_moritzmolch_gencfsm-28-x86_64/packages/gnome-encfs-manager-1.8.19-300.1.x86_64.rpm

According to the repo file, the key lies at:

http://download.opensuse.org/repositories/home:/moritzmolch:/gencfsm/Fedora_26/repodata/repomd.xml.key

Do I now need to copy that somewhere? Is the repo not properly configured, or is the rpm-ostree implementation lacking support for something? Would be nice if someone could help me, I haven’t found something particularly useful via DuckDuckGo…

Hmm, that .repo file should work.

As a workaround, you can drop that keyfile into /etc/pki/rpm-gpg and update the .repo file to point to the key.

# curl -L -o /etc/pki/rpm-gpg/gnome-enfcs-manager.key http://download.opensuse.org/repositories/home:/moritzmolch:/gencfsm/Fedora_26/repodata/repomd.xml.key
# sed -i 's|^gpgkey=.*|file:///etc/pki/rpm-gpg/gnome-enfcs-manager.key|' /etc/yum/repos.d/gencfsm.repo

@walters Should a HTTP URL for gpgkey work for package layering?

1 Like

Yep, that worked, thanks! I’ve filed a bug report:

1 Like