Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1906  / 2 Years ago, sat, june 25, 2022, 10:31:07

I've been searching online for the last few days and have found many people with the same error but none with answers that fix mine as I'm NOT using a proxy :(



When I run apt-get update I get the following error:



Something wicked happened resolving 'http-proxy:8080' (-5 - No address associated with hostname)


I went to /etc/apt/apt.conf and this was written in it:



Acquire::http::Proxy "http://http-proxy:8080";


It's complaining about this proxy it seems, but there is no proxy set on my home network! I deal with proxies at work so know how to get around them, but I deleted the entry from apt.conf and this still didn't help.


More From » 12.04

 Answers
2

Besides the file /etc/apt/apt.conf there is a directory /etc/apt/apt.conf.d/. All files in there can contain settings for apt. They are named with a 2 digit number and then their purpose (like 00trustcdrom or 99proxy). The numbers are there to ensure the intended order.

(I was not able to determine if in case of conflicting statements the later ones or the earlier ones are in effect - my guess is : later statements overwrite earlier ones).

So if settings in /etc/apt/apt.conf don't work have a look at files in /etc/apt/apt.conf.d/.


[#33052] Sunday, June 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ickump

Total Points: 234
Total Questions: 124
Total Answers: 111

Location: Jordan
Member since Fri, Apr 8, 2022
2 Years ago
ickump questions
Mon, Aug 16, 21, 08:46, 3 Years ago
Mon, Aug 22, 22, 02:44, 2 Years ago
Sun, Oct 2, 22, 07:13, 2 Years ago
;