我最近尝试过安装Docker,但自从安装以来,我就不能再更新kali-linux了。
这是我输入"sudo apt更新“之后的输出。
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 https://download.docker.com/linux/debian kali-rolling InRelease
Err:4 https://download.docker.com/linux/debian kali-rolling Release
404 Not Found [IP: 13.227.73.95 443]
Hit:3 http://mirrors.ocf.berkeley.edu/kali kali-rolling InRelease
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/debian kali-rolling 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.有什么建议吗?谢谢!
发布于 2021-01-23 23:27:30
在源代码中使用debian代码:
按以下方式编辑/etc/apt/sources.list:
deb [arch=amd64] https://download.docker.com/linux/debian buster stable或使用以下命令:
printf "%s\n" "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" |\
sudo tee /etc/apt/sources.list.d/docker-ce.list添加gpg键:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -安装docker-ce:
sudo apt update
sudo apt install docker-ce我已经更新了Kali Linux文档,现在您可以安全地添加这个答案中描述的。下面是如何安装它:
在Kali Linux docker-ce上安装Docker可以使用Debian buster代码从Docker存储库安装。将Docker存储库添加到sources.list中
printf "%s\n" "deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable" |\
sudo tee /etc/apt/sources.list.d/docker-ce.list导入gpg键:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -指纹检查:
sudo apt-key fingerprint 0EBFCD88安装最新版本的docker-ce:
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io参考文献
发布于 2023-04-13 01:45:40
需要记住的一点是,Kali Linux是基于Debian的,因此我们需要使用Debian当前的稳定版本(尽管Kali Linux是一个滚动发行版)。在撰写本报告时(2021年12月),它的“斗牛眼”
如您所见,Debian的稳定版本(截至2023年4月)是bullseye,而不是kali-rolling。当您访问这个URL https://download.docker.com/linux/debian/dists/时,您甚至不会在其中看到任何kali-rolling。
因此,如果要删除错误,应打开以下文件:
/etc/apt/sources.list.d/docker.list/etc/apt/sources.list.d/docker-ce.list并将所有出现的kali-rolling替换为bullseye。
例如,在我的例子中,我有:
/etc/apt/sources.list.d/docker.list:deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg]
https://download.docker.com/linux/debian bullseye stable/etc/apt/sources.list.d/docker-ce.list:deb https://download.docker.com/linux/debian bullseye stablehttps://unix.stackexchange.com/questions/630643
复制相似问题