1

we have ubuntu 10.04 and ubuntu 10.10 operating systems. However our software works only in these versions. We are facing some problems in the new versions 12.04 (LTS) we are working in it. But temporarily we need to setup a cacher server to install basic packages in these versions like samba, thunderbird, ssh ang plugins etc.. Any possibility's?

  • I already know that these versions has reached end of support. But we only prefer these versions, as it has a classic-gnome.
  • We are working to upgrade our softwares, so that we are in-need of a temporary solution.
  • Thought of setting up apt-mirror, but it consumes more bandwidth, for every release we need to download 85 GB's of datas, which is quite difficult and it takes lot of time.
  • Hope there is some better trick to acheive this task.

Update:

  • Any way to setup apt-mirror with needed packages?? Instead of downloading the whole mirror? We require only samba, ssh, thunderbird, flashplugin-installer and all additional plugins. For installing this packages, setting up a complete mirror of 85 GB per distribution is really waste.

  • We are already using apt-cacher-ng server. I am able to install packages for ubuntu 10.04 but installing packages in ubuntu 10.10 throws 404 error. Any way to fix this??

karthick87
  • 84,513

3 Answers3

2

In our company we use apt-cacher-ng with very successful results. With this software we distribute updates to about 100 PCs running different versions of Ubuntu Linux without unnecessary waste of bandwidth.

This software also provides stats where you can see saved bandwidth

This software also provides stats where you can see the amount of saved bandwidth

jap1968
  • 394
2

I would suggest to use squid-deb-proxy. It's just a pre-configured Squid proxy very well capable of caching packages from Debian/Ubuntu repositories efficiently. You can use all the power of Squid with it too.

For Squid-deb-proxy, just install the package squid-deb-proxy and add allowed destination domains in a new file in /etc/squid-deb-proxy/mirror-dstdomain.acl.d. The regular official Ubuntu mirrors are already added for you (e.g. *.archive.ubuntu.com). It will run a HTTP proxy at port 8000 by default.

As a bonus, clients can auto-discover caching-enabled machines in the local network by having the squid-deb-proxy-client package installed. If you prefer to configure this manually, configure APT yourself, e.g. /etc/apt/apt.conf.d/10proxy:

Acquire::http::Proxy "http://my.proxy.machine:8000/";

To add support for older releases, do this:

  1. Create a file /etc/squid-deb-proxy/mirror-dstdomain.acl.d/20-old-releases containing just this line:

    old-releases.ubuntu.com
    
  2. Restart the proxy: sudo service squid-deb-proxy restart.

gertvdijk
  • 69,427
2

You can do this with squid deb proxy:

And then on the clients you can change their sources.list to old-releases.ubuntu.com:

Then you'll have a cache of the older debs locally.

Jorge Castro
  • 73,717