Skip to content

Instantly share code, notes, and snippets.

@Bintopia
Forked from wonderbeyond/set-apt-proxy.md
Created April 30, 2022 12:13
Show Gist options
  • Save Bintopia/dfcbca123f18f62cc63379d787d45fb5 to your computer and use it in GitHub Desktop.
Save Bintopia/dfcbca123f18f62cc63379d787d45fb5 to your computer and use it in GitHub Desktop.
[ubuntu][socks5][proxy] Set proxy for apt
@a1exlism
Copy link

Refer link here, the socks is needed to repalced by ftp protocol.
Final:

Acquire::http::Proxy "socks5h://localhost:XXXX/";
Acquire::https::Proxy "socks5h://localhost:XXXX/";
Acquire::ftp::proxy "socks5h://localhost:XXXX/";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment