Git install of ospd and ospd-openvas becomes 21.4.0?

installed using this tutorial Install and Setup GVM 20.08 on Ubuntu 20.04 - kifarunix.com

gvm@greenbone:~$ gsad --version
Oops, secure memory pool already initialized
Greenbone Security Assistant 20.8.1
gvm@greenbone:~$ gvmd --version
Greenbone Vulnerability Manager 20.08.3~git-44ba46cd4-gvmd-20.08
GIT revision 44ba46cd4-gvmd-20.08
Manager DB revision 233
Copyright (C) 2009-2021 Greenbone Networks GmbH
License: AGPL-3.0-or-later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gvm@greenbone:~$ openvas --version
OpenVAS 20.8.3
gvm-libs 20.8.3~git-e4719673-gvm-libs-20.08
Most new code since 2005: (C) 2021 Greenbone Networks GmbH
Nessus origin: (C) 2004 Renaud Deraison deraison@nessus.org
License GPLv2: GNU GPL version 2
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gvm@greenbone:~$ uname -a
Linux greenbone 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
gvm@greenbone:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
gvm@greenbone:~$

Hello, I am new to this tool. trying to learn what I can. I installed from the githib repo as described in the link above.
its running a VM.

Trying to understand why this error is appearing:

Blockquote
gvm@greenbone:~$ ospd-openvas
Traceback (most recent call last):
File β€œ/opt/gvm/bin/ospd-openvas”, line 6, in
from pkg_resources import load_entry_point
File β€œ/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 3254, in
def _initialize_master_working_set():
File β€œ/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 3237, in _call_aside
f(*args, **kwargs)
File β€œ/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 3266, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File β€œ/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 584, in _build_master
ws.require(requires)
File β€œ/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 901, in require
needed = self.resolve(parse_requirements(requirements))
File β€œ/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The β€˜ospd-openvas==20.8.3.dev1’ distribution was not found and is required by the application
gvm@greenbone:~$

The very last line lead me to finding this info:

Blockquote
gvm@greenbone:~$ pip_search ospd
β”‚ :open_file_folder: ospd β”‚ 21.4.0 β”‚ Apr 16, 2021 β”‚ OSPD is a base for scanner wrappers which share the same communication protocol: OSP (Open Scanner Protocol) β”‚
β”‚ :open_file_folder: ospd-openvas β”‚ 21.4.0 β”‚ Apr 16, 2021 β”‚ ospd based scanner for openvas β”‚
β”‚ :open_file_folder: infrared-ospdui β”‚ 3.0.0 β”‚ Mar 21, 2018 β”‚ ospdui plugin for InfraRed β”‚
gvm@greenbone:~$

Im not understanding why the installed version became 21.4.0 ?

Is there a way to roll it back to 20.8.3.dev1?

This is in a VM and it is easy enough to wipe it out and re-install it, to verify these results are duplicated, if recommended?

Thank you.

The installation seems to be messed up. I guess you mixed installing the git checkout and installing via pip. I would try to run pip uninstall ospd ospd-openvas. Maybe that fixes the installation already.

1 Like