@Patrick I got onion sources with apt-cacher-ng working.
derivative-maker/help-steps/variables
Before:
aptgetopt_add "Acquire::http::Proxy=${REPO_PROXY}"
aptgetopt_conf_add "Acquire::http::Proxy \"${REPO_PROXY}\";"
aptgetopt_add "Acquire::https::Proxy=${REPO_PROXY}"
aptgetopt_conf_add "Acquire::https::Proxy \"${REPO_PROXY}\";"
aptgetopt_add "Acquire::tor::Proxy=${REPO_PROXY}"
aptgetopt_conf_add "Acquire::tor::Proxy \"${REPO_PROXY}\";"
After:
aptgetopt_add "Acquire::http::Proxy=${REPO_PROXY}"
aptgetopt_conf_add "Acquire::http::Proxy \"${REPO_PROXY}\";"
aptgetopt_add "Acquire::https::Proxy=${REPO_PROXY}"
aptgetopt_conf_add "Acquire::https::Proxy \"${REPO_PROXY}\";"
aptgetopt_conf_add "Acquire::BlockDotOnion \"false\";"
Then just install torsocks
apt-transport-tor
and it should work.
Made a pull request too.