我正在尝试在 Kali Linux 中安装 Falco。官方下载文档可以找到这里。
当我尝试执行命令时
apt-get update -y
我收到以下错误。
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.
当我运行命令时:
apt-get install -y falco
我收到以下错误:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package falco
我尝试更新整个操作系统,甚至安装了 Linux 头文件,但仍然一样。我尝试以 root 用户和新用户身份执行此操作。错误相同。如何在 Kali Linux 中安装 Falco?
答案1
您遇到了两个错误:
1). 第一个来自docker-ce仓库,由于docker-ce不支持kali-rolling
codename,因此使用以下命令来解决问题:
sudo rm -rf /etc/apt/sources.list.d/*
然后正确安装:在 Kali Linux 上安装 Docker
printf "%s\n" "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" \
| sudo tee /etc/apt/sources.list.d/docker-ce.list
curl -fsSL https://download.docker.com/linux/debian/gpg \
| sudo apt-key add -
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io
2). 第二条错误信息来自flaco仓库。
要安装flaco
使用Linux 通用(二进制包)方法 :
curl -L -O https://dl.bintray.com/falcosecurity/bin/x86_64/falco-0.27.0-x86_64.tar.gz
tar -xvf falco-0.27.0-x86_64.tar.gz
cp -R falco-0.27.0-x86_64/* /
echo "alias flaco='falco-0.27.0-x86_64/usr/bin/falco'" >> ~/.bashrc
source ~/.bashrc