You will see this error when you have two versions of Postgresql (13 and 14) but OpenVAS works by using version 13 on port 5432.
The problem is caused by a port mapping issue. By default, Kali comes with postgres 14, but OpenVAS installs version 13. Postgres assigns a higher port (5433, in this case) for additional versions on the system.
But OpenVAS is still looking for 5432.
A quick solution is to edit the ” port = ” lines.
1) here change the port to 5433 (or anything else!):
sudo nano /etc/postgresql/14/main/postgresql.conf
2) and on version 13, change to 5432
sudo nano /etc/postgresql/13/main/postgresql.conf
3) Then restart postgres using:
sudo systemctl restart PostgreSQL
Reboot and try installing it again!
That’s it.
Dan D.