GUIDE: Setting APT Proxy Server
> INIT: December 1st, 2025 > UPDATED: December 10th, 2025
Adding Proxy Settings
Setting Proxy for APT
First create a file to hold the proxy settings, put this in the Linux Terminal
Copy the code below, right click to paste in Putty window.
Press CTRL+O to save the file, followed by CTRL+X to close the nano editor.
Setting Proxy for curl/wget
Temporary Proxy Settings Command
If you need to add immediate proxy settings but only need this temporarily. Run this in your shell:
Permanent/Persistent Proxy Settings
However, you might want proxy settings to be persistent after a reboot. To do this we perform the following steps.
All Users
Using an administrator account, open /etc/environment into a text editor (nano).
Add the following lines, modifying them to fit your environment file.