<返回更多

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

2021-06-25  今日头条  思源Edward
加入收藏

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 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [30.5 kB]

Get:2 http://mirrors.aliyun.com/kali kali-rolling InRelease [30.5 kB]

Get:3 http://mirrors.ustc.edu.cn/kali kali-rolling/contrib Sources [64.8 kB]

Get:4 http://mirrors.ustc.edu.cn/kali kali-rolling/main Sources [14.0 MB]

Get:5 http://mirrors.aliyun.com/kali kali-rolling/non-free Sources [127 kB]

Get:6 http://mirrors.aliyun.com/kali kali-rolling/contrib Sources [64.8 kB]

Get:7 http://mirrors.aliyun.com/kali kali-rolling/main Sources [14.0 MB]

Get:8 http://mirrors.ustc.edu.cn/kali kali-rolling/non-free Sources [127 kB]

Get:9 http://mirrors.ustc.edu.cn/kali kali-rolling/main amd64 Packages [17.7 MB]

Get:10 http://mirrors.ustc.edu.cn/kali kali-rolling/non-free amd64 Packages [199 kB]

Get:11 http://mirrors.ustc.edu.cn/kali kali-rolling/contrib amd64 Packages [108 kB]

Get:12 http://mirrors.aliyun.com/kali kali-rolling/main amd64 Packages [17.7 MB]

Get:13 http://mirrors.aliyun.com/kali kali-rolling/non-free amd64 Packages [199 kB]

Get:14 http://mirrors.aliyun.com/kali 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:

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

 

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 https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/

# deb http://http.kali.org/kali kali-rolling main contrib non-free

 

# Additional line for source packages

# deb-src http://http.kali.org/kali kali-rolling main contrib non-free

#中科大

deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

#阿里云

deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib

deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib

#清华大学

# deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free

kali@kali:~$

声明:本站部分内容来自互联网,如有版权侵犯或其他问题请与我们联系,我们将立即删除或处理。
▍相关推荐
更多资讯 >>>