On Debian-like systems (including Ubuntu) you can use debootstrap to set up the chroot, e.g.: https://wiki.ubuntu.com/DebootstrapChroot
On Debian-like systems (including Ubuntu) you can use debootstrap to set up the chroot, e.g.: https://wiki.ubuntu.com/DebootstrapChroot