This page explains how to set up a PureOS pBuilder environment.
On PureOS, everything you need is already preconfigured, you just need to install pbuilder:
sudo apt install pbuilder debootstrap devscripts
If you are not on a PureOS distribution, but on Debian or a derivative (e.g. Ubuntu), do:
- Download & install the debootstrap package from PureOS
- Download & install the PureOS archive keyring package.
sudo apt install pbuilder devscripts
If you are on PureOS, just do
sudo pbuilder create --distribution green --debootstrapopts --variant=buildd
If you are not on PureOS, try the following command:
sudo pbuilder create --distribution green --debootstrapopts --variant=buildd --mirror http://repo.puri.sm/pureos --debootstrapopts "--keyring=/usr/share/keyrings/pureos-archive-keyring.gpg"
And that's it, you should have a working PureOS pBuilder environment now!