
Ich versuche, ein Update auf meinem Ubuntu 15.04 zu erhalten, aber die Verbindung zum Server schlägt fehl
me@me:~$ sudo apt-get update
Err http://archive.ubuntu.com vivid InRelease
Err http://archive.ubuntu.com vivid-updates InRelease
Err http://archive.ubuntu.com vivid-backports InRelease
Err http://archive.ubuntu.com vivid-security InRelease
Err http://archive.ubuntu.com vivid Release.gpg
Unable to connect to 54.86.15.42:8080:
Err http://archive.ubuntu.com vivid-updates Release.gpg
Unable to connect to 54.86.15.42:8080:
Err http://archive.ubuntu.com vivid-backports Release.gpg
Unable to connect to 54.86.15.42:8080:
Err http://archive.ubuntu.com vivid-security Release.gpg
Unable to connect to 54.86.15.42:8080:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/InRelease
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-updates/InRelease
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-backports/InRelease
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-security/InRelease
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/Release.gpg Unable to connect to 54.86.15.42:8080:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-updates/Release.gpg Unable to connect to 54.86.15.42:8080:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-backports/Release.gpg Unable to connect to 54.86.15.42:8080:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-security/Release.gpg Unable to connect to 54.86.15.42:8080:
W: Some index files failed to download. They have been ignored, or old ones used instead
Ich habe versucht, Lösungen zu finden, kann das Problem aber nicht beheben. Hier, was ich bisher versucht habe:
Ändern in
/etc/resolv.conf
:nameserver 8.8.8.8 nameserver 8.8.8.4
Ich habe versucht, den Ubuntu-Server anzupingen
me@me:~$ ping archive.ubuntu.com PING archive.ubuntu.com (91.189.91.15) 56(84) bytes of data. 64 bytes from likho.canonical.com (91.189.91.15): icmp_seq=1 ttl=41 time=259 ms 64 bytes from likho.canonical.com (91.189.91.15): icmp_seq=2 ttl=41 time=257 ms 64 bytes from likho.canonical.com (91.189.91.15): icmp_seq=3 ttl=41 time=255 ms 64 bytes from likho.canonical.com (91.189.91.15): icmp_seq=4 ttl=41 time=288 ms ^C --- archive.ubuntu.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3003ms rtt min/avg/max/mdev = 255.160/265.270/288.347/13.437 ms
Ändern Sie unter „Software & Update“ den Server in „Hauptserver“
Darin
/etc/apt/apt.conf
habe ich diese Zeile gefunden:Acquire::http::proxy 54.86.15.42:8080
#
Ich habe versucht , davor hinzuzufügen , aber es hat nicht funktioniert. Dann versuche ich, eine Verbindung zu 54.86.15.42:8080 herzustellen, aber nichts passiert. Und pinge an diese Adresse:me@me:~$ sudo ping 54.86.15.42 PING 54.86.15.42 (54.86.15.42) 56(84) bytes of data. ^C --- 54.86.15.42 ping statistics --- 16 packets transmitted, 0 received, 100% packet loss, time 14999ms
Es scheint mit einem Proxy oder einer Firewall zusammenzuhängen, aber ich verwende keines davon. Weiß jemand, wie man das beheben kann?
Antwort1
Mein Problem wurde gelöst. Ich weiß nicht, wie es wieder funktioniert. Ich habe diese Befehle ausprobiert unset http_proxy
und unset https_proxy
wie @nilesh_101 vorgeschlagen hat. Außerdem habe ich den Proxy geändert und ihn dann wieder auf Standard zurückgesetzt. Vielen Dank an alle, die meine Frage beantwortet haben!
Antwort2
Ich hatte das gleiche Problem. Dann habe ich den gesamten Inhalt der Datei apt.conf gelöscht und es funktioniert perfekt.