切记树莓派是arm架构,不是x86/64,网上大多ubuntu、linux换源的都是x86/64架构的,用在树莓派上安装软件时会报错,比如找不到包等等。我曾经因为这个问题困扰好久,一度放弃linux。。。uq(≧▽≦q)
在这里放上适用于树莓派ubuntu的镜像源
?可以先对原版官方源做个备份,以备不时之需
sudo cp /etc/apt/sources.list /etc/apt/sources.list.origin
接下来修改源?
sudo vim /etc/apt/sources.list
?
# 默认注释了源码仓库,如有需要可自行取消注释
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ focal main main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
|