就是刚装完,没有任何修改。apt 目录下也没有 singhua 字样。但是用 apt update 输出显示有 tsinghua 源。咋回事?
|  |      1cheng6563      2023-10-17 10:47:36 +08:00 ubuntu 桌面版是有自动选择当地源的功能的 | 
|      2anytk      2023-10-17 10:49:57 +08:00 ubuntu 的 cn 源 http://cn.archive.ubuntu.com/ubuntu/  你打开试试看? | 
|  |      3sbldehanhan OP @cheng6563 #1 那它不会添加到 source.list 文件中吗? | 
|  |      4sbldehanhan OP @anytk #2 这个怎么看?从哪儿看出来有清华源? | 
|      5czphoenix      2023-10-17 11:28:56 +08:00 /etc/apt/sources.list.d 里面也没有吗? | 
|  |      6dangyuluo      2023-10-17 11:31:22 +08:00 是不是返回了一个 304 跳转 | 
|  |      7sbldehanhan OP @czphoenix #5 没有。我 grep 了整个 apt 目录,没有发现 tsinghua 的字段。 | 
|  |      8sbldehanhan OP @dangyuluo #6 没有。一切正常,可以更新缓存。我好奇他到底配置到哪儿了。 | 
|  |      9ysc3839      2023-10-17 13:19:02 +08:00 via Android 看看/etc/apt/sources.list 内容? | 
|  |      10sbldehanhan OP @ysc3839 #9  ``` ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://cn.archive.ubuntu.com/ubuntu/ focal universe # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal universe deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates universe # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://cn.archive.ubuntu.com/ubuntu/ focal multiverse # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal multiverse deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates multiverse # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu focal partner # deb-src http://archive.canonical.com/ubuntu focal partner deb http://security.ubuntu.com/ubuntu focal-security main restricted # deb-src http://security.ubuntu.com/ubuntu focal-security main restricted deb http://security.ubuntu.com/ubuntu focal-security universe # deb-src http://security.ubuntu.com/ubuntu focal-security universe deb http://security.ubuntu.com/ubuntu focal-security multiverse # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse ``` 都是自带的,我没改过。 | 
|  |      11vicacheung      2023-10-17 13:52:14 +08:00 @sbldehanhan 使用 cn 源会转到使用清华源 | 
|  |      12sbldehanhan OP @vicacheung #11 是吗?那以后是不是不需要手动换源了? | 
|      13263      2023-10-17 14:08:16 +08:00  1 | 
|  |      14vicacheung      2023-10-17 14:09:50 +08:00 @sbldehanhan 是吧,有时候发现会使用阿里云作为 cn 源 | 
|  |      15ziwen1943      2023-10-17 14:14:55 +08:00 Ubuntumirror 会自行选择最快的 mirror 源获取 package list,这是 ubuntu 易用性设计,类似的 centos-fast-mirror 也会通过插件获取最快的 mirror 源,思路差不多,检测到你是默认的 mirror 之后就会给你自行遍历最快网络源,提高使用效率。 | 
|  |      16ziwen1943      2023-10-17 14:16:18 +08:00 ubuntu-server 版我没遇到这种,估摸是 desktop 页面插件内置逻辑实现的 mirror 遍历。 | 
|  |      17laduary      2023-10-17 14:21:05 +08:00 看到帖子之后 ping 了一下,cn.archive.ubuntu.com 这个域名被解析到 mirror.xtom.com.hk 上了。而且 xtom 这个镜像不在 http://mirrors.ubuntu.com/CN.txt 列表上。我记得 xtom 镜像是屏蔽大陆访问的。 用全国 ping 工具又试了一下,发现统一解析到 xtom 了。https://www.itdog.cn/ping/cn.archive.ubuntu.com | 
|  |      18unclemcz      2023-10-17 14:23:45 +08:00 | 
|  |      19sbldehanhan OP @unclemcz #18 我开代理不跳,关了代理就跳到清华源了。应该是楼上大哥说的那种机制。 | 
|      20LinePro      2023-10-17 14:36:43 +08:00 curl.exe -vvv http://cn.archive.ubuntu.com/ubuntu/ * Trying [2403:2c80:5::6]:80... * Connected to cn.archive.ubuntu.com (2403:2c80:5::6) port 80 (#0) > GET /ubuntu/ HTTP/1.1 > Host: cn.archive.ubuntu.com > User-Agent: curl/8.0.1 > Accept: */* > < HTTP/1.1 302 Moved Temporarily < Server: nginx < Date: Tue, 17 Oct 2023 06:35:57 GMT < Content-Type: text/html < Content-Length: 138 < Connection: keep-alive < Location: http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ | 
|  |      21sbldehanhan OP @ziwen1943 #16 了解了,感谢。 | 
|  |      22unclemcz      2023-10-17 14:44:31 +08:00 via Android @sbldehanhan 应该是 cn.archive.ubuntu 服务端控制回源地址的选择。 | 
|  |      23MIUIOS      2023-10-17 17:49:20 +08:00 新版本的 ubuntu 不用改源的了 默认会用国内的了 | 
|  |      24sbldehanhan OP @totoro52 #23 我的是 20.04 ,不是新版本,也会跳到清华源。应该是服务端做了重定位。 | 
|      25asdf12303116      2023-10-18 14:31:33 +08:00 我记得 cn.archive.ubuntu.com 这个域名是解析到 xtom 的镜像站的,xtom 镜像站 block 大陆 IP 地址,大陆 IP 会直接给 302 跳转到清华源 | 
|  |      26sbldehanhan OP @asdf12303116 #25 一直这样吗?还是最近改的?以前没注意,都是直接换国内源。 |