问题原文
原帖链接 · port5432 · CC BY-SA 3.0
I'm a Hetzner customer, and I have twice had the same problem when using their standard Ubuntu 16 LTS image on a new server. When I try to download packages it is incredibly slow and will often sit waiting for 10s on minutes on a single package.
I have "solved" this problem by forcing IPv4, but I don't understand where the problem is. So far Hetzner support have not been able to solve this issue.
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
Is this an issue on my own server or else somewhere in the Hetzner network infrastructure?
Requests to Hetzner mirrors are OK, but external servers are taking an extremely long time to complete, eg: it is hanging on requests to ubuntu.com
Get:14 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages [58.8
kB]Get:15 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main i386 Packages [58.6
kB]0% [Connecting to security.ubuntu.com (2001:67c:1560:8001::14)]
已采纳解答
原帖链接 · Simone Riccardi · CC BY-SA 4.0
in my case, since I built the server from a Cloud-ISO installation, the IPV6 was set with a different IP from my real one.
So I just had to change the wrong one with mine. Here all details from Hetzner's wiki: https://wiki.hetzner.de/index.php/Cloud_ISO_Installation_Gateway/en
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
