Bootstraping Ubuntu & Debian Guests from Anywhere

Ubuntu

apt install debootstrap
apt-get install debian-keyring
apt-get install debian-archive-keyring

Debian/Devuan

apt install debootstrap
apt install ubuntu-archive-keyring

Slackware Linux

SBo is not up-to-date and gives

E: No such script: /usr/share/debootstrap/scripts/jammy

so grab the bootstrap scripts from the latest tarball

wget http://ftp.ru.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.126+nmu1~bpo11+1.tar.gz
tar xzf debootstrap_1.0.126+nmu1~bpo11+1.tar.gz
cd debootstrap-1.0.126+nmu1~bpo11+1/
make install

Keyrings

ubuntu

gpg --keyid-format long --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x871920D1991BC93C
gpg --export 871920D1991BC93C > /usr/share/keyrings/ubuntu-archive-keyring.gpg

debian

and the Debian release key which can also be obtained here

wget https://ftp-master.debian.org/keys/archive-key-10.asc
wget https://ftp-master.debian.org/keys/archive-key-10-security.asc

mkdir /usr/share/keyrings/
gpg --no-default-keyring --keyring=/usr/share/keyrings/debian-archive-keyring.gpg \
    --import archive-key-10.asc
gpg --no-default-keyring --keyring=/usr/share/keyrings/debian-archive-keyring.gpg \
    --import archive-key-10-security.asc

ls -lF /usr/share/keyrings/debian-archive-keyring.gpg

Troubleshooting

W: Cannot check Release signature; keyring file not available /usr/share/keyrings/ubuntu-archive-keyring.gpg

W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg

==> fetch and deploy the keyrings as described above

Trash / obsolete

    ld -ldF /usr/share/keyrings/ #noexist
    rsync -avz --progress keyring.debian.org::keyrings/keyrings/ /usr/share/keyrings/
    ls -lF /usr/share/keyrings/

wget http://deb.debian.org/debian/pool/main/d/debian-archive-keyring/debian-archive-keyr

ing_2019.1.tar.xz tar xJf debian-archive-keyring_2019.1.tar.xz cp debian-archive-keyring/keyrings/debian-archive-keyring.gpg.asc /usr/share/keyrings/de bian-archive-keyring.gpg


# debian
#apt install debian-keyring debian-archive-keyring

    cd /usr/share/keyrings/

    wget http://ru.archive.ubuntu.com/ubuntu/project/ubuntu-archive-keyring.gpg
    wget http://ru.archive.ubuntu.com/ubuntu/project/ubuntu-archive-keyring.gpg.sig

    wget http://fr.archive.ubuntu.com/ubuntu/project/ubuntu-archive-keyring.gpg
    wget http://fr.archive.ubuntu.com/ubuntu/project/ubuntu-archive-keyring.gpg.sig

Resources

Debian

Debian Public Key Server https://keyring.debian.org/

Debian keys https://ftp-master.debian.org/keys.html

Index of /keys https://ftp-master.debian.org/keys/

debian-archive-keyring http://ftp.ru.debian.org/debian/pool/main/d/debian-archive-keyring/

https://serverfault.com/questions/337278/debian-how-can-i-securely-get-debian-archive-keyring-so-that-i-can-do-an-apt-g

https://lists.debian.org/debian-devel-announce/2019/04/msg00008.html

https://superuser.com/questions/399938/how-to-create-additional-gpg-keyring

Ubuntu

https://packages.ubuntu.com/search?keywords=ubuntu-keyring

bionic lts https://packages.ubuntu.com/bionic/ubuntu-keyring-udeb

bionic updates https://packages.ubuntu.com/bionic-updates/ubuntu-keyring-udeb


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5
Copyright © 2022 Pierre-Philipp Braun