问题
1. 连接mirrors.tuna.tsinghua.edu.cn:80 (183.172.166.34)超时
- 浏览器访问https://mirrors.tuna.tsinghua.edu.cn/,若无法打开,执行以下命令
bash
# 备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
# 诊断问题
curl -vI https://mirrors.tuna.tsinghua.edu.cn 2>&1 | head -n 20
-
如果看到
curl: (6) Could not resolve host,说明是DNS解析有问题。 -
如果看到
curl: (7) Failed to connect或Connection timed out,可能是网络连接 或防火墙的问题。 -
如果看到
curl: (60) SSL certificate problem,基本可以确定是系统时间 或CA证书的错误。
bash
sudo gedit /etc/hosts