查看了很久发现CSDN里没有能解决的办法,最终在外网上靠大佬们解决了。
检查顺序
1、查看自己的系统架构。
uname -a #用uname -m也可以
找到自己的架构是什么,我的是aarch64,查了一下,aarch64也是arm64
但我在更新时下载的软件包是amd64的。。
所以一直不成功。
发现了这个问题,但我一直解决不了,gpt告诉我要换源或者修改dns配置,但尝试无果。
朋友们如果也和我一样问题,可以先尝试这两种办法,这两种办法网上有详细教程,我在这里不多赘述。
现在说一下我的解决办法。
输入这两行代码
dpkg --print-architecture
dpkg --print-foreign-architectures
下面那个不一样,想办法把他换掉。
输入
dpkg --add-architecture arm64
然后没返回
再更新
sudo apt-get update
不报错了!!
这里附上来源,里面还有更详细的步骤https://askubuntu.com/questions/1076640/convert-from-armhf-to-arm64-on-raspberry-pi-3-b-running-64-bit-ubuntu-server-18