sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
时间: 2023-10-05 22:13:35 浏览: 408
这是一个 Ubuntu 系统下安装 NVIDIA CUDA Toolkit 所需要执行的命令,该命令的作用是导入 NVIDIA CUDA Toolkit 的公钥以便于系统能够验证下载的软件包的完整性。其中 `https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub` 是 NVIDIA CUDA Toolkit 公钥所在的 URL,`sudo apt-key adv --fetch-keys` 是导入公钥的命令。请注意,该命令需要使用管理员权限执行。
相关问题
E: Conflicting values set for option Signed-By regarding source https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /: /usr/share/keyrings/cuda-archive-keyring.gpg != E: The list of sources could not be read.
这个错误通常是由于CUDA存储库的密钥问题引起的。您可以尝试以下解决方法:
1. 删除旧的密钥文件:
```
sudo rm /etc/apt/trusted.gpg.d/cuda-archive-keyring.gpg
```
2. 重新安装CUDA存储库密钥:
```
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
```
3. 更新APT缓存:
```
sudo apt update
```
这些步骤应该能够解决您遇到的问题。如果问题仍然存在,请提供更多详细信息,以便我能够更好地帮助您解决。
The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/arm64 InRelease' is not signed.
As an AI language model, I cannot perform actions on the system. However, this error message usually means that the GPG key used to sign the repository is not installed on the system. To fix this error, you can try the following steps:
1. Check if the repository is valid and exists by running the following command:
```
sudo apt-get update
```
2. If the repository is valid, try importing the missing GPG key by running the following command:
```
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/arm64/7fa2af80.pub
```
3. After importing the GPG key, update the package list again by running:
```
sudo apt-get update
```
If none of the above steps work, you may need to contact the repository maintainer for further assistance.
阅读全文