Ubuntu Ports
更新时间:2023-12-13 07:08:39
Ubuntu Ports 源使用帮助
说明
Ubuntu 软件源
收录架构
arm64, armhf, PowerPC, ppc64el, s390x
使用说明
手动更改配置文件
警告
操作前请做好相应备份
在 /etc/apt/sources.list
文件中,将软件源的地址改为
http://mirrors.shanhe.com/ubuntu-ports
以下是 Ubuntu 16.04 /etc/apt/sources.list 文件的参考配置内容:
# 默认注释了源码仓库,如有需要可自行取消注释 deb https://mirrors.shanhe.com/ubuntu-ports/ xenial main restricted universe multiverse # deb-src https://mirrors.shanhe.com/ubuntu-ports/ xenial main main restricted universe multiverse deb https://mirrors.shanhe.com/ubuntu-ports/ xenial-updates main restricted universe multiverse # deb-src https://mirrors.shanhe.com/ubuntu-ports/ xenial-updates main restricted universe multiverse deb https://mirrors.shanhe.com/ubuntu-ports/ xenial-backports main restricted universe multiverse # deb-src https://mirrors.shanhe.com/ubuntu-ports/ xenial-backports main restricted universe multiverse deb https://mirrors.shanhe.com/ubuntu-ports/ xenial-security main restricted universe multiverse # deb-src https://mirrors.shanhe.com/ubuntu-ports/ xenial-security main restricted universe multiverse # 预发布软件源,不建议启用 # deb https://mirrors.shanhe.com/ubuntu-ports/ xenial-proposed main restricted universe multiverse # deb-src https://mirrors.shanhe.com/ubuntu-ports/ xenial-proposed main restricted universe multiverse
更改完 sources.list
文件后请运行 sudo apt-get update
更新索引以生效。
小技巧
使用 HTTPS 可以有效避免国内运营商的缓存劫持,但需要事先安装
apt-transport-https
镜像下载
相关架构的 ISO 下载请参考 Ubuntu CD Image 源使用帮助
相关链接
-
Ubuntu ARM
-
Ubuntu PowerPC
-
Ubuntu ppc64el
-
Ubuntu s390x