Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
57
rated 0 times [  57] [ 0]  / answers: 1 / hits: 68580  / 1 Year ago, fri, december 9, 2022, 3:15:24

I'm trying to disable the proxy for apt-get but it seems like apt-get gets it's proxy configuration from somewhere else other than /etc/apt/apt.conf, because although the apt.conf file is empty (and the system proxy set to None) it's still trying to connect to the proxy.



Anyone got an idea?


More From » apt

 Answers
3

I'm using a script to replace different configuration files in order to easily switch between proxy and non-proxy environements. The problem was that I replaced the proxy apt.conf file with an empty apt.conf file, which apt then ignored.


Works for current latest Ubuntu as well.


If the proxy conf does not exist, create it:


$ sudo touch /etc/apt/apt.conf.d/95proxy.conf

Then add the following two lines:


Acquire::http::Proxy "false";
Acquire::https::Proxy "false";

[#29473] Saturday, December 10, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowstonnequ

Total Points: 279
Total Questions: 125
Total Answers: 123

Location: Finland
Member since Sun, Dec 5, 2021
2 Years ago
lowstonnequ questions
Wed, Oct 26, 22, 14:40, 2 Years ago
Tue, Feb 28, 23, 01:39, 1 Year ago
Wed, Dec 1, 21, 23:44, 2 Years ago
Thu, Apr 21, 22, 13:13, 2 Years ago
;