kail升级报错:"E: 仓库 “https://download.docker.com/linux/debian kali-rolling Release” 没有 Release 文件。

root@brother:~# sudo apt update
命中:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease
忽略:2 https://download.docker.com/linux/debian kali-rolling InRelease
错误:3 https://download.docker.com/linux/debian kali-rolling Release
  404  Not Found [IP: 65.8.85.83 443]
正在读取软件包列表... 完成
E: 仓库 “https://download.docker.com/linux/debian kali-rolling Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
root@brother:~# cd /etc/apt/sources.list.d
root@brother:/etc/apt/sources.list.d# ls
docker.list
root@brother:/etc/apt/sources.list.d# rm docker.list 
root@brother:/etc/apt/sources.list.d# apt-get update && apt-get upgrade

解决方案:

root@brother:~# cd /etc/apt/sources.list.d
root@brother:/etc/apt/sources.list.d# ls
docker.list
root@brother:/etc/apt/sources.list.d# rm docker.list 
root@brother:/etc/apt/sources.list.d# apt-get update && apt-get upgrade
posted @ 2021-04-30 09:24  东坡肉肉君  阅读(7052)  评论(2编辑  收藏  举报