我想删除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
以添加密钥。