Wednesday, April 17, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3155  / 1 Year ago, sat, april 29, 2023, 7:39:26

I am currently at a conference in another country and my package manager cannot access repositories. My internet is working fine and I can ping the repositories or go to them in a browser, but package manager fails to access them. If I sudo apt-get update it throws



Something wicked happened resolving 'wwwproxy:3128' (-5 - No address associated with hostname)


(or Ign's). This proxy corresponds to my proxy at my office back at home, but I have disabled proxy in the package manager.



Scanning for best repository doesn't work either, it doesn't manage to connect to any.



I have searched for this online and have checked things about my apt.conf file. My apt.conf contains:



Acquire::http::proxy "http://wwwproxy:3128/";
Acquire::https::proxy "https://wwwproxy:3128/";
Acquire::ftp::proxy "ftp://wwwproxy:3128/";
Acquire::socks::proxy "socks://wwwproxy:3128/";


If I remove apt.conf (or replace with blank), it makes no difference. I don't see that it should since I am connecting directly (and have set it so in my network options in Package manager network settings)



I have also tried some things with resolv.conf (changing name address to primary and secondary dns) to no avail. (im not sure if this would help, following other advice)



I am running 12.04.



(I wrote this very quickly and wrote down everything I have tried to possibly shorten the troubleshooting process, have very limited time between lectures and need this sorted asap, my apologies)


More From » 12.04

 Answers
4

Clearly apt-get (and Synaptic) think there's a non-existent proxy set somewhere.



Try forcing a one-time no proxy with the -o option, for example:



 sudo apt-get -o Acquire::http::proxy=null update


and see if that works.



If it does, you can use it for any "emergency" updates/installs.



Note that the apt.conf file is obsolete and settings are currently stored in multiple files under /etc/apt/apt.conf.d/. To solve this problem, run grep -r Acquire /etc/apt/apt.conf.d/* and paste the output here so we can help you further.


[#35438] Sunday, April 30, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iriousutur

Total Points: 321
Total Questions: 112
Total Answers: 106

Location: Sweden
Member since Mon, Dec 7, 2020
3 Years ago
iriousutur questions
Sun, Apr 9, 23, 02:48, 1 Year ago
Tue, May 23, 23, 00:41, 12 Months ago
Fri, Oct 21, 22, 02:47, 2 Years ago
Mon, May 9, 22, 00:01, 2 Years ago
;