From time to time the error from the subject can appear while trying to finish the OpenVAS installation (on your Kali instance).

Basically, after issuing the sudo gvm-setup command, the following messages may appear:


[>] Starting PostgreSQL service
[-] ERROR: The default PostgreSQL version (13) is not 14 that is required by libgvmd
[-] ERROR: Use pg_upgradecluster to update your PostgreSQL cluster


One of the most probable reasons what may be preventing the service start is the port configuration - the following changes have to be done:

  1. sudo nano /etc/postgresql/14/main/postgresql.conf - search for port and change it to 5432;
  2. sudo nano /etc/postgresql/13/main/postgresql.conf - check whether the port is the same as in the config. file above - if so, change it to e.g. 5433 (this must be different!)
  3. run sudo systemctl restart postgresql
  4. (re)run sudo gvm-setup and wait for the procedure to end (updating the GVM feeds may take a while).