View Full Version : apt-get with proxy?
interaktiv
June 20th, 2005, 03:24 AM
Hello!
I have a proxy. How may I setup a apt-get to use it?
Thank you for replies.
regards,
interaktiv
blind0wl
June 20th, 2005, 04:20 AM
A work around I use is by editing the ~/.bashrc file, try:
sudo nano ~/.bashrc
and add this to the bottom of the file
http_proxy='http://username:password@yourproxy.com:80'
export http_proxy
Ctrl-X and save over the top, reopen a terminal and you should be good. If its a web based proxy, you might need to authenticate first by opening firefox (with your proxy settings). If its not an authenticated proxy omit the username and password bit and just have the http://yourproxy.com:80. Remeber to replace the 80 with whatever port you use. Reopen a terminal and try apt-getting from there.
HTH
Blindy
lorenzo
June 20th, 2005, 04:21 AM
The easiest way (for me) is using synaptic. Under preferences you have network settings where you can set proxy, username, password.
Otherwise you have to set environment variables in bashrc files (something like that, sorry but don't know exactly). There are some posts in this forum with the details.
However, I think using synaptic is far easier (especially if you change environment/proxy frequently).
Ciao,
Lorenzo
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.