0

I'm getting below error when sudo apt-get update

Err:1 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease        
  Could not connect to 185.46.212.88:80 (185.46.212.88), connection timed out
Err:2 http://repository.spotify.com stable InRelease                           
  Could not connect to 185.46.212.88:80 (185.46.212.88), connection timed out
Err:3 http://packages.microsoft.com/repos/vscode stable InRelease              
  Could not connect to 185.46.212.88:80 (185.46.212.88), connection timed out
Err:4 http://archive.ubuntu.com/ubuntu xenial InRelease                        
  Could not connect to 185.46.212.88:80 (185.46.212.88), connection timed out
Err:5 http://dl.google.com/linux/chrome/deb stable InRelease                   
  Could not connect to 185.46.212.88:80 (185.46.212.88), connection timed out
Err:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease                
  Unable to connect to 185.46.212.88:80:
Err:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
  Unable to connect to 185.46.212.88:80:

........ W: Some index files failed to download. They have been ignored, or old ones used instead.

bin_ja
  • 1
  • As you can notice yourself, you can't connect to the repos. – Pilot6 Jul 28 '20 at 16:46
  • I'm not good at this, could you please help me how to do?? – bin_ja Jul 28 '20 at 16:50
  • You have some network issue. Are you connected to internet? – Pilot6 Jul 28 '20 at 16:51
  • if i ping i'm not seeing any issues

    ping google.com PING google.com (172.217.163.174) 56(84) bytes of data. 64 bytes from maa05s05-in-f14.1e100.net (172.217.163.174): icmp_seq=1 ttl=117 time=24.7 ms 64 bytes from maa05s05-in-f14.1e100.net (172.217.163.174): icmp_seq=3 ttl=117 time=41.3 ms 64 bytes from maa05s05-in-f14.1e100.net (172.217.163.174): icmp_seq=4 ttl=117 time=31.3 ms

    – bin_ja Jul 28 '20 at 16:52
  • Is your computer behind a proxy server? I'm almost sure about it because 172.... is a private IP range. google.com does not have that IP. – turbulence Jul 28 '20 at 16:53
  • @turbulence no i guess – bin_ja Jul 28 '20 at 16:54
  • May be is has been set by error. Could you please "echo $HTTP_PROXY" and "echo $http_proxy" – turbulence Jul 28 '20 at 16:56
  • both commands showing empty – bin_ja Jul 28 '20 at 16:58
  • Ok, then please check "sudo iptables-save". Here you can see any network forwarding. – turbulence Jul 28 '20 at 16:59
  • this one also showing empty result – bin_ja Jul 28 '20 at 17:01
  • Another strange thing is that according to the above error, all urls are resolved to same IP. You can try by changing your configured DNS server. You can try one of Google's open DNS server: 8.8.8.8 – turbulence Jul 28 '20 at 17:06
  • Please edit your question to show us the complete output of ping -4 -c3 ppa.launchpad.net – user535733 Jul 28 '20 at 17:08
  • @turbulence yes i edit the resolve file and added nameserver 8.8.8.8 and 8.8.4.4 but still no use – bin_ja Jul 28 '20 at 17:40
  • @user535733 i'm getting this error ping: invalid option -- '4' Usage: ping [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface] [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos] [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline] [-W timeout] [hop1 ...] destination – bin_ja Jul 28 '20 at 17:42
  • Then omit the -4 – user535733 Jul 28 '20 at 17:45
  • @user535733 PING ppa.launchpad.net (91.189.95.83) 56(84) bytes of data.

    --- ppa.launchpad.net ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2041ms

    – bin_ja Jul 28 '20 at 17:46
  • That's the correct server (91.189.95.83), and it's up. However, your original output said that you were trying to connect to 185.46.212.88 instead. Any idea why it's different? This is why turbulence had you rule out a bad DNS. Sure looks to me like you are behind some kind of proxy. @Pilot6 is right - you have some network issue that does not seem related to Ubuntu. Are you on a home network? Or some Corporate or School network? – user535733 Jul 28 '20 at 18:51

0 Answers0