私は最近Dockerをインストールしようとしましたが、インストールした後にkali-linuxを更新できなくなりました。
これは「sudo apt update」と入力した後の出力です。
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 https://download.docker.com/linux/debian kali-rolling InRelease
Err:4 https://download.docker.com/linux/debian kali-rolling Release
404 Not Found [IP: 13.227.73.95 443]
Hit:3 http://mirrors.ocf.berkeley.edu/kali kali-rolling InRelease
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/debian 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.
どんな提案がありますか?ありがとうございます!
ベストアンサー1
ソースにdebian
コード名を使用してください。
/etc/apt/sources.list
次のように編集してください。
deb [arch=amd64] https://download.docker.com/linux/debian buster stable
または、次のコマンドを使用します。
printf "%s\n" "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" |\
sudo tee /etc/apt/sources.list.d/docker-ce.list
GPGキーを追加:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
インストールするdocker-ce
:
sudo apt update
sudo apt install docker-ce
修正する
更新しましたカリ Linux ドキュメントこれで、この回答で説明されているようにDebian docker-ceリポジトリを安全に追加できます。インストール方法は次のとおりです。
Kali Linuxへのdocker-ceのインストール
docker-ceはDebian Busterコード名を使用してDockerリポジトリからインストールできます。
Sources.listにDockerリポジトリを追加します。
printf "%s\n" "deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable" |\
sudo tee /etc/apt/sources.list.d/docker-ce.list
GPGキーのインポート:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
指紋確認:
sudo apt-key fingerprint 0EBFCD88
最新バージョンのdocker-ceをインストールします。
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
引用する