Qubes-repo-contrib question

Hi. Is repo broken or iam doing something wrong?
pinging @fepitre

[doom@dom0 ~]$ install --refresh
Using sys-firewall as UpdateVM to download updates for Dom0; this may take some time...
Fedora 25 - x86_64 - Updates                    9.9 kB/s | 5.0 kB     00:00    
Fedora 25 - x86_64                               11 kB/s | 5.3 kB     00:00    
Qubes OS Contrib Repository for dom0 (updates)   12 kB/s | 3.0 kB     00:00    
Qubes OS Contrib Repository for dom0 (updates-t  13 kB/s | 3.0 kB     00:00    
Qubes Dom0 Repository (updates)                  11 kB/s | 2.7 kB     00:00    
Qubes Dom0 Repository (updates-testing)          11 kB/s | 2.9 kB     00:00    
Qubes Templates repository                       11 kB/s | 2.7 kB     00:00    
Dependencies resolved.
Nothing to do.
Complete!
Qubes OS Repository for Dom0                                                23 MB/s |  26 kB     00:00    
 [doom@dom0 ~]$ search i3-gaps
Using sys-firewall as UpdateVM to download updates for Dom0; this may take some time...
Last metadata expiration check: 0:01:02 ago on Tue Oct 27 01:00:27 2020.
======================== Name Exactly Matched: i3-gaps =========================
i3-gaps.x86_64 : i3 with more features
======================= Name & Summary Matched: i3-gaps ========================
i3-gaps-debuginfo.x86_64 : Debug information for package i3-gaps
i3-gaps-devel.x86_64 : Development files for i3-gaps
i3-gaps-devel-doc.noarch : Documentation for the development files of i3-gaps
i3-gaps-doc.noarch : Documentation for i3-gaps
No packages downloaded
[doom@dom0 ~]$ install i3-gaps
Using sys-firewall as UpdateVM to download updates for Dom0; this may take some time...
Last metadata expiration check: 0:01:16 ago on Tue Oct 27 01:00:27 2020.
Dependencies resolved.
==============================================================================================
 Package             Arch    Version            Repository                                Size
==============================================================================================
Installing:
 i3-gaps             x86_64  1000:4.18.1-1.fc25 qubes-contrib-dom0-r4.0-current-testing  325 k
Installing dependencies:
 libconfuse          x86_64  3.0-1.fc25         fedora                                   176 k
 xorg-x11-xbitmaps   noarch  1.1.1-9.fc24       fedora                                    41 k
Installing weak dependencies:
 i3lock              x86_64  2.9.1-1.fc25       updates                                   31 k
 i3status            x86_64  2.11-1.fc25        updates                                   57 k
 pulseaudio-utils    x86_64  10.0-2.fc25        updates                                   72 k
 rxvt-unicode        x86_64  9.22-2.fc25        fedora                                   746 k
 xorg-x11-apps       x86_64  7.7-15.fc24        fedora                                   320 k
Removing dependent packages:
 i3                  x86_64  1000:4.16-9.fc25   @System                                  911 k

Transaction Summary
==============================================================================================
Install  8 Packages
Remove   1 Package

Total download size: 1.7 M
DNF will only download packages for the transaction.
Downloading Packages:
(1/8): i3lock-2.9.1-1.fc25.x86_64.rpm           198 kB/s |  31 kB     00:00    
(2/8): pulseaudio-utils-10.0-2.fc25.x86_64.rpm  374 kB/s |  72 kB     00:00    
(3/8): i3status-2.11-1.fc25.x86_64.rpm          281 kB/s |  57 kB     00:00    
(4/8): libconfuse-3.0-1.fc25.x86_64.rpm         364 kB/s | 176 kB     00:00    
(5/8): xorg-x11-apps-7.7-15.fc24.x86_64.rpm     523 kB/s | 320 kB     00:00    
(6/8): xorg-x11-xbitmaps-1.1.1-9.fc24.noarch.rp 223 kB/s |  41 kB     00:00    
(7/8): rxvt-unicode-9.22-2.fc25.x86_64.rpm      961 kB/s | 746 kB     00:00    
(8/8): i3-gaps-4.18.1-1.fc25.x86_64.rpm         504 kB/s | 325 kB     00:00    
--------------------------------------------------------------------------------
Total                                           847 kB/s | 1.7 MB     00:02     
warning: /var/lib/qubes/dom0-updates/var/cache/yum/x86_64/4.0/qubes-contrib-dom0-r4.0-current-testing-8801c9554e16b90e/packages/i3-gaps-4.18.1-1.fc25.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID d0941e87: NOKEY
Qubes OS Contrib Repository for dom0 (updates-t 0.0  B/s |   0  B     00:00    
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-qubes-4-contrib-fedora [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-qubes-4-contrib-fedora]
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
[doom@dom0 ~]$ ls -l /etc/pki/rpm-gpg/
total 68
-rw-r--r-- 1 root root 1670 Jan 13  2020 RPM-GPG-KEY-fedora-25-primary
-rw-r--r-- 1 root root 2364 Jan 13  2020 RPM-GPG-KEY-qubes-3.1-primary
-rw-r--r-- 1 root root 1657 Jan 13  2020 RPM-GPG-KEY-qubes-3.1-templates-community
-rw-r--r-- 1 root root 1641 Jan 13  2020 RPM-GPG-KEY-qubes-3.1-unstable
-rw-r--r-- 1 root root 2364 Jan 13  2020 RPM-GPG-KEY-qubes-3.2-primary
-rw-r--r-- 1 root root 1657 Jan 13  2020 RPM-GPG-KEY-qubes-3.2-templates-community
-rw-r--r-- 1 root root 1641 Jan 13  2020 RPM-GPG-KEY-qubes-3.2-unstable
-rw-r--r-- 1 root root 2364 Jan 13  2020 RPM-GPG-KEY-qubes-3-primary
-rw-r--r-- 1 root root 1657 Jan 13  2020 RPM-GPG-KEY-qubes-3-templates-community
-rw-r--r-- 1 root root 1641 Jan 13  2020 RPM-GPG-KEY-qubes-3-unstable
lrwxrwxrwx 1 root root   34 May 25 03:59 RPM-GPG-KEY-qubes-4.0-contrib-fedora -> RPM-GPG-KEY-qubes-4-contrib-fedora
-rw-r--r-- 1 root root 2346 Jan 13  2020 RPM-GPG-KEY-qubes-4.0-primary
-rw-r--r-- 1 root root 1657 Jan 13  2020 RPM-GPG-KEY-qubes-4.0-templates-community
-rw-r--r-- 1 root root 1641 Jan 13  2020 RPM-GPG-KEY-qubes-4.0-unstable
-rw-r--r-- 1 root root 1769 May 25 03:59 RPM-GPG-KEY-qubes-4-contrib-fedora
-rw-r--r-- 1 root root 2346 Jan 13  2020 RPM-GPG-KEY-qubes-4-primary
-rw-r--r-- 1 root root 1657 Jan 13  2020 RPM-GPG-KEY-qubes-4-templates-community
-rw-r--r-- 1 root root 1641 Jan 13  2020 RPM-GPG-KEY-qubes-4-unstable

Does it help you what’s describe into https://github.com/QubesOS/qubes-issues/issues/6124?

We are facing this issue of updating key after installing contrib repo and I’ve not had time to figure out how to install it smoothly sorry.

@fepitre still a problem!

What would fixe it is if the dom0 contrib package was importing the key itself into dom0:

sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-qubes-4.1-contrib-fedora

@fepitre: Please fix that!!! This is a bug happening to all trying to install contrib packages, at least in dom0. The key needs to be imported as post-install script in RPM.

1 Like

This is in progress: contrib-dom0: ensure to import key after install by fepitre · Pull Request #50 · QubesOS/qubes-meta-packages · GitHub

Any hint when it will be available for F39 under 4.1?

Following here, among other related places
https://ftp.qubes-os.org/repo/contrib/yum/r4.1/current/vm/