Rewrite urls to mirror

Bug #1456238 reported by Stuart Bishop on 2015-05-18
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
squid-deb-proxy (Ubuntu)
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) on 2015-05-18
Changed in squid-deb-proxy (Ubuntu):
importance: Undecided → Wishlist
Robie Basak (racb) on 2015-05-18
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?

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

Other bug subscribers