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

This would not be enough to get the install scripts for the very latest release…

#slackpkg search debootstrap
#sbopkg -i debootstrap

Hence fetch and install the latest (RU) debootstrap

wget http://ftp.ru.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.116.tar.gz
tar xzf debootstrap_1.0.116.tar.gz 
cd debootstrap-1.0.116/
make install
debootstrap --version

Keyrings

debian keys

    mkdir lia/
    rsync -avz --progress keyring.debian.org::keyrings/keyrings/ lia/
    mv lia/* /usr/share/keyrings/
    rmdir lia/
ls -lF /usr/share/keyrings/

debian archive

...got them from a guest...

ubuntu archive only

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
cp -f ubuntu-archive-keyring.gpg* /usr/share/keyrings/

otherwise

wget http://ru.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-keyring/ubuntu-keyring_2018.09.18.1~18.04.0.tar.gz
tar xzf ubuntu-keyring_2018.09.18.1~18.04.0.tar.gz 
cd ubuntu-keyring-2018.09.18.1/
cp -f keyrings/* /usr/share/keyrings/

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

Resources

Debian

Ubuntu


NETHENCE | PUB | LAB