ubuntu系统源

问题

1. 连接mirrors.tuna.tsinghua.edu.cn:80 (183.172.166.34)超时

  1. 浏览器访问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 connectConnection timed out,可能是网络连接防火墙的问题。

  • 如果看到 curl: (60) SSL certificate problem,基本可以确定是系统时间CA证书的错误。

bash 复制代码
sudo gedit /etc/hosts
相关推荐
tntxia13 小时前
linux curl命令详解_curl详解
linux
扛枪的书生15 小时前
Linux 网络管理器用法速查
linux
SkyWalking中文站17 小时前
认识 Horizon UI · 1/17:SkyWalking 新一代可观测性控制台
运维·前端·监控
顺风尿一寸18 小时前
Java Socket 内核之旅:从 SocketChannel.read() 到 tcp_recvmsg 与 epoll 的完整调用链路
linux
雪梨酱QAQ20 小时前
Kubeneters HA Cluster部署
运维
江华森1 天前
Spring Cloud 微服务全栈实战:从 Eureka 到 Docker Compose 一文贯通
运维
江华森1 天前
Matplotlib 数据绘图基础入门
运维
XIAOHEZIcode1 天前
Ubuntu 终端美化全栈指南:Bash 到 Kitty 踩坑实录
linux·ubuntu·命令行
江华森1 天前
NumPy 数值计算基础入门
运维
唐青枫1 天前
别再只会用 cron:Linux systemd Timer 定时任务实战详解
linux