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 is NOT enough to get the latest install scripts for every 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.123.tar.gz
tar xzf debootstrap_1.0.123.tar.gz
cd debootstrap/
make install
debootstrap --version

Keyrings

You need 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

and/or the Ubuntu release key

    wget http://fr.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-keyring/ubuntu-keyring_2020.06.17.1.tar.gz
    tar xzf ubuntu-keyring_2020.06.17.1.tar.gz
    cd ubuntu-keyring-2020.06.17.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

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 | BENCHMARKS | html