我已将 Kali 2019.4 安装到 Virtualbox 机器(4GB、2-CPU)中,并进行了全面更新和升级。
我正在尝试以 root 身份直接从 Kali 存储库 (apt install openvas) 安装 openvas,但无法完成安装过程。
下载并解压后,在“处理”阶段(约 97%),安装出现以下错误:
<...>
Setting up openvas-manager (7.0.3-1) ...
Creating openvas-scanner's certificate files
ERROR: Failed to create self signed certificate, see /tmp/tmp.dqbpol09MD/openvas-manage-certs.log for details. Aborting.
dpkg: error processing package openvas-manager (--configure):
installed openvas-manager package post-installation script subprocess returned error exit status 1
Setting up openvas-cli (1.4.5-2) ...
Setting up openvas-scanner (5.1.3-2) ...
update-rc.d: We have no instructions for the openvas-scanner init script.
update-rc.d: It looks like a non-network service, we enable it.
dpkg: dependency problems prevent configuration of openvas:
openvas depends on openvas-manager (>= 7.0.2-4); however:
Package openvas-manager is not configured yet.
dpkg: error processing package openvas (--configure):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.24-1) ...
Processing triggers for mime-support (3.64) ...
Processing triggers for gnome-menus (3.32.0-1) ...
Processing triggers for libc-bin (2.29-2) ...
Processing triggers for systemd (242-7) ...
Processing triggers for man-db (2.8.7-3) ...
Processing triggers for fontconfig (2.13.1-2+b1) ...
Processing triggers for tex-common (6.12) ...
Running updmap-sys. This may take some time... done.
Running mktexlsr /var/lib/texmf ... done.
Building format(s) --all.
This may take some time... done.
Errors were encountered while processing:
openvas-manager
openvas
E: Sub-process /usr/bin/dpkg returned an error code (1)
如果我检查“/tmp/tmp.dqbpol09MD/openvas-manage-certs.log”,我会得到:
Generating a 3072 bit RSA private key...
configFileLoad: No such file or directory
Error loading template: /tmp/tmp.dqbpol09MD/caopenvas-cert.cfg
检查“/tmp/tmp.dqbpol09MD/caopenvas-cert.cfg”,我有:
expiration_days = 3652
country = "DE"
locality = "Osnabrueck"
organization = "OpenVAS Users"
unit = "Certificate Authority for kali.' " ' ' "
ca
cert_signing_key
crl_signing_key
但在这里我不知道该检查什么......
国家和地区是错误的(我来自爱尔兰)但也许它们是默认值。
看起来“unit”、“ca”、“cert_signing_key”和“crl_signing_key”没有设置,但也许那时安装被中断了。
我需要检查什么?问题似乎与证书创建有关,我可以在安装之前创建一个证书并将其传递给安装程序吗?
谢谢
编辑
我重新安装了机器,这个问题不再出现。这次我使用官方 ISO 而不是官方 vagrant 文件安装了 Kali,也许这就是问题所在。