![E: 存储库“file:/var/nv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216 Release”没有 Release 文件](https://linux22.com/image/1015974/E%3A%20%E5%AD%98%E5%82%A8%E5%BA%93%E2%80%9Cfile%3A%2Fvar%2Fnv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216%20Release%E2%80%9D%E6%B2%A1%E6%9C%89%20Release%20%E6%96%87%E4%BB%B6.png)
我想删除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
以使其不弹出此错误?
答案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
以添加密钥。