Skip to content

Openvas error postgresql version is not 13 required by libgvmd

If you regularly update your Kali machine and use Openvas you could run into this error: the default postgresql version is not 13 required by libgvmd

It’s because there are two versions of postgresql running at the same time. Since postgresql is using a TCP port it cannot be the same port for both versions. Openvas is expecting version 13 running on TCP port 5432. When you get the error possibly version 12 is using this port. So the fix is to change the ports by editing the following files:

sudo nano /etc/postgresql/13/main/postgresql.conf and change the port to 5432.
sudo nano /etc/postgresql/12/main/postgresql.conf and change the port to 5433 (or any other port which is free).
sudo systemctl restart postgresql

Then start the Openvas service and hopefully it will run without any errors.

UPDATE 2022: check out this blog for the same error on postgresql version 15

21 thoughts on “Openvas error postgresql version is not 13 required by libgvmd”

  1. when i print this command “sudo nano /etc/postgresql/12/main/postgresql.conf ” i have another error which is
    [ Directory ‘/etc/postgresql/12/main’ does not exist ]

Leave a Reply

Your email address will not be published. Required fields are marked *