Apt-cacher-ng in debian-12-minimal does't work with onion repos

Temporary fix for new apt-cacher-ng versions using privoxy while the issue with RFC is being discussed:

Install and configure apt-cacher-ng in the same way as before, e.g. following this guide:

Install privoxy in template-cacher:

apt-get install privoxy
systemctl mask privoxy

Shut down template-cacher.
Start cacher qube and configure privoxy there:

echo "binds+=( '/etc/privoxy/config' )" >> /rw/config/qubes-bind-dirs.d/50_user.conf
echo 'systemctl unmask privoxy' >> /rw/config/rc.local
echo 'systemctl start privoxy' >> /rw/config/rc.local
echo 'Proxy: http://127.0.0.1:8118' >> /etc/apt-cacher-ng/acng.conf

Restart cacher.
Change privoxy config:

echo 'forward-socks5t / 10.152.152.10:9153 .' >> /etc/privoxy/config
systemctl restart privoxy
3 Likes