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


To be continued…


一个学生。May be neither too young nor simple, but sometimes can be naive.


电子邮件地址不会被公开。 必填项已用*标注