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
想想你的文章写的特别好https://www.ea55.com/
不错不错,我喜欢看 https://www.237fa.com/
怎么收藏这篇文章?
叼茂SEO.bfbikes.com
感谢少年 提供的ubuntu-ports源列表 (☆ω☆)
谢谢少年,我的Ubuntu终于可以用国内源了