大网数据广告活动
服务器运维问答

How to identify slow connection with IPv6

· 52CE 我爱测

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…

问题原文

原帖链接 · 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

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-06-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。