bullet2916
Posts: 7
Joined: Fri Jul 31, 2015 12:09 am

Proxy Server and Raspbian Jessie

Wed Feb 24, 2016 1:48 am

With previous versions of Raspbian, I have been able to successfully use a laptop running Squid as an Internet proxy for the Pi.

However with Raspbian Jessie, using apt-get with the Internet proxy does not work

It still works and allows me to download files from the web using wget after modifying /etc/wgetrc to allow the proxy.

In previous version, I created the file /etc/apt/apt.conf and added the line

Acquire::http::proxy "http://mylaptopaddress:3128";

In Raspbian Jessie this does not allow sudo apt-get update to work

I also tried creating the file 01proxy in /etc/apt/apt.conf.d and placed the line there, but I keep getting a 503 error from the proxy server

Is there something else that needs to be done in Jessie?

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: Proxy Server and Raspbian Jessie

Wed Feb 24, 2016 4:25 am

bullet2916 wrote:I also tried creating the file 01proxy in /etc/apt/apt.conf.d and placed the line there, but I keep getting a 503 error from the proxy server
Don't you need to have a setting for https and ftp as well, if you are using any of those?

And you are sure that that system can see the name you are using, what is it, mylaptopaddress? I'd try using the ip, are you using the hosts file or something else to resolve things?

fsr
Posts: 88
Joined: Wed Jan 13, 2016 2:29 am

Re: Proxy Server and Raspbian Jessie

Wed Feb 24, 2016 5:44 am

bullet2916 wrote:I keep getting a 503 error from the proxy server
The proxy server (Squid?) will be able to elaborate on why it is responding with a 'service unavailable'. Enable verbose logging and see what it has to say.

Return to “Advanced users”