After installing OpenVAS on Kali linux, ran gvm-setup
command to setup GVM as per instructions: https://linuxhint.com/install-openvas-kali-linux/
However, the following error ocurred:
ERROR: The default postgresql version is not 13 required by libgvmd
Error: Use pg_upgradecluster to update your postgres cluster
So, I checked the version of PostgreSQL installed by:
$ su postgres
$ psql --version
psql (PostgreSQL) 13.2 (Debian 13.2-1)
The version was 13.
How can I complete the gvm-setup
?
gvm-setup
will look for PostgreSQL onport 5432
. If you have more than one version of PostgreSQL installed, they will be assigned incremental port numbers starting at 5432. To check for other versions of PostgreSQL, you can look in the/etc/postgresql/
directory. You may see multiple directories, corresponding to the PostgreSQL versions you have installed.You should go into each version and edit the
postgresql.conf
file to change the port number of PostgreSQL 13 to 5432, and assign other port numbers to the other versions. So if you had PostgreSQL 12 and 13 installed:Edit the PostgreSQL 12 config file
find the line
port = 5432
and change to:Edit the PostgreSQL 13 config file
find the line
port = 5433
and change to:Finally restart PostgreSQL:
and then run gvm-setup again