[Tim Retout] > Because of the design of apt transports, if you put just "http" then > unfortunately the request will get sent to the http transport, not > this one. And for that to work, you would have to add SOCKS proxy > support to apt itself, which is quite difficult.
There are two ways to redirect http and https apt requests without rewriting sources.list. One is using dpkg-divert to replace /usr/lib/apt/methods/http with /usr/lib/apt/methods/tor+http, which can be done by local admins or the apt-transport-tor package without any cooperation with other maintainers, and the other is to make /usr/lib/apt/methods/http an alternative in the alternatives system, and pick the default transport implementation using the alternatives system. Perhaps something to consider? -- Happy hacking Petter Reinholdtsen

