Installation failed with SDK manager

Using SDK manager to install the linux development environment for Jetson Xavier NX. Got NO_PUBKEY error.
Is there a way to fix it?

Err:1 file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 838B8CC0647817BB
Err:2 file:/var/cuda-repo-ubuntu2004-11-4-local InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 5A6421FDA7CFCDD0

Reading package lists…
W: GPG error: file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 838B8CC0647817BB
E: The repository ‘file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease’ is not signed.

Hi sn9607,

Are you using the devkit or custom board for Xavier NX?

Where do you see these errors? (on host PC running SDKM or Jetson Xavier NX)
You could try to run the following command to fix this error.

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <key>

Replace <key> with the key that showing in error messages.

Hi KevinFFF,

I use devkit.
I see it on host PC running SDKM.

This is the output from the command.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 838B8CC0647817BB
Executing: /tmp/apt-key-gpghome.InvdhUAI4h/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 838B8CC0647817BB
gpg: keyserver receive failed: No data

It seems more like the environment issue of your host.
Is there any issue when you install SDKM?

Are you using standalone Ubuntu18.04 or 20.04 as your host PC?

Have you confirmed the network access working as normal for your host PC?

There is a warning when I installed SDKM, but no error.
W: Repository is broken: sdkmanager:amd64 (= 1.9.3-10904) has no Size information
It is a standalone Ubuntu 20.04
I think network access is normal.

Could you re-install the SDKM on you host PC with the following command?

$ sudo apt-get install --reinstall sdkmanager

Or just using another PC to verify.

I have uninstalled and installed the SDKM several times, also installed the old version, then upgraded to the latest version.

Is there a way to fix the following error? How to add --allow-unauthenticated in SDKM? Any script, cli option?
E: There were unauthenticated packages and -y was used without --allow-unauthenticated

From SDKM:
W: GPG error: file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 838B8CC0647817BB
W: The repository ‘file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease’ is not signed.

E: There were unauthenticated packages and -y was used without --allow-unauthenticated
09:57:38.368 - Info: [ Package Install Finished with Error ]
09:57:38.368 - Info: [host] [ 11.55 MB released. Disk Avail: 720.06 GB ]
09:57:38.368 - Info: [ NV_CUDA_CROSS_HOST_COMP Install took 5s ]

Could you try to use the following command to re-install sdkmanager?

$ sudo apt-get purge sdkmanager
$ sudo apt-get install sdkmanager --allow-unauthenticated

I got these output:

sudo apt-get purge sdkmanager
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
gconf-service gconf-service-backend gconf2-common libgconf-2-4
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
sdkmanager*
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 336 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 325760 files and directories currently installed.)
Removing sdkmanager (1.9.3-10904) …
Processing triggers for mime-support (3.64ubuntu1) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Processing triggers for gnome-menus (3.36.0-1ubuntu1) …
Processing triggers for desktop-file-utils (0.24-1ubuntu3) …
(Reading database … 315791 files and directories currently installed.)
Purging configuration files for sdkmanager (1.9.3-10904) …

sudo apt-get install sdkmanager --allow-unauthenticated
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package sdkmanager

sudo apt-get install sdkmanager_1.9.3-10904_amd64.deb --allow-unauthenticated
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package sdkmanager_1.9.3-10904_amd64.deb
E: Couldn’t find any package by glob ‘sdkmanager_1.9.3-10904_amd64.deb’
E: Couldn’t find any package by regex ‘sdkmanager_1.9.3-10904_amd64.deb’

Please download sdkmanager_1.9.3-10904_amd64.deb in your Ubuntu host and switch to that directory and run the following command instead.

$ sudo apt-get install ./sdkmanager_1.9.3-10904_amd64.deb --allow-unauthenticated

SDKM is OK. There is still NO_PUBKEY error as before.
Err:1 file:/var/cuda-repo-cross-aarch64-ubuntu2004-11-4-local InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 838B8CC0647817BB
Err:2 file:/var/cuda-repo-ubuntu2004-11-4-local InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 5A6421FDA7CFCDD0

It is working after installing from local with --allow-unauthenticated. Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.