[Seek Help] 无法安装docker,借助容器也不行
Tofloor
poster avatar
艾丝妲单推人
deepin
2023-12-17 18:52
Author
fsl3118@fsl3118-PC:/media/fsl3118/Document/CTF/AFlag/thinkshop_0d11a7bb36144142e9236159c6152cfe$ docker load < thinkshop.tar
bash: docker:未找到命令
fsl3118@fsl3118-PC:/media/fsl3118/Document/CTF/AFlag/thinkshop_0d11a7bb36144142e9236159c6152cfe$ sudo apt install docker
请输入密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成E: 无法定位软件包 docker
fsl3118@fsl3118-PC:/media/fsl3118/Document/CTF/AFlag/thinkshop_0d11a7bb36144142e9236159c6152cfe$ distrobox-enter my-kali-linux
Container my-kali-linux is not running.
Starting container my-kali-linux
run this command to follow along:podman logs -f my-kali-linuxStarting container...                           [ OK ]
Installing basic packages...                    [ OK ]
Setting up read-only mounts...                  [ OK ]
Setting up read-write mounts...                 [ OK ]
Setting up host's sockets integration...        [ OK ]
Integrating host's themes, icons, fonts...      [ OK ]Setting up package manager exceptions...        [ OK ]Setting up dpkg exceptions...                   [ OK ]Setting up apt hooks...                         [ OK ]Setting up sudo...                              [ OK ]Setting up groups...                            [ OK ]Setting up users...                             [ OK ]Integrating host's themes, icons, fonts...      [ OK ]Setting up package manager exceptions...        [ OK ]Setting up dpkg exceptions...                   [ OK ]Setting up apt hooks...                         [ OK ]Setting up sudo...                              [ OK ]Setting up groups...                            [ OK ]Setting up users...                             [ OK ]Executing init hooks...                         [ OK ]Container Setup Complete!
┏━(Message from Kali developers)
┃
┃ This is a minimal installation of Kali Linux, you likely
┃ want to install supplementary tools. Learn how:
┃ ⇒ https://www.kali.org/docs/troubleshooting/common-minimum-setup/
┃
┗━(Run: “touch ~/.hushlogin” to hide this message)
fsl3118@my-kali-linux:/media/fsl3118/Document/CTF/AFlag/thinkshop_0d11a7bb36144142e9236159c6152cfe$ sudo apt install docker
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package docker is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
wmdocker:i386 wmdockerE: Package 'docker' has no installation candidate

急!强网杯还有6小时就结束了!!!

打强网杯需要,但是没想到竟然装不了docker!!!

Reply Favorite View the author
All Replies
fuuko
deepin
2023-12-17 19:01
#1

kali?confused

Reply View the author
艾丝妲单推人
deepin
2023-12-17 19:04
#2
fuuko

kali?confused

确实是kali容器,如你所见,我是ctf玩家

Reply View the author
爱开发
deepin
2023-12-17 19:04
#3

?官方的命令安装就行了啊。官方有阿里云安装选项。你这装法没见过。

我写了个安装脚本,可以参考下

https://framagit.org/jetsung/devenv/-/blob/main/sh/docker.sh?ref_type=heads



export DOWNLOAD_URL="https://mirrors.bfsu.edu.cn/docker-ce"
curl -fsSL https://get.docker.com | sh
cat > cat /etc/apt/sources.list.d/docker.list 

deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bookworm stable

Reply View the author
raspbian
deepin
2023-12-17 22:27
#4

安装docker直接去看官方文档啊

Reply View the author
观察者
deepin
2023-12-18 00:04
#5

下载个kali lxc rootfs 镜像用bwarp 或者 chroot 进去,应急一下没问题把?

Reply View the author
兆兆嘟嘟嘟
deepin
2023-12-18 01:43
#6

包名不是docker,是docker.io。终端运行 sudo apt install docker.io

Reply View the author
mozixun
deepin
2023-12-20 05:30
#7

用shenmo的ACE容器呢

Reply View the author
w1887
deepin
2024-01-04 09:47
#8

sudo apt install docker.io 或者sudo apt install docker-ce,docker.io是debian/ubuntu 官方基于docker源码封装的版本,ce是docker.com发布的社区版本

Reply View the author