问题:  执行 sudo apt-get update 命令时报错:

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

解决方法:

打开位置为: 位于本机/计算机//etc/apt/sources.list.d 的文件夹,看到有docker.list.save;

执行命令:

sudo mv docker.list docker.list.save

可能会有提示:

(base)本机名:/etc/apt/sources.list.d$ sudo mv docker.list docker.list.save
mv: 无法获取'docker.list' 的文件状态(stat): 没有那个文件或目录

没关系,是正常的,忽略就好,重复执行

sudo apt-get upda

就可以了

(base)本机名:~$ sudo apt-get update
[sudo] 密码: 
命中:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
命中:2 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease               
命中:3 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease             
命中:4 http://mirrors.aliyun.com/ubuntu bionic-security InRelease              
命中:5 http://packages.microsoft.com/repos/code stable InRelease               
命中:6 https://dl.google.com/linux/chrome/deb stable InRelease                 
命中:7 https://packages.microsoft.com/repos/edge stable InRelease              
命中:8 http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic InRelease         
正在读取软件包列表... 完成 

问题解决.

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐