在root下输入命令

apt update

会报以下错误

E: 仓库 “https://download.docker.com/linux/ubuntu bullseye Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

解决方案:

进入root后

root@xxx:~# cd /etc/apt/sources.list.d

root@xxx:/etc/apt/sources.list.d# ls
docker.list

root@xxx:/etc/apt/sources.list.d# rm docker.list 

root@xxx:/etc/apt/sources.list.d# apt-get update && apt-get upgrade

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐