清华源的Ubuntu代号是什么
时间: 2025-02-02 15:26:56 浏览: 38
### 查找清华大学 Ubuntu 镜像源中的系统代号
在使用清华大学镜像站配置Ubuntu时,了解不同版本的代号非常重要。这些代号用于指定特定版本的Ubuntu,在配置文件中作为路径的一部分。
对于Ubuntu的不同版本,其对应的代号如下表所示:
| 版本 | 代号 |
|------------|-------------|
| 20.04 LTS | focal |
| 18.04 LTS | bionic |
| 16.04 LTS | xenial |
当访问清华大学开源软件镜像站并查看Ubuntu部分时,可以发现URL结构通常遵循以下模式[^1]:
```
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/[Ubuntu版本代号]/
```
例如,如果要使用Ubuntu 20.04 LTS (Focal Fossa),则应将`[Ubuntu版本代号]`替换为`focal`,完整的URL将是:
```
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/focal/
```
为了更方便地找到所需的版本代号,可以直接浏览[Tsinghua Open Source Mirror](https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/)页面上的列表来获取最新信息。
```bash
# 修改/etc/apt/sources.list 文件示例(以Ubuntu 20.04为例)
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
```
阅读全文
相关推荐

















