Is there anyway or any popular tool that can allow me to create an isolated package environment for apt-get similar to what virtualenv does for pip and python packages?

2 Answers 2


I think what you're looking after is the combination of schroot and debootstrap. Schroot is a utility that essentially lets you run a Linux distribution inside another. Debootstrap is a utility to install a (Debian-based) distribution inside another. See How do I run 32-bit programs on a 64-bit Debian/Ubuntu? (which is easily generalized to running a Debian or Ubuntu-based distribution inside another).


See pbuilder and cowbuilder for example.

See also Package builders and Isolated build environments.

The last link has a succinct overview of pbuilder and sbuild.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.