龙空技术网

linux kali安装docker报错Unable to locate package docker

思源Edward 62

前言:

而今各位老铁们对“linux安装docker报错”可能比较关心,看官们都需要了解一些“linux安装docker报错”的相关内容。那么小编同时在网上收集了一些有关“linux安装docker报错””的相关内容,希望我们能喜欢,大家一起来了解一下吧!

kali安装docker报错Unable to locate package docker

kali@kali:~$ sudo apt install docker docker-compose

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Unable to locate package docker

E: Unable to locate package docker-compose

kali@kali:~$

更新软件源

kali@kali:~$ sudo apt-get update

Get:1 kali-rolling InRelease [30.5 kB]

Get:2 kali-rolling InRelease [30.5 kB]

Get:3 kali-rolling/contrib Sources [64.8 kB]

Get:4 kali-rolling/main Sources [14.0 MB]

Get:5 kali-rolling/non-free Sources [127 kB]

Get:6 kali-rolling/contrib Sources [64.8 kB]

Get:7 kali-rolling/main Sources [14.0 MB]

Get:8 kali-rolling/non-free Sources [127 kB]

Get:9 kali-rolling/main amd64 Packages [17.7 MB]

Get:10 kali-rolling/non-free amd64 Packages [199 kB]

Get:11 kali-rolling/contrib amd64 Packages [108 kB]

Get:12 kali-rolling/main amd64 Packages [17.7 MB]

Get:13 kali-rolling/non-free amd64 Packages [199 kB]

Get:14 kali-rolling/contrib amd64 Packages [108 kB]

Fetched 64.5 MB in 12s (5,378 kB/s)

Reading package lists... Done

kali@kali:~$

再次安装docker docker-compose

kali@kali:~$ sudo apt install docker docker-compose #再次安装

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

kali@kali:~$ docker --version

Docker version 20.10.5+dfsg1, build 55c4c88

kali@kali:~$

备注:

试验环境

kali@kali:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Kali

Description: Kali GNU/Linux Rolling

Release: 2020.2

Codename: kali-rolling

kali@kali:~$

软件源:

kali@kali:~$ cat /etc/apt/sources.list

# See

# deb kali-rolling main contrib non-free

# Additional line for source packages

# deb-src kali-rolling main contrib non-free

#中科大

deb kali-rolling main non-free contrib

deb-src kali-rolling main non-free contrib

#阿里云

deb kali-rolling main non-free contrib

deb-src kali-rolling main non-free contrib

#清华大学

# deb kali-rolling main contrib non-free

# deb-src kali-rolling main contrib non-free

kali@kali:~$

标签: #linux安装docker报错