Rewrite urls to mirror

Bug #1456238 reported by Stuart Bishop
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
squid-deb-proxy (Ubuntu)
In Progress
Wishlist
Chris Glass

Bug Description

Please allow specifying a MIRROR in /etc/default/squid-deb-proxy , and use this setting to rewrite http://(*.)?archive.ubuntu.com/ to $MIRROR. This would be of most benefit to mobile users.

http://scyu.logdown.com/posts/260278-squid-deb-proxy-redirect-default-ubuntu-repositories-to-local-mirror describes the process for people wanting to set this up manually.

Stuart Bishop (stub)
Changed in squid-deb-proxy (Ubuntu):
importance: Undecided → Wishlist
Robie Basak (racb)
Changed in squid-deb-proxy (Ubuntu):
status: New → Triaged
Revision history for this message
Rolf Leggewie (r0lf) wrote :

apt-cacher-ng can do this easily in the background, maybe that is a better solution?

Revision history for this message
Chris Glass (tribaal) wrote :

I started working on a what I believe is a fix for this - using the "store_id_program" configuration in squid, all known mirrors will be remapped internally to the distribution's "main" mirror URL, and therefore result in a cache hit no matter what the mirror used in the apt configuration is.

Unknown mirrors (mirrors not listed in /usr/share/python-apt/templates/*) will continue to behave as today.

Changed in squid-deb-proxy (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Chris Glass (tribaal)
Revision history for this message
Chris Glass (tribaal) wrote :

I have a preliminary solution to this working in ppa:tribaal/squid-deb-proxy

Note that while it should improve the hit rate, it is also a little hard to see it working since the existing squid logs mention the URL - not the store ID.

Feedback welcome.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

and again, what's the reason not to use existing tools, specifically made for this purpose, but to increase complexity and bloat?

Revision history for this message
Steve Dodd (anarchetic) wrote :

To follow on from the last comment - my acng install seems to be constantly getting itself into a messed up state, requiring manual pruning of corrupted files from its cache, and now apparently something has happened which makes its automatic maintenance constantly fail, and I absolutely cannot fix it.

I'd love to see Chris's work merged if it's in a usable state?

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

Other bug subscribers

Remote bug watches

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