Skip to content

Instantly share code, notes, and snippets.

@wizcas
Created September 3, 2019 15:40
Show Gist options
  • Save wizcas/5cebc200c8d8c083ddbde431fb481f9a to your computer and use it in GitHub Desktop.
Save wizcas/5cebc200c8d8c083ddbde431fb481f9a to your computer and use it in GitHub Desktop.
Set proxy for APT
# Create the apt proxy config file
sudo vi /etc/apt/apt.conf.d/proxy.conf
# Add http & https proxies into the file
Acquire {
HTTP::proxy "http://127.0.0.1:7890";
HTTPS::proxy "http://127.0.0.1:7890";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment