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
相关推荐
D2aZXN3FhrDa7e2124 分钟前
佛山乐从低预算实体店如何选择?看美诚AI自动化获客方案
运维·人工智能·自动化·佛山美诚科技有限公司
无足鸟ICT27 分钟前
【RHCA+】查看变量
linux·运维·服务器
Kina_C36 分钟前
Linux DNS 服务器-从高速缓存到辅助 DNS 部署指南
linux·运维·服务器·dns
suaizai_1 小时前
TypeScript 7 正式发布!Vue 暂被 “拒之门外“ !!!
linux·运维·ubuntu
慕伏白2 小时前
【慕伏白】Linux 系统如何根据端口号关闭进程
linux·运维·服务器
letisgo52 小时前
VMware Workstation + Ubuntu 26.04 LTS 小白运维部署手册
linux·运维·ubuntu
蓝创工坊Blue Foundry2 小时前
图片文字提取到 Excel:批量任务如何先定义要交付的字段
运维·服务器·开发语言·数据库·自动化·ocr·excel
IT探索2 小时前
Linux 查找文件指令总结
linux·算法
晚风吹长发2 小时前
Docker使用——Docker容器及相关命令
linux·运维·服务器·docker·容器·架构
ShiXZ2132 小时前
Docker Compose 安装与配置指南
运维·docker·容器