自測kali安裝docker不能用阿里雲的映象方法,在寫入軟體資訊時會報如下錯,無法實現按照ubuntu系統安裝docker的步驟繼續進行。
寫入軟體源資訊
root@master:~# add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
錯誤展示
traceback (most recent call last):
file "/usr/bin/add-apt-repository", line 95, in sp = softwareproperties(options=options)
file "/usr/lib/python3/dist-packages/softwareproperties/softwareproperties.py", line 109, in __init__
self.reload_sourceslist()
file "/usr/lib/python3/dist-packages/softwareproperties/softwareproperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
file "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id, self.codename))
aptsources.distro.nodistrotemplateexception: error: could not find a distribution template for kali/kali-rolling
如下是安裝成功的解決方案
第
一、檢視系統的版本
root@master:~# cat /proc/version
linux version 5.3.0-kali3-amd64 ([email protected]) (gcc version 9.2.1 20191130 (debian 9.2.1-21)) #1 smp debian 5.3.15-1kali1 (2019-12-09)
結果是debian 9系列,這個版本的也叫stretch
containerd.io_1.2.6-3_amd64.deb
docker-ce-cli_19.03.5~3-0~debian-stretch_amd64.deb
docker-ce_19.03.5~3-0~debian-stretch_amd64.deb
root@master:~# dpkg -i *.deb
第
三、開啟服務
root@master:~# systemctl enable docker && systemctl start docker
第
四、驗證
root@master:~# docker info
client:
debug mode: false
server:
containers: 0
running: 0
paused: 0
stopped: 0
images: 0
server version: 19.03.5
storage driver: overlay2
backing filesystem: extfs
supports d_type: true
native overlay diff: true
logging driver: json-file
cgroup driver: cgroupfs
plugins:
volume: local
network: bridge host ipvlan macvlan null overlay
log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
swarm: inactive
runtimes: runc
default runtime: runc
init binary: docker-init
containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
init version: fec3683
security options:
seccomp
profile: default
kernel version: 5.3.0-kali3-amd64
operating system: kali gnu/linux rolling
ostype: linux
architecture: x86_64
cpus: 4
total memory: 7.645gib
name: master
id: ylyj:ykpl:cx6g:4pkd:6ed4:yafi:3efq:bxwp:dlw7:i4t4:f2in:6**v
docker root dir: /var/lib/docker
debug mode: false
registry:
labels:
experimental: false
insecure registries:
127.0.0.0/8
live restore enabled: false
有此顯示,安裝成功 kali2019 4試用記錄
問題一 中文亂碼 1 設定locales。dpkg reconfigure locales 進入圖形介面,選中en us.utf 8 utf 8和zh cn.utf 8 utf 8 空格是選擇,tab是切換,是選中 並將en us.utf 8選為預設。這需要注意,出現圖形介面後,確定在左邊!2 安裝...
kali 2019 4中文亂碼解決方法
1.更換源 首先在終端輸入 中科大deb kali rolling main non free contrib 編輯源之後,apt get update apt get upgrade apt get clean 更新好源和更新軟體 2.在命令列輸入 dpkg reconfigure locales...
docker學習 centos安裝docker
1.更新yum源 yum update2.安裝依賴 3.設定yum源 使用ustc,也可以使用阿里雲的 yum config manager add repo4.安裝docker yum install y docker ce通過docker v檢視,如果檢視到版本號,說明安裝成功 5.設定ustc...