Quick guide: set up chroot environment and build Debian packages (sbuild version)

TL;DR: Pbuilder-related tools are ineffective and redundant. By installing sbuild and schroot, one can set up clean and reusable chroot environments quickly and use the sole sbuild command to build Debian source packages (using src tree or .dsc files).

Fade away please pbuilder/cowbuilder; long live sbuild!


Quick example

Install tools and preparation

Initialize a chroot environment using sbuild-createchroot

Keep (s)chroot environment updated

Build a Debian package using sbuild with previously created chroot environment


References

To be continued…