

You can do this using the command: cat > ~/.profile export http_proxy= EOF If the username does not contain you can limit yourself to adding the http_proxy environment variable with the value the proxy does not require an authorization, then.

The result must contain: Acquire::http::Proxy “ you need to log out of WSL and after re-logging in, check that it works correctly, for example, by running: sudo apt-get update -y Curl Let’s check the correct settings: cat /etc/apt//nf Note: the following proxy server parameters are used here and later:įor apt-get to work correctly, you need to add a following string to the file /etc/apt//nf: Acquire::http::Proxy " To do this, run the command: sudo cat >/etc/apt//nf Acquire::http::Proxy “ EOF This article will explain the settings for working correctly in WSL from under the proxy for:
