Ubuntu 更新系统
|
1 |
$ sudo apt-get update |
在执行后,发现输出如下信息:
|
1 2 3 4 |
命中:1 http://security.ubuntu.com/ubuntu noble-security InRelease 命中:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble InRelease 命中:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates InRelease 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports InRelease |
我明明记得源配置的是 cn.archive.ubuntu.com ,但是发现,系统更新时,自动去找了清华大学的Ubuntu源。
查看系统的 /etc/apt/sources.list 里面配置的也是 cn.archive.ubuntu.com 。
带着很多问号,在浏览器打开 https://cn.archive.ubuntu.com,发现网站已经自动跳转到清华镜像站了。
如果配置了防火墙过滤的场景需要特别注意这种情况。