apt.conf examples should include caching

Bug #134201 reported by Lars Noodén on 2007-08-23
Affects Status Importance Assigned to Milestone
apt (Ubuntu)

Bug Description

Many sites have an HTTP+FTP proxy/cache already set up and running. If I understand correctly would be possible to use Apt.conf to run requests to Ubuntu's repositories through the proxy/cache. I would like the examples document for apt.conf to include a sample configuration for squid or some other common proxy/cache. (Note, this should not be "apt-cacher", though it might be useful to mention "apt-cacher" in *addition* to a regular proxy cache. However, since few sites have apt-cacher in place, using an example of a regular proxy/cache is needed.)

When setting up, updating, patching or upgrading a large site, speed would be increased several orders of magnitude by having a local cache. This would also be good for the Internet as it would reduce unnecessary congestion.

Lars Noodén (larsnooden) wrote : apt

Sorry I missed the package: apt

Ubuntu's "AptGetHowto" describes this in the section "Setting up apt-get to use a http-proxy"

Some example like that should be in /usr/shar/doc/apt/examples/apt.conf, too.

summary: - apt.conf examles should include caching
+ apt.conf examples should include caching
Clint Byrum (clint-fewbar) wrote :

Hi Lars, thanks so much for taking the time to file this report.

I concur with the feeling that this would be a worthy addition, and went ahead and forwarded this upstream to debian.


It may get lost in the thick of 600+ open bugs against apt, so make sure to add a patch too, which should help the maintainer notice it and get it applied ASAP.

Marking Triaged as it has been forwarded upstream.

Changed in apt (Ubuntu):
status: New → Triaged
Julian Andres Klode (juliank) wrote :

Closing this bug as invalid, we ship complete documentation for proxy options; and the requested examples are given in /usr/share/doc/apt/examples/configure-index.gz

Changed in apt (Ubuntu):
status: Triaged → Invalid
Clint Byrum (clint-fewbar) wrote :

As it is a Wishlist request Julian, I think the proper status is "Won't Fix", as I believe Lars was asking for simpler, more clear examples, though I leave it up to the apt maintainers to set that status.

Another suggestion would be to use squid-deb-proxy and squid-deb-proxy-client, which solve this problem in a quite unique way.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.