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

Recently I have been working on some projects where I need to add extra packages to default Ubuntu install CDs.

I have managed to add these packages successfully and make their icons show up on the unity sidebar after the user finishes installing off the CD.

However, when adding these new packages, I have found that sorting out their dependencies has been painful. If a new package has dependencies A, B, C and D, and everything except D is included on the on-CD repositories, the installer wizard will error-out unless D is included on the CD, even if the internet is connected (please correct me if my analogy is wrong).

In this case, adding D is easy. But sometimes debian packages have dozens upon dozens of dependencies, and figuring out whether they are included on the CD by hand is cumbersome and time consuming. Sometimes I accidentally miss a dependency and only find out later when the installer CD errors out.

I'm thinking there has to be an easier way to do this. Does anybody have any ideas?


share|improve this question
up vote 1 down vote accepted

apt-cache depends --recurse <pkg> will show all dependencies (with dependencies of dependencies, dependencies of dependencies of dependencies, etc). Then you may download them all and put to your CD.

share|improve this answer
Hi strangeman. Thanks very much for your help. apt-get depends --recurse is exactly what I want, except that it includes suggestions too. In other words, it lists dependencies of dependencies of suggestions (and dependencies of suggestions of suggestions, etc). In total I got 8000 packages to install for a dpkg with only 4 package dependencies in its control file. A little bit too much. Is there some way to get a recursive list with just the bare minimum? -Andrew – user54557 May 22 '12 at 8:44
Of course. Try use apt-cache depends --recurse -i <pkg> The '-i' key print only important dependencies. Causes only Depends and Pre-Depends relations to be printed. – strangeman May 22 '12 at 9:26
Thanks! Using '-i' I have reduced the list to just 91 entries. From these 91 entries, only 7 are not included on-CD. :). – user54557 May 22 '12 at 10:49

uck Install uckUse uck to add extra packages in the live cd . It will add dependencies automatically

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.