Question: A local debian mirror?

Posted by cpankonien on Wed 7 Sep 2005 at 08:32

I'd like to install a local Debian mirror on my network so that as I experiment with different things (and break them) I can reinstall faster, as well as make new package installs that much faster (new gigabit switch and nics!)

I've tried apt-mirror but this keep getting an error on startup, and the docs are a little thin. Any suggestions?

 

 


Posted by multani (82.233.xx.xx) on Wed 7 Sep 2005 at 08:53
Hi,

you could try apt-proxy. It is quite simple to install and configure.
You just need to change your /etc/apt/sources.list on client, to point to the apt-proxy machine, and it's done :)

[ Parent | Reply to this comment ]

Posted by rpetre (83.166.xx.xx) on Wed 7 Sep 2005 at 09:29
I confirm. I use apt-proxy on my network not only for official Debian repositories, but also some unofficial ones.
It saved me loads of time and bandwidth and I believe it's a must have for any network with more than a couple of Debian machines.

[ Parent | Reply to this comment ]

Posted by Anonymous (81.56.xx.xx) on Wed 7 Sep 2005 at 09:18
approx is your friend... well, this is my friend for a few monthes now. Having a full Debian mirror is not considered to be a good idea as you certainly don't need 95% of the packages; a caching proxy is good enough.

[ Parent | Reply to this comment ]

Posted by Anonymous (194.65.xx.xx) on Wed 7 Sep 2005 at 10:14
Hello.
I have a bunch of debian machines and i keep my local debian mirror with apt-proxy and apt-move.

although my question is do you have any deb package of your own and do you want to put them in your local deb mirror. if so try using apt-ftparchive to build your local deb mirror properly

[ Parent | Reply to this comment ]

Posted by Anonymous (80.135.xx.xx) on Wed 7 Sep 2005 at 10:40
Try debmirror. An example of it can be seen here

[ Parent | Reply to this comment ]

Posted by Steve (82.41.xx.xx) on Wed 7 Sep 2005 at 11:07
[ View Steve's Scratchpad | View Weblogs ]

There is brief discussion of creating a mirror with debmirror here.

Steve
--

[ Parent | Reply to this comment ]

Posted by dopehouse (84.130.xx.xx) on Wed 7 Sep 2005 at 11:41
[ View dopehouse's Scratchpad ]
Hi cpankonien! I use apt-proxy, it's a very good tool if you don't need the full >6GB for one cpu-arch. I use it since 2003 and it's doing a great job. All you need to do is
apt-get install apt-get install apt-proxy
and tune the config a little bit. My '/etc/apt-proxy/apt-proxy-v2.conf' (without comments):
[DEFAULT]
address = 192.168.0.187
port = 9999
min_refresh_delay = 1h
complete_clientless_downloads = 1
debug = all:4 db:0
timeout = 15
cache_dir = /home/aptproxy
cleanup_freq = 1d
max_age = 120d
max_versions = 1

[debian]
backends =
        http://ftp2.de.debian.org/debian
        http://ftp.de.debian.org/debian
        http://ftp.us.debian.org/debian
        ftp://ftp.uk.debian.org/debian

[debian-non-US]
backends =
        http://ftp.de.debian.org/debian-non-US
        http://ftp.uk.debian.org/debian-non-US
        ftp://ftp.uk.debian.org/debian

[security]
backends =
        http://ftp2.de.debian.org/debian-security
        http://security.debian.org/debian-security

You can add or remove some servers. I'm from germany so I use the fpt2.de.* mirrors. An Important entry is the security entry, becaus it mirrors the security patches too. The 'adress' entry at the beginning is the apt-proxy ip-adress. Know my '/etc/apt/sources.list':
deb http://192.168.0.187:9999/debian/ sarge main non-free contrib
deb-src http://192.168.0.187:9999/debian/ sarge main non-free contrib
deb http://192.168.0.187:9999/security sarge/updates main contrib non-free
Thats all. Now make
apt-get update
apt-get upgrade
and everything looks like before, but if you make updates on more than just one machine, than you can see the ghosts of debian and apt working.

*Bad english, I know*

[ Parent | Reply to this comment ]

Posted by Anonymous (62.255.xx.xx) on Wed 7 Sep 2005 at 12:14
I found apt-mirror to work perfectly.
Following this guide. http://www.interparse.com/debianmirror/
Perhaps you could post what error you get, and I'll be able to help.

[ Parent | Reply to this comment ]

Posted by Anonymous (193.253.xx.xx) on Wed 7 Sep 2005 at 13:33
"apt-cacher" does the trick too :)

[ Parent | Reply to this comment ]

Posted by Anonymous (213.148.xx.xx) on Wed 7 Sep 2005 at 14:33

Try building a Partial Debian GNU/Linux Mirror using apt-move etc.

[ Parent | Reply to this comment ]

Posted by Anonymous (193.124.xx.xx) on Thu 8 Sep 2005 at 10:38
I'm using apt-mirror for creating/updating my local mirror which is used for our university, campus, and local scientific institutes. No problems were experienced either.

[ Parent | Reply to this comment ]

Posted by Anonymous (81.1.xx.xx) on Thu 8 Sep 2005 at 10:42
Please explain the problem you got with apt-mirror.

You also can get help on official forum: http://sourceforge.net/forum/forum.php?forum_id=197335

[ Parent | Reply to this comment ]

Posted by Anonymous (84.194.xx.xx) on Thu 8 Sep 2005 at 10:46
I made a "mirror" by using Squid.

Change the settings of Squid to use a big cache size, change the maximum file size to keep (to be sure the big packages are kept) and be sure that Squid hold the packages long enough.

Of course, use everywhere the same repository and the download is at the same speed as the LAN speed!!!


linox.be

[ Parent | Reply to this comment ]

Posted by cpankonien (68.33.xx.xx) on Thu 8 Sep 2005 at 14:19
[ View Weblogs ]
Thanks to all for suggestions and help, I've tried a few (apt-proxy, approx) to no avail, but then I haven't been able to spend a whole lot of time on this project. I decided to give apt-mirror another shot and am making progress, I am in contact with Dmitry, the guy who wrote it so hopefully that will bear fruit. The reason I want to try apt-mirror is that while apt-proxy seems a good solution, I would like to have the whole distro locally at all times as I tend to try a lot of different server build configs, and if I understand correctly, apt-proxy will only get a particular package if requested by the client. While my bandwidth is good enough for that to not be a problem, I'd rather have the whole dist available, and have it update at a convenient time in the early am. If I misunderstand, please feel free to correct me. Once again, thanks to all, really glad I switched to Debian!

[ Parent | Reply to this comment ]

Posted by dopehouse (84.130.xx.xx) on Thu 8 Sep 2005 at 22:03
[ View dopehouse's Scratchpad ]
You understood it right!

[ Parent | Reply to this comment ]

Posted by Anonymous (68.33.xx.xx) on Fri 9 Sep 2005 at 00:26
Success with apt-mirror! Turns out all my problems were caused by errors in mirror.list and set defaultarch (should read "set defaultarch i386") in /etc/apt/mirror.list. Lots of blinky lights now, i suspect it will be downloading for quite a while, looks like around 18 gb as i only did stable main, may add more later. Also had to add two more drives to have enough space, luckily I had a few laying around. (Also the first time I've done lvm in debian...used it quite a bit in suse but pretty similar.) Once again, thanks to all!

[ Parent | Reply to this comment ]

Posted by cpankonien (68.33.xx.xx) on Fri 9 Sep 2005 at 00:34
[ View Weblogs ]
oops, the "success" one above is from me, wasn't logged in...

[ Parent | Reply to this comment ]

Posted by wolfrider (67.184.xx.xx) on Sun 16 Oct 2005 at 19:38
> (Also the first time I've done lvm in debian...used it quite a bit in suse but pretty similar.)

--For configuring LVM on non-Suse systems, I highly recommend Webmin and webmin-lvm packages. Best interface I've seen outside of Yast.

[ Parent | Reply to this comment ]

Sign In

Username:

Password:

[Register|Advanced]

 

Flattr

 

Current Poll

What do you use for configuration management?








( 153 votes ~ 0 comments )

 

 

Related Links