飞凌嵌入式
直播中

华仔stm32

3年用户 2951经验值
擅长:嵌入式技术
私信 关注
[技术]

【飞凌RK3588开发板试用】更换镜阿里镜像源

出厂的镜像源是

deb http://mirrors.163.com/ubuntu-ports focal main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu-ports focal main restricted universe multiverse

为了加快更新包的速度,我们通常要更换镜像源,更换方法如下:

1、备份原来的源的文件/etc/apt/sources.list。

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2、sudo wget -O /etc/apt/sources.list https://repo.huaweicloud.com/repository/conf/Ubuntu-Ports-bionic.list
这样就换成了华为的源。

修改后保存。然后执行apt update速度就快很多了。

forlinx@ok3588:~$ sudo apt update
Hit:1 https://repo.huaweicloud.com/ubuntu-ports bionic InRelease
Hit:2 https://repo.huaweicloud.com/ubuntu-ports bionic-security InRelease
Hit:3 https://repo.huaweicloud.com/ubuntu-ports bionic-updates InRelease
Hit:4 https://repo.huaweicloud.com/ubuntu-ports bionic-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
21 packages can be upgraded. Run 'apt list --upgradable' to see them.
forlinx@ok3588:~$ apt list --upgradable
Listing... Done
ca-certificates/bionic-security,bionic-updates 20211016ubuntu0.18.04.1 all [upgradable from: 20190110ubuntu1]
glmark2/bionic 2014.03+git20150611.fa71af2d-0ubuntu4 arm64 [upgradable from: 1.0-3]
libegl-mesa0/bionic-updates 20.0.8-0ubuntu1~18.04.1 arm64 [upgradable from: 20.0.4-2ubuntu1]
libegl1-mesa-dev/bionic-updates 20.0.8-0ubuntu1~18.04.1 arm64 [upgradable from: 20.0.4-2ubuntu1]
libgbm1/bionic-updates 20.0.8-0ubuntu1~18.04.1 arm64 [upgradable from: 20.0.4-2ubuntu1]
libgl1-mesa-dev/bionic-updates 20.0.8-0ubuntu1~18.04.1 arm64 [upgradable from: 20.0.4-2ubuntu1]
libgl1-mesa-dri/bionic-updates 20.0.8-0ubuntu1~18.04.1 arm64 [upgradable from: 20.0.4-2ubuntu1]
libglapi-mesa/bionic-updates 20.0.8-0ubuntu1~18.04.1 arm64 [upgradable from: 20.0.4-2ubuntu1]
libglx-mesa0/bionic-updates 20.0.8-0ubuntu1~18.04.1 arm64 [upgradable from: 20.0.4-2ubuntu1]
libjavascriptcoregtk-4.0-18/bionic-security,bionic-updates 2.32.4-0ubuntu0.18.04.1 arm64 [upgradable from: 2.28.1-1]
libjbig0/bionic-security,bionic-updates 2.1-3.1ubuntu0.18.04.1 arm64 [upgradable from: 2.1-3.1build1]
libksba8/bionic-security,bionic-updates 1.3.5-2ubuntu0.18.04.2 arm64 [upgradable from: 1.3.5-2]
libseccomp2/bionic-security,bionic-updates 2.5.1-1ubuntu1~18.04.2 arm64 [upgradable from: 2.4.3-1ubuntu1]
libsnapd-glib1/bionic-updates 1.58-0ubuntu0.18.04.0 arm64 [upgradable from: 1.57-0ubuntu3]
libwebkit2gtk-4.0-37/bionic-security,bionic-updates 2.32.4-0ubuntu0.18.04.1 arm64 [upgradable from: 2.28.1-1]
libwebp6/bionic-security,bionic-updates 0.6.1-2ubuntu0.18.04.1 arm64 [upgradable from: 0.6.1-2]
libwebpdemux2/bionic-security,bionic-updates 0.6.1-2ubuntu0.18.04.1 arm64 [upgradable from: 0.6.1-2]
libwebpmux3/bionic-security,bionic-updates 0.6.1-2ubuntu0.18.04.1 arm64 [upgradable from: 0.6.1-2]
libxpm4/bionic-security,bionic-updates 1:3.5.12-1ubuntu0.18.04.2 arm64 [upgradable from: 1:3.5.12-1]
tzdata/bionic-security,bionic-updates 2022g-0ubuntu0.18.04 all [upgradable from: 2019c-3ubuntu1]
wireless-regdb/bionic-security,bionic-updates 2022.06.06-0ubuntu1~18.04.1 all [upgradable from: 2018.05.09-0ubuntu1]
forlinx@ok3588:~$

更多回帖

发帖
×
20
完善资料,
赚取积分