Create a Debian chroot
$ sudo debootstrap <code name> <chroot folder> <apt repo URL>
# Example
$ sudo debootstrap buster ./chroot-buster http://deb.debian.org/debian
Create a Debian chroot
$ sudo debootstrap <code name> <chroot folder> <apt repo URL>
# Example
$ sudo debootstrap buster ./chroot-buster http://deb.debian.org/debian
Update file /etc/apt/sources.list
deb http://archive.debian.org/debian <code_name> main contrib non-free
# For example
# deb http://archive.debian.org/debian squeeze main contrib non-free
Ignore check Release file expired
$ echo 'Acquire::Check-Valid-Until "false";' | sudo tee /etc/apt/apt.conf.d/90ignore-release-date