2

Usually but not always when I try to download some few software through apt I have plenty of errors in the error log such as the following one:

Err http://fr.archive.ubuntu.com trusty/universe Translation-fr                
  Unable to connect to 192.168.1.254:3128:

Or also

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Unable to connect to 192.168.1.254:3128:

Some said it was because of a proxy, but I don't use a proxy.

I did:

:~$ apt-config dump acquire::http
Acquire::http "";
Acquire::http::proxy "http://192.168.1.254:3128/";

and

:~$ grep 192.168.1.254 /etc/apt/ -R
/etc/apt/apt.conf:Acquire::http::proxy "http://192.168.1.254:3128/";
/etc/apt/apt.conf:Acquire::https::proxy "https://192.168.1.254:3128/";
/etc/apt/apt.conf:Acquire::ftp::proxy "ftp://192.168.1.254:3128/";
/etc/apt/apt.conf:Acquire::socks::proxy "socks://192.168.1.254:3128/";
grep: /etc/apt/trustdb.gpg: Permission denied

1 Answers1

2

As can be seen from the output, you are using a proxy. Remove that configuration if you don't want it:

sudo sed -i '/192.168.1.254:3128/d' /etc/apt/apt.conf
muru
  • 207,228