Packaging - Quick Set-up for Ubuntu
This page details the packages needed to create a packaging/build environment under Ubuntu. Follow the instructions below to download the packages and set-up the environment.
1. Issue the following terminal command to download the required packages:
sudo apt-get install build-essential debhelper dh-make diff patch gnupg fakeroot lintian devscripts pbuilder dpatch dput
2. Create the pbuilder environment with the following command:
sudo pbuilder create
pbuilder Universe support
If you want to rebuild a package from universe or build a new one that needs a package out of main you will need to add this to ~/.pbuilderrc:
COMPONENTS="main restricted universe multiverse"
if [ "$DIST" == "etch" ]; then
echo "Using a Debian pbuilder environment because DIST is $DIST"
COMPONENTS="main contrib non-free"
fi
After adding the new sources you need to update the chroot, so that it picks up the new apt lines:
sudo pbuilder update --override-config
External Packaging Links
- Ubuntu Packaging Guide: https://wiki.ubuntu.com/PackagingGuide
- Ubuntu pbuilder Guide: https://wiki.ubuntu.com/PbuilderHowto

Add Your Comment
Use the form below to add your comment. Markdown syntax is available. Note, comments are moderated by me for spam filtering. Alternatively, feel free to contact me privately.