[SOLVED][Proxmox Offline Mirror] Can't mirror ubuntu repo

agrimal

New Member
Jul 1, 2023
1
0
1
Hello,

I'm trying to mirror the ubuntu jammy repo with Proxmox Offline Mirror tool version 0.6.2 on a debian bookworm host.
The URL of the repo is https://fr.archive.ubuntu.com/ubuntu, a french mirror of the official repo.

- First I downloaded the Ubuntu GPG signing keys from the latest ubuntu-keyring archive : ubuntu-keyring_2021.03.26.tar.gz

- Here are the keys :

Code:
$ cat ubuntu-archive-keyring.gpg | gpg --show-keys
pub   rsa4096 2012-05-11 [SC]
      790BC7277767219C42C86F933B4FE6ACC0B21F32
uid                      Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>

pub   rsa4096 2012-05-11 [SC]
      843938DF228D22F7B3742BC0D94AA3F0EFE21092
uid                      Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>

pub   rsa4096 2018-09-17 [SC]
      F6ECB3762474EDA9D21B7022871920D1991BC93C
uid                      Ubuntu Archive Automatic Signing Key (2018) <ftpmaster@ubuntu.com>


- Then i configured the repo :
Code:
$ cat pom-config.cfg
mirror: ubuntu-jammy
    architectures amd64
    architectures all
    base-dir /srv/depot/ubuntu/jammy
    ignore-errors false
    key-path ubuntu-archive-keyring.gpg
    repository deb https://fr.archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    sync false
    verify true

- Then I try to set the mirror up

Code:
$ proxmox-offline-mirror mirror snapshot create ubuntu-jammy --config pom-config.cfg
Fetching Release/Release.gpg files
-> GET 'https://fr.archive.ubuntu.com/ubuntu/dists/jammy/Release.gpg'..
-> GET 'https://fr.archive.ubuntu.com/ubuntu/dists/jammy/Release'..
Verifying 'Release(.gpg)' signature using provided repository key..
Error: Malformed Cert: Additional packets found, is this a keyring?

Any help would be appreciated

-- EDIT --

I found the solution :

- Have to export the good key from the keyring :

Code:
gpg --keyring ./ubuntu-archive-keyring.gpg --no-default-keyring --export F6ECB3762474EDA9D21B7022871920D1991BC93C > key.gpg

- And i replace the key path in the config file
 
Last edited: