Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am part of a small team that develop an intranet web app. We want to a method of easy installation, so we were thinking about how apt-get works, especially with installing dependencies.

Our app has many dependencies (PHP5, PostgreSQL, FOP etc) but we need control over who has access to the installation. With this in mind we started looking at building our own .deb file. It looks like I can define the dependencies in my control file but when we try to install the .deb file using dpkg, the dependencies are checked, fail and the installation stops.

What I did then was to run a apt-get -f install command to run the installation again with dependencies, but I don't want to do this.

So here's the question, is there a way that a .deb file can install the dependencies automatically, just like and apt-get install abc would?

Basically we want to make the installation as simple as possible, therefore we don't want the end user to be running any command that isn't absolutely necessary.

share|improve this question
are the dependencies in your repositories you have selected/activated on the host? on a default installation only the main repository is activated, perhaps you will also need universe and restricted. (don't forget to reload the sources.) – Reivax Jan 28 '11 at 9:26

Gdebi install gdebi

gdebi installs a deb package and its dependencies. To use it run:

sudo gdebi package.deb

In newer versions of Ubuntu, this is not installed by default, so you will need to install it from the repositories.

See man gdebi for a full list of options.

gdebi is the command line equivalent to the graphical tool of the same name that used to be included by default in Ubuntu. The command for the graphical tool is gdebi-gtk and has similar functionality:


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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