GVM Report outdated / end-of-life Scan Engine 22.7 → 23.0

GVM Report outdated / end-of-life Scan Engine 22.4 → 22.7 - external storage 1 2023

Version of installed component: 22.7.3 (Installed component: openvas-libraries on OpenVAS <= 9, openvas-scanner on Greenbone Community Edition >= 10)
Latest available openvas-scanner version: 23.0.1
Reference URL(s) for the latest available version: https://forum.greenbone.net/t/greenbone-community-edition-22-4-stable-initial-release-2022-07-25/12638

https://greenbone.github.io/docs/latest/changelog.html

kali-rolling

sudo gvm-stop

sudo apt update

apt list --upgradable

gvm/kali-rolling 23.11.2 all [upgradable from: 22.5.0~kali4]
openvas-scanner/kali-rolling 23.0.1-1 amd64 [upgradable from: 22.7.3-0kali2]
postgresql/kali-rolling 16+260 all [upgradable from: 15+252]

sudo apt upgrade

apt update & upgrade を実行してもアップデートされない場合の解決法 2022

dist-upgradeも必要

sudo apt dist-upgrade

https://medium.com/@gembit.soultan/how-to-upgrade-postgresql-15-to-postgresql-16-using-pg-upgradeclusters-in-ubuntu-22-04-c9f279c5d3ab

postgresql-16-pg-gvm → 15 用の extension は削除されている

postgresql 15 to 16

sudo pg_lsclusters
Ver Cluster Port Status Owner    Data directory              Log file
15  main    5432 online postgres /var/lib/postgresql/15/main /var/log/postgresql/postgresql-15-main.log
16  main    5433 online postgres /var/lib/postgresql/16/main /var/log/postgresql/postgresql-16-main.log

sudo pg_dropcluster 16 main --stop

sudo pg_upgradecluster 15 main

sudo pg_dropcluster 15 main

sudo apt purge postgresql-15 postgresql-client-15

migrate

sudo gvm-stop

sudo runuser -u _gvm -- gvmd --migrate

sudo gvm-check-setup
...
It seems like your GVM-23.11.0 installation is OK.

sudo gvm-start

Debian 11 bullseye + GVM source install

Debian 11.7 → 11.9

apt update
apt upgrade

https://greenbone.github.io/docs/latest/changelog.html
Latest
gvm-libs 22.8.0
gvmd 23.2.0
pg-gvm 22.6.4
gsad 22.9.0
GSA 23.0.0
OpenVAS Scanner 23.0.1

https://greenbone.github.io/docs/latest/22.4/source-build/index.html

  • ビルド手順は Debian 12 bookworm, postgresql 15 だが Debian 11 bullseye, postgresql 13 でも問題なかった
  • openvasd(openvas-scanner) のビルドに rust(cargo)が必要になった
  • systemd notus-scanner なくなって openvasd 追加

プロセス停止

sudo systemctl stop gsad
sudo systemctl stop gvmd
sudo systemctl stop ospd-openvas
sudo systemctl stop notus-scanner

※プロセス実行中だとインストール手順の sudo cp -rv で
cp cannot create regular file text file busy
でファイル置き換えに失敗する。
cpとmvとinodeの話 #Linux - Qiita 2015

https://greenbone.github.io/docs/latest/22.4/source-build/index.html

の手順でインストール

sudo runuser -u gvm -- gvmd --migrate

sudo systemctl start ospd-openvas
sudo systemctl start gvmd
sudo systemctl start gsad
sudo systemctl start openvasd