何亚斌

UbuntuCore 18.04 修改国内镜像源(Ubuntu Ports)
UbuntuCore 18.04 修改国内镜像源(Ubuntu Ports)工作中在全志 H3 ARM 架构上移植...
扫描右侧二维码阅读全文
12
2019/01

UbuntuCore 18.04 修改国内镜像源(Ubuntu Ports)

UbuntuCore 18.04 修改国内镜像源(Ubuntu Ports)

工作中在全志 H3 ARM 架构上移植使用了 UbuntuCore 18.04 系统,其默认镜像源为国外源,更新缓慢。故修改使用国内中国科学技术大学的镜像源,具体修改方法如下:


一、修改镜像源文件


修改 /etc/apt/sources.list 文件中镜像源服务器地址 http://ports.ubuntu.com/http://mirrors.ustc.edu.cn/ubuntu-ports/

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
#deb http://ports.ubuntu.com/ bionic main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ xenial main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
#deb http://ports.ubuntu.com/ bionic-security main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ xenial-security main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
#deb http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ xenial-updates main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
#deb http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse

二、使用 apt update 更新源。

apt update

使用 apt update 更新源可以看到下载的镜像源站点变成了 mirrors.ustc.edu.cn

Last modification:February 24th, 2019 at 11:26 pm

One comment

  1. 爆坑数据

    谢谢少年,我的Ubuntu终于可以用国内源了

Leave a Comment