How to install packages by
apt-get via proxy? It was an issue in such cases that I needed to get packages via a proxy and no other ways would be possible.
To solve this issue, I’ve did some actions. First of all we to install
$ apt-get install tor
Then make sure that Tor connected (100%) successfully:
$ tail -f /var/log/tor/log
Then we need to install
$ apt-get install privoxy
Then config it:
Update these lines in
listen-address loclhost:8118 to
Add these lines:
forward-socks4 / 127.0.0.1:9050 . forward-socks5 / 127.0.0.1:9050 .
$ /etc/init.d/privoxy restrat
Now it’s time to config
01proxy file in
/etc/apt/apt.conf.d/ with below settings:
Finally make sure that it works fine.
$ apt-get update