Ubuntu(arm)22.04配置清华源

1,清华源地址

地址:https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/

2,获取ubuntu(arm)的源

ubuntu(arm)要使用清华源中ubuntu-ports源
在这里插入图片描述
在这里插入图片描述

以上源可以去清华源中获取,或者复制我下面得即可

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-proposed main restricted universe multiverse

3,跟新unbuntu(arm)的源

sudo vim /etc/apt/sources.list

打开sources.list文件,按dd对文件进行删除或者按i对文件进行修改加上注释,然后在把清华源复制进这个文件即可

4,unbuntu(arm)进行跟新

sudo apt-get  update
sudo apt-get upgrade

完成后即可使用清华源进行软件下载