Bootstraping Ubuntu & Debian Guests from Anywhere

Debian Systems

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

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

Setup Ubuntu & Debian keys (draft)

rsync -avz --progress keyring.debian.org::keyrings/keyrings ./
ls -lF /usr/share/keyrings/

#wget http://fr.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-keyring/ubuntu-keyring_2018.09.18.1~18.04.0.tar.gz
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 | Pbraun | SNE Russia | xhtml