Jetson nano更换国内源及Eorror:the public key is not available的解决

  Jetson nano的原本的软件源在海外,所以在软件更新的时候因为速度的原因会遇到多多少少的问题,所以换个稳定能用的国内的源对开发的意义不言而喻。不过Jetson nano运行的系统是aarch64架构的,常见的Ubuntu换源教程在此会不管用。

uname -a

在这里插入图片描述
  更换五道口的源,亲测稳定可用:

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe

  在更换国内的软件源后进行更新出现了以下问题:

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0CC3FD642696BFC8
Reading package lists... Done
W: GPG error: https://packagecloud.io/headmelted/codebuilds/debian stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0CC3FD642696BFC8
E: The repository 'https://packagecloud.io/headmelted/codebuilds/debian stretch InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

  GPG签名验证错误。
在这里插入图片描述

sudo gpg --keyserver keyserver.ubuntu.com --recv 0CCxxxxxxxxxxxxx //(这个公钥根据提示来写的,即上图中的红色部分)
sudo gpg --export --armor 0CC3FD642696BFC8 | sudo apt-key add -

  添加认证之后,软件列表更新成功。
在这里插入图片描述

参考:
知乎文章:Jetson Nano换国内源

猜你喜欢

转载自blog.csdn.net/qq_33475105/article/details/109555200