{"id":455,"date":"2010-06-15T13:56:14","date_gmt":"2010-06-15T13:56:14","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2010\/06\/15\/how-do-i-run-apt-get-when-im-behind-a-proxy\/"},"modified":"2021-07-24T18:43:29","modified_gmt":"2021-07-24T18:43:29","slug":"how-do-i-run-apt-get-when-im-behind-a-proxy","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/UNIX\/Linux\/how-do-i-run-apt-get-when-im-behind-a-proxy.html","title":{"rendered":"How do I run apt-get when Im behind a proxy ?"},"content":{"rendered":"
In order configure your Ubuntu\/Debian box to access HTTP, HTTPS and FTP via a Proxy you will need to assign some environment variables.<\/p>\n
Assign Environmental Variables<\/strong><\/p>\n Below shows you the different variables you need to declare :<\/p>\n Survive reboot <\/strong><\/p>\n To survive a reboot you need to add these to \/etc\/bash.bashrc<\/em><\/p>\n User Authentication Below is an example if you need to add authentication credentials:<\/p>\n In order configure your Ubuntu\/Debian box to access HTTP, HTTPS and FTP via a Proxy you will need to assign some environment variables. Assign Environmental Variables Below shows you the different variables you need to declare : export HTTP_PROXY=[PROXY IP]:[PORT]export HTTPS_PROXY=[PROXY IP]:[PORT]export FTP_PROXY=[PROXY IP]:[PORT] Survive reboot To survive a reboot you need to add these … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"yoast_head":"\nexport HTTP_PROXY=[PROXY IP]:[PORT]
export HTTPS_PROXY=[PROXY IP]:[PORT]
export FTP_PROXY=[PROXY IP]:[PORT]<\/pre>\necho export HTTP_PROXY=http:\/\/[PROXY IP]:[PORT] >> \/etc\/bash.bashrc
echo export HTTPS_PROXY=https:\/\/[PROXY IP]:[PORT] >> \/etc\/bash.bashrc
echo export FTP_PROXY=ftp:\/\/[PROXY IP]:[PORT] >> \/etc\/bash.bashrc<\/pre>\n
<\/strong><\/p>\nHTTP_PROXY=http:\/\/[USERNAME]:[PASSWORD]@[PROXY IP]:[PORT]<\/pre>\n","protected":false},"excerpt":{"rendered":"