平台:树莓派3B+
系统:ubuntu MATE18
安装完成树莓派开始配置系统中发现使用官方源速度太慢,开始更换境内源,晚上很多资料都是16版本的,所以只能自己去找地址;
一直对source.list文件一知半解,安装ubuntu镜像更新,一直提示没有arm64package.研究发现,ubuntu默认是i386平台的,在阿里云镜像网址下是在ubuntu-port下有arm64平台,ubuntu路径下面是没有arm64包的.
PS:切记备份原始文件
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse
在上述命令中bionic是系统版本号,后面几个参数是对软件包的分类(Ubuntu下是main, restricted,universe ,multiverse这四个),网上很多更新源都是在ubuntu路径下修改,在树莓派平台上是不行的,切记改为ubuntu-ports路径.
更新完成后进行update 和upgrade.
PS :不知是使用阿里源的问题还是中文版的问题,安装ros总是出现适配问题,无法安装,重装英文版后选择中科大源解决问题
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse