Ich habe dieses Installationsscript für Docker.
# update packages
sudo apt-get update
# add pgp key for signed docker repository
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# update again
sudo apt-get update
# install docker
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
Wenn ich das in Kali Linux ausführe kommen aber einige Fehlermeldungen und Docker wird nicht installiert.
Hit:1 http://http.kali.org/kali kali-rolling InRelease
Ign:2 https://download.docker.com/linux/ubuntu kali-rolling InRelease
Ign:3 https://download.docker.com/linux/ubuntu codename: InRelease
Err:4 https://download.docker.com/linux/ubuntu kali-rolling Release
404 Not Found [IP: 18.66.27.34 443]
Err:5 https://download.docker.com/linux/ubuntu codename: Release
404 Not Found [IP: 18.66.27.34 443]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu 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.
E: The repository 'https://download.docker.com/linux/ubuntu codename: 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.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
apt-transport-https is already the newest version (2.9.28+kali2).
ca-certificates is already the newest version (20241223).
curl is already the newest version (8.12.0+git20250209.89ed161+ds-1).
curl set to manually installed.
gnupg-agent is already the newest version (2.2.46-1).
software-properties-common is already the newest version (0.99.30-4.1).
0 upgraded, 0 newly installed, 0 to remove and 2040 not upgraded.
sudo: apt-key: command not found
sudo: apt-key: command not found
Repository: 'deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable'
Description:
Archive for codename: xenial components: stable
More info: https://download.docker.com/linux/ubuntu
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-kali-rolling.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-kali-rolling.list
Hit:1 http://http.kali.org/kali kali-rolling InRelease
Ign:2 https://download.docker.com/linux/ubuntu kali-rolling InRelease
Ign:3 https://download.docker.com/linux/ubuntu codename: InRelease
Get:4 https://download.docker.com/linux/ubuntu xenial InRelease [66.2 kB]
Err:4 https://download.docker.com/linux/ubuntu xenial InRelease
Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key 7EA0A9C3F273FCD8, which is needed to verify signature.
Err:5 https://download.docker.com/linux/ubuntu kali-rolling Release
404 Not Found [IP: 18.66.27.14 443]
Err:6 https://download.docker.com/linux/ubuntu codename: Release
404 Not Found [IP: 18.66.27.14 443]
Reading package lists... Done
W: GPG error: https://download.docker.com/linux/ubuntu xenial InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key 7EA0A9C3F273FCD8, which is needed to verify signature.
E: The repository 'https://download.docker.com/linux/ubuntu xenial InRelease' is not signed.
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.
E: The repository 'https://download.docker.com/linux/ubuntu 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.
E: The repository 'https://download.docker.com/linux/ubuntu codename: 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.
Ign:1 https://download.docker.com/linux/ubuntu kali-rolling InRelease
Hit:2 http://http.kali.org/kali kali-rolling InRelease
Ign:3 https://download.docker.com/linux/ubuntu codename: InRelease
Get:4 https://download.docker.com/linux/ubuntu xenial InRelease [66.2 kB]
Err:4 https://download.docker.com/linux/ubuntu xenial InRelease
Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key 7EA0A9C3F273FCD8, which is needed to verify signature.
Err:5 https://download.docker.com/linux/ubuntu kali-rolling Release
404 Not Found [IP: 18.66.27.21 443]
Err:6 https://download.docker.com/linux/ubuntu codename: Release
404 Not Found [IP: 18.66.27.21 443]
Reading package lists... Done
W: GPG error: https://download.docker.com/linux/ubuntu xenial InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key 7EA0A9C3F273FCD8, which is needed to verify signature.
E: The repository 'https://download.docker.com/linux/ubuntu xenial InRelease' is not signed.
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.
E: The repository 'https://download.docker.com/linux/ubuntu 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.
E: The repository 'https://download.docker.com/linux/ubuntu codename: 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.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package docker-ce 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
Package docker-ce-cli 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
E: Package 'docker-ce' has no installation candidate
E: Package 'docker-ce-cli' has no installation candidate
E: Unable to locate package containerd.io
E: Couldn't find any package by glob 'containerd.io'
E: Couldn't find any package by regex 'containerd.io'
Wie kann ich Docker auf Kali Linux installieren?