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

sbopkg -r
sbopkg -s debootstrap
sbopkg -i debootstrap
debootstrap --version

in case SBo is not up-to-date and says e.g.

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

you can always grab the bootstrap scripts from the latest tarball

ls -lF /var/log/packages/debootstrap*
wget http://ftp.ru.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.128%2Bnmu2~bpo11%2B1.tar.gz
tar xzf debootstrap_1.0.128+nmu2~bpo11+1.tar.gz
cd debootstrap/
make install
ls -lF /usr/share/debootstrap/scripts/ | grep bullseye

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-11.asc
wget https://ftp-master.debian.org/keys/archive-key-11-security.asc

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

mkdir -p /usr/share/keyrings/
gpg --no-default-keyring --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --import archive-key-11.asc
gpg --no-default-keyring --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --import archive-key-11-security.asc
gpg --no-default-keyring --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --import archive-key-12.asc
gpg --no-default-keyring --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --import archive-key-12-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 | CONTACT
Copyright © 2024 Pierre-Philipp Braun