apt-get does't work with http_proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I use lubuntu 16.04.
$ uname -a
Linux ubuntu 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ dpkg -l |grep apt
ii apt 1.2.10ubuntu1 amd64 commandline package manager
When I set "http_proxy" environment var and run "apt-get update", I get many "connection failed"
Err:16 http://
Connection failed
Err:17 http://
Connection failed
Err:18 http://
Connection failed
Err:19 http://
Connection failed
Err:20 http://
Connection failed
Err:21 http://
Connection failed
But I can use curl and wget to fetch website homepage.
And in centos7, yum can work with 'http_proxy', I can update my centos7.
What type of proxy is that? Given you were using it before I presume its an HTTP proxy. Does the URI you specify has "http://" in front? Is that perhaps a public proxy? We have a test covering HTTP proxies and I have just run an upgrade myself with a SOCKS proxy so that more likely something specific to your setup than a general "everything broken" case…
Please run apt with some debug options enabled: -o Debug:: Acquire: :http=1 -o Debug:: pkgAcquire: :Worker= 1
Beware: That generates a lot of output, so you might want to add also somthing like: 2>&1 | tee apt-update.log