在较新版本的Debian中,apt会默认添加--allow-releaseinfo-change选项,因此不需要手动添加也可以更新包信息。而在较旧版本的Debian中,需要手动添加该选项才能更新包信息。以下是在不同版本的Debian中使用“apt update --allow-releaseinfo-change”的示例代码:
在Debian 9中使用“apt update --allow-releaseinfo-change”:
sudo apt-get update --allow-releaseinfo-change
在Debian 10及以上中使用“apt update”即可。
上一篇:不同版本的cuda可以兼容吗