Openvas on Ubuntu 16.04
Getting the following error when trying to sync the NVT feed for the first time (sudo openvas-nvt-sync) The /var/lib/openvas/plugins directory is empty? Any ideas?
Saving to: '/tmp/openvas-nvt-sync.sJdaNWNZel/openvas-feed-2019-03-03-26199.tar.bz2'
/tmp/openvas-nvt-sync 100%[========================>] 12.24K --.-KB/s in 0.001s
2019-03-03 10:28:17 (11.3 MB/s) - '/tmp/openvas-nvt-sync.sJdaNWNZel/openvas-feed-2019-03-03-26199.tar.bz2' saved [12536/12536]
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
[i] Checking dir: ok
[i] Checking MD5 checksum: /usr/bin/md5sum: /var/lib/openvas/plugins/md5sums: No such file or directory
not ok
Error: md5sums not correct. Your NVT collection might be broken now.
1 Reply
It appears that openvas-nvt-sync
was deprecated and replaced by greenbone-nvt-sync
, which is available in the latest version: OpenVAS 9
To avoid conflict you’ll want to remove the currently installed version and ensure you’re using the latest.
sudo apt purge openvas -y
sudo apt install openvas9 -y
To avoid Database is wrong version
errors:
openvasmd --update
openvasmd --migrate
Use greenbone
instead of openvas
in the sync commands:
sudo greenbone-nvt-sync
sudo greenbone-scapdata-sync
sudo greenbone-certdata-sync
Restart scanner and manager services, and rebuild the OpenVAS database:
sudo systemctl restart openvas-scanner
sudo systemctl restart openvas-manager
sudo openvasmd --rebuild --progress
After configuring remote access and user authentication, login at https://<LinodeIP>:4000
and you should be all set.