Ich kann pingen, kann aber nicht aus dem Internet herunterladen

Wenn Sie den Systemproxy verwenden, hat Firefox keinen Zugriff auf das Internet. Nachdem Sie den Proxy auf Auto geändert haben, lädt Firefox einwandfrei herunter.

Im Terminal, als ich versuchte, mit wget herunterzuladen, stoppte das Ternimal bei

>>wget www.google.com
--2015-06-05 23:38:09--  http://www.google.com/
Resolving www.google.com... 216.58.211.100, 2a00:1450:4007:80d::2004
Connecting to www.google.com|216.58.211.100|:80...

Andere Programme haben ebenfalls keinen Zugriff

>>pip install obspy
Collecting obspy
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2ff764ced0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/obspy/

Aber ich kann ping -

>>ping www.google.com
PING www.google.com (216.58.211.100) 56(84) bytes of data.
64 bytes from par03s15-in-f4.1e100.net (216.58.211.100): icmp_seq=1 ttl=50 time=14.1 ms
64 bytes from par03s15-in-f4.1e100.net (216.58.211.100): icmp_seq=2 ttl=50 time=14.2 ms
64 bytes from par03s15-in-f4.1e100.net (216.58.211.100): icmp_seq=3 ttl=50 time=14.2 ms
64 bytes from par03s15-in-f4.1e100.net (216.58.211.100): icmp_seq=4 ttl=50 time=14.1 ms
64 bytes from par03s15-in-f4.1e100.net (216.58.211.100): icmp_seq=5 ttl=50 time=14.1 ms
^C
--- www.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4498ms
rtt min/avg/max/mdev = 14.120/14.163/14.202/0.032 ms

>>ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=54 time=7.96 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=54 time=8.06 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=54 time=7.96 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=54 time=8.01 ms
64 bytes from 8.8.8.8: icmp_req=5 ttl=54 time=7.98 ms
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 7.964/7.998/8.060/0.067 ms
Author: Lee, 2015-06-05

1 answers

Es ist Ihr Proxy. Ihre Umgebung wäre hier nützlich (Linux? Fenster?), aber ich vermute, linux.

Sie müssen Ihre tatsächlichen Proxy-Einstellungen finden (die Firefox aufnimmt) - hier wäre ein wenig Rätselraten erforderlich, aber Sie können curl verwenden und jede bekannte automatische Proxy-URL oder mögliche Variationen testen .

Dann müssen Sie eine http_proxy-Umgebungsvariable festlegen, die sowohl für pip als auch für wget funktioniert.

 1
Author: Journeyman Geek,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2017-04-13 12:14:40