custom ubuntu repository server on Dell Latitude D600

Derek Broughton news at
Thu May 1 16:42:49 UTC 2008

<posted & mailed>

Roberto de Sousa wrote:

> Hi Derek,
> Thanks for the reply... Could you please send the config to me? i am bit
> rush to prepare this repository server.
> Derek Broughton <news at> wrote: Roberto de Sousa wrote:
> I use apt-move to create the repository, and apache2 to serve it up.  I
> can send you all my configs if you want.

The apt-move.conf is attached - you'll notice mine still says "DIST=feisty"
which shows how little I've ever had to play with this.  It's not
important, but the "gutsy" files I have in the repo show locally as feisty:

$ apt-cache policy apache2
  Installed: 2.2.4-3ubuntu0.1
  Candidate: 2.2.4-3ubuntu0.1
  Version table:
 *** 2.2.4-3ubuntu0.1 0
        500 http://bella feisty/main Packages
        500 gutsy-updates/main Packages
        500 gutsy-security/main Packages
        100 /var/lib/dpkg/status

This puts everything under /var/www/ubuntu, so your default apache2 install
should find it.

My sources.list includes:

deb http://bella/ubuntu/ feisty main restricted contrib 

(where bella is my host).

/etc/crontab contains:

# apt package cache
10 14 * * 3 root \
apt-move -d feisty update ; /usr/local/bin/apt-move-buildPKG

(those last two lines should be on one).
Where "feisty" is the DIST noted above.  /usr/local/bin/apt-move-buildPKG
(attached) is used to fix up the Packages.gz files because apt-move is
really only setup for Debian.

In your case, if you want a _full_ mirror rather than just a mirror of files
you've already downloaded, use "mirror" instead of "update" in the crontab. 
If you just want to mirror the packages on your own system, you should use:
  apt-move -d feisty sync ; /usr/local/bin/apt-move-buildPKG
once, just to make sure you pick up any packages that aren't currently in
your /var/cache/apt/archives.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apt-move-buildPKG
Type: application/x-shellscript
Size: 249 bytes
Desc: not available
URL: <>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: apt-move.conf
URL: <>

More information about the ubuntu-users mailing list