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 using 11.10 the amd64 version (I assume, but I don't know how to figure that out). Now when I add a section to /etc/apt/source.list.d/foo.list:

deb http://<myserver>/download/public stable main

and put my package in


I get an error:

Err http://<myserver> stable/main i386 Packages            
   404  Not Found

Now the question is: do I have to provide a Packages(.gz) in the binary-i386 subdirectory even if it is empty? This is not a i386 package and I don't request one on the command line. Does Ubuntu require both architectures to be available?

share|improve this question
dpkg --print-architecture will show you what architecture dpkg is configured for. – Jeremy Kerr Mar 27 '12 at 8:59
Thanks, @JeremyKerr! – topskip Mar 27 '12 at 9:03

You need the Packages.gz file to make it a proper repository. If it is empty, just wait adding it to sources.list until you have finished setting it up.

See for detailed instructions, including generating Packages.gz

To verify your architecture, run uname -m in a terminal. If it is a 64-bit machine, it should report x86_64.

share|improve this answer
Obviously my question was bad. I have tried to rephrase it: I provide a amd64 package but not a i386 package. It used to work fine on a i386 system, but somehow not when I am on a amd64. – topskip Mar 27 '12 at 8:57

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.