E: 存储库“file:/var/nv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216 Release”没有 Release 文件

E: 存储库“file:/var/nv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216 Release”没有 Release 文件

我想删除tensorRT 7

/var/nv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216

当我安装时它曾经得到更新tensorRT 6

sudo apt-get update

所以我删除了sudo rm -rf /var/nv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216

然后当我尝试使用sudo apt-get update

我收到此错误消息并且更新停止

Reading package lists... Done                                      
E: The repository 'file:/var/nv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216  Release' does not have a Release file.
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.

sudo apt-get clean不起作用

我该如何重置sudo apt-get update以使其不弹出此错误?

安装 TensorRT 的源代码

答案1

我的错,我不得不再次安装sudo dpkg -i nv-tensorrt-repo-ubuntu1804-cuda10.2-trt7.0.0.11-ga-20191216_1-1_amd64.deb

然后清除包sudo dpkg -P nv-tensorrt-repo-ubuntu1804-cuda10.2-trt7.0.0.11-ga-20191216

效果很好

答案2

重新下载并重新安装解决了这个问题。我还必须运行sudo apt-key add /var/nv-tensorrt-repo-ubuntu2004-cuda11.3-trt8.0.3.4-ga-20210831/7fa2af80.pub以添加密钥。

相关内容