Ubuntu1604装完jetson for tx2更新出错

这两天弄tx2,今天发现更新报错了

http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80]
W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/xenial/universe/binary-arm64/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80]
W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/xenial/restricted/binary-arm64/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80]
W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/xenial/multiverse/binary-arm64/Packages  404  Not Found [IP: 
使用


dpkg --print-foreign-architectures

查看一下里面多了一个arm64

先说一下我们遇到的错吧,当时着急改错也没截图,就用语言描述一下:当时我们执行

sudo dpkg --remove-architecture amd64
他报错说这个架构正在被数据库占用,

dpkg: error: cannot remove architecture 'arm64' currently in use by the database

看了参考文章之后,执行

apt-get remove .*:arm64
dpkg --remove-architecture arm64
但是这并不生效

下面执行的方式可以删除

dpkg --get-selections | awk '/arm64/{print $1}'
 

然后删掉这些包就ok了,以下是命令:

apt-get remove --purge `dpkg --get-selections | awk '/arm64/{print $1}'`

再次apt update没有问题了
 

猜你喜欢

转载自blog.csdn.net/chongzi865458/article/details/88817886