Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I've tried to set up a trivial repository with binary .debs for internal use, but apt-get doesn't see the packages. I've done the following:

On the web server:

  1. Created the binary debs with dpkg-buildpackage
  2. Put all of the binary debs in a web-accessible directory which corresponds to http://www.example.com/packages
  3. Generated a Packages.gz file in the same directory by doing:

    dpkg-scansources . /dev/null | gzip -9c > Packages.gz

On the client machine:

Added the following line to my /etc/apt/sources.list file:

deb http://www.example.com/packages /

Ran: sudo apt-get update

The output related to my trivial repository looked like this:

Ign http://www.example.com  Release.gpg
Ign http://www.example.com/packages/  Translation-en_US
Ign http://www.example.com  Release
Ign http://www.example.com  Packages
Ign http://www.example.com  Packages
Hit http://www.example.com  Packages

But I can't install the package by name. For example, there's a package called "python-nova" which corresponds to package python-nova_2011.3-custom~bzr680-0ubuntu1_all.deb

I've tried to do: apt-get install python-nova, but I get the following error:

$ sudo apt-get install python-nova
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package python-nova
share|improve this question
Did you check the contents of Packages.gz on the server ? Does it contain the information for python-nova as expected ? –  João Pinto Feb 15 '11 at 22:09
can you try with dpkg-scanpackages instead of dpkg-scansources –  jet Feb 15 '11 at 22:52
Instead of doing things manually like that, use a tool for built for the task. –  Tshepang Feb 16 '11 at 0:36
@jet That was it! I was using dpkg-scansources when I should have been using dpkg-scanpackages. If you add this as an answer, I'll accept it. –  Lorin Hochstein Feb 16 '11 at 1:53

1 Answer 1

up vote 3 down vote accepted

can you try with dpkg-scanpackages instead of dpkg-scansources

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.