aptly icon indicating copy to clipboard operation
aptly copied to clipboard

(suggestion) After Ubuntu 22.04 trusted gpg issue

Open bdh1993 opened this issue 3 years ago • 2 comments

The aptly homepage does not seem to show how to resolve issues related to "Key is stored in legacy trusted.gpg keyring".

In Ubuntu's 22.04 version, aptly works well, but it is inconvenient to add repository.

aptly in Ubuntu 22.04 repository has zstd problem. (ver : 1.4.0)

I think you can add it like a docker repository.

  1. add repository in sources.list or sources.list.d/xxx.list deb [signed-by=/etc/apt/keyrings/aptly.gpg] http://repo.aptly.info/ squeeze main

  2. import key curl -fsSL https://www.aptly.info/pubkey.txt | sudo gpg --dearmor -o /etc/apt/keyrings/aptly.gpg

  3. update&install sudo apt update sudo apt install aptly

Reference https://askubuntu.com/questions/1403556/key-is-stored-in-legacy-trusted-gpg-keyring-after-ubuntu-22-04-update https://docs.docker.com/engine/install/ubuntu/

bdh1993 avatar Aug 09 '22 07:08 bdh1993

if you trust the aptly gpg key enough you can add it as /etc/apt/trusted.gpg.d/aptly.gpg system wide. Then you don't have to explicitly set the signed-by= path

deb http://repo.aptly.info/ squeeze main
curl -fsSL https://www.aptly.info/pubkey.txt | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/aptly.gpg

when on a minimal install the package gnupg2 needs to be installed to get the gpg command. I'm using the following commands in my scripts to install this dependency

sudo apt-get update -q
sudo apt-get install -qy gnupg2 --no-install-recommends

NeroBurner avatar Aug 09 '22 14:08 NeroBurner

Thank you for telling me more accurate information. I hope this information will be announced on the homepage and README page. https://www.aptly.info/download/

bdh1993 avatar Aug 22 '22 04:08 bdh1993