Questions tagged [pbuilder]

personal package builder for Debian packages

pbuilder constructs a chroot system, and builds a package inside the chroot. It is an ideal system to use to check that a package has correct build-dependencies. It uses apt extensively, and a local mirror, or a fast connection to a Debian mirror is ideal, but not necessary. (source: package description)

To get started with pbuilder, see https://wiki.ubuntu.com/PbuilderHowto

29 questions
25
votes
2 answers

Why use sbuild over pbuilder?

There are numerous ways to build Debian packages in a clean and reproducible environment. Two of the most frequently used are pbuilder and sbuild. Personally, I've always used pbuilder. I find pbuilder much easier to use and maintain. I haven't been…
11
votes
2 answers

How can I use local .deb files in my pbuilder builds?

Often I need to create packages which another package depend on (i.e. build dependencies). Instead of having all those packages first being build in my ppa (which can sometimes take some time), I would like to use the results directory from pbuilder…
txwikinger
  • 29,406
11
votes
1 answer

Error setting up pbuilder following Ubuntu Wiki. How to set it up?

I am setting up my machine for Ubuntu development. I am following Ubuntu Development Beginnings, but while running sudo pbuilder create command I am getting below error: $ sudo pbuilder create I: Distribution is devel. I: Current time: Thu Jul 9…
Ninad
  • 111
8
votes
3 answers

How can I make pbuilder use my apt-cacher-ng instance?

I have a apt-cacher-ng server on my LAN network, and I was wondering how I could "force" pbuilder to use it (to speed up package builds). Typical setup client-side of the cache goes something like this: In /etc/apt/apt.conf: Acquire::http { Proxy…
jrg
  • 61,707
7
votes
1 answer

Is it possible to run pbuilder without root privileges?

I realize that setting up pbuilder requires root privileges, but does each invocation really require root privileges? Is there any way of running pbuilder as a standard user?
Nathan Osman
  • 32,495
7
votes
1 answer

pbuilder-dist precise build *.dsc fails

I'm following this tutorial on the Ubuntu on how to fix a bug, but am encountering a problem when I try to build the source package. In the section entitled 'Testing the fix', the reader is told to execute two command to complete the build: $ bzr…
user2405
5
votes
1 answer

How do I build a snap in an isolated environment?

While building Debian packages, pbuilder (and similar tools) help in building packages in an isolated environment, so that odd settings in my system don't cause problems in building: pbuilder aims to be an easy-to-setup system for auto-building…
muru
  • 207,228
5
votes
2 answers

cowbuilder --create --distribution lucid fails

I'm trying to create a build environment for Lucid, and calling cowbuilder --create --distribution lucid fails with the messages below: Get:1 http://us-east-1.ec2.archive.ubuntu.com lucid Release.gpg [189B] Hit…
Daenyth
  • 768
4
votes
2 answers

How to get a sid pbuilder in ubuntu

Before releasing packages to Debian (and later sync them to Ubuntu) I need to test them in a sid chroot, but I get this error on a clean 14.04 system: $ sudo DIST=sid ARCH=i386 pbuilder create [sudo] password for u: I: Distribution is unstable. I:…
4
votes
2 answers

Getting set up with git-buildpackage, pbuilder, etc, for software packaging

I'm packaging software at work and the scope has increased to have Lucid-based as well as Karmic-based versions. Right now I just build inside a Karmic VM using git-buildpackage calling debuild, but I've looked into pbuilder so I can do it more…
Daenyth
  • 768
4
votes
2 answers

tmpfs for cowbuilder builds?

I'm a packager, so I often need to use cowbuilder or pbuilder to build packages either for my own use or when I'm sponsoring somebody elses' work. On my laptop, my disk isn't the fastest in the world, so I'm considering using tmpfs for the build…
lfaraone
  • 4,749
4
votes
1 answer

pbuilder-dist fails if cmake can't find non-mandatary c++ feature support?

I'm trying to submit a deb to my PPA according to this manual: https://packaging.ubuntu.com/html/packaging-new-software.html I'm able to build my app with bzr builddeb -- -nc -us -uc and to sign it with bzr builddeb -S. But execution of…
truf
  • 211
3
votes
1 answer

Building multi-arch packages locally

It's the first time I try to build debian/ubuntu packages for different architectures. For this, I decided to use pbuilder using the .pbuilderrc script from https://jodal.no/2015/03/08/building-arm-debs-with-pbuilder/. Then, I use dpkg-buildpackage…
Daniel Alder
  • 2,612
3
votes
2 answers

What to use for building ubuntu/debian packages?

I've been inspecting different howto's and guides on how to build packages lately. And there seems to be a lot of ways one could go about it. So I'm a bit confused about what exactly to use. That is I'm trying to see the whole picture. What tools…
x-yuri
  • 621
3
votes
1 answer

Can I use a Debian package build environment to build Ubuntu packages?

I have a Debian wheezy server that I use to build packages using pbuilder and git-buildpackage. I can currently build packages for Debian sid, wheezy, and squeeze. I would like to use this same server to build packages for Ubuntu distributions. I…
rlandster
  • 268
  • 3
  • 9
1
2