ubuntu

Ubuntu是一个基于Debian的Linux发行版,包含了常用的大量软件包。Ubuntu的目标在于为一般用户提供一个最新同时又相当稳定,主要以自由软件建构而成的作业系统。Ubuntu目前具有庞大的社群力量支持,用户可以方便地从社群获得帮助。

SJTUG镜像源可以加速软件包的安装。

使用方式:

使用sudo nano /etc/apt/sources.list打开镜像源列表文件。将类似于http://cn.archive.ubuntu.com/ubuntuhttp://cn.archive.ubuntu.com/ubuntu的地址改成https://mirror.sjtu.edu.cn/ubuntu,之后按Ctrl-O 回车保存,按Ctrl-X退出。最后执行sudo apt update即可。

镜像站一天同步一次 Ubuntu 镜像。为了取得最新的安全更新,我们不建议您将 security.ubuntu.com 换成镜像源。

您也可使用sudo sed -i 's/http:\/\/cn.archive.ubuntu.com/https:\/\/mirror.sjtu.edu.cn/g' /etc/apt/sources.list指令直接批量修改。

以下为修改后的镜像源列表文件的示例。可使用gedit等文本编辑器修改/etc/apt/sources.list。修改后使用sudo apt update更新软件源。

Ubuntu 18.04

deb https://mirror.sjtu.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

# deb https://mirror.sjtu.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

Ubuntu 20.04

deb https://mirror.sjtu.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ focal-security main restricted universe multiverse

# deb https://mirror.sjtu.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse

Ubuntu 22.04

deb https://mirror.sjtu.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ jammy-security main restricted universe multiverse

# deb https://mirror.sjtu.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirror.sjtu.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

其中deb-src为源码镜像,默认注释以提高速度。可将原镜像列表备份后替换为上述内容。

SJTUG Logo

SJTUG Zhiyuan Mirror

由 上海交通大学 Linux 用户组 (SJTUG) 维护

沪交 ICP 备 20180085