赞
踩
版本 | 代号 | 命令 |
---|---|---|
Ubuntu 24.04 | Noble | vim /etc/apt/sources.list.d/ubuntu.sources |
Ubuntu 22.04 | Jammy | vim /etc/apt/sources.list |
vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu jammy main restricted deb http://cn.archive.ubuntu.com/ubuntu jammy-updates main restricted deb http://cn.archive.ubuntu.com/ubuntu jammy universe deb http://cn.archive.ubuntu.com/ubuntu jammy-updates universe deb http://cn.archive.ubuntu.com/ubuntu jammy-updates multiverse deb http://cn.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu jammy-security main restricted deb http://cn.archive.ubuntu.com/ubuntu jammy-security universe deb http://cn.archive.ubuntu.com/ubuntu jammy-security multiverse
vim /etc/apt/sources.list.d/ubuntu.sources
Types: deb deb-src URIs: https://mirrors.aliyun.com/ubuntu/ Suites: noble noble-updates noble-backports noble-security noble-proposed Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb deb-src URIs: https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ Suites: noble noble-updates noble-backports noble-security noble-proposed Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb deb-src URIs: http://mirrors.163.com/ubuntu/ Suites: noble noble-updates noble-backports noble-security noble-proposed Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb deb-src URIs: https://mirrors.ustc.edu.cn/ubuntu/ Suites: noble noble-updates noble-backports noble-security noble-proposed Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb URIs: http://cn.archive.ubuntu.com/ubuntu/ Suites: noble noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb URIs: http://security.ubuntu.com/ubuntu/ Suites: noble-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
配置项 | 备注 |
---|---|
deb | 预编译并准备安装的二进制包 |
deb-src | 需编译的源码包 |
配置项 | 备注 |
---|---|
cn.* | 指向Ubuntu包归档的中国镜像 |
security.* | 专门用于安全更新 |
配置项 | 备注 |
---|---|
noble | 初始版本包 |
noble-updates | 更新包 |
noble-backports | 向后移植backport |
noble-security | 安全漏洞 |
配置项 | 备注 |
---|---|
main | 拥有Ubuntu支持的免费和开源软件 |
restricted | 包含Ubuntu支持的专有驱动程序和软件 |
universe | 包括community-maintained免费和开源软件 |
multiverse | 软件可能非免费或非开源,且不受Ubuntu官方团队支持 |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。