Openvas on raspberry error

Hi all,

I installed openvas on a raspberry (I had previously installed it on a Debian and it was successful). No error occurred during installation and all services are working properly. When I try to analyze any host, an error occurs which is this one :


I tried to download, build and install gvm-libs 10.0.1 but the error is still there. I don’t know how to solve my problem.

Has anyone ever had this kind of problem or does anyone know how i can check which version of gvm-lib is in used?

:thinking: your screenshot tells me you have version 9.0.3 installed. To get the latest stuff you should checkout New releases for GVM 10 and GVM 11 (2020-05-13)

2 Likes

Firstly, thanks for your answer.

I have already tried to download gvm-lib 10.0.1 or 11.0.1, build ans install them but I ever have this issue.

If it can help, I did this commands:
cd gvm-libs-10.0.1/
mkdir build
cd build/
cmake …
make
make install

I use this to build gvm11:

&& curl -L https://github.com/greenbone/gvm-libs/archive/v11.0.1.tar.gz | tar xvz \
&& mkdir gvm-libs-11.0.1/build \
&& cd gvm-libs-11.0.1/build \
&& cmake .. \
&& make \
&& make install \
&& cd \
&& curl -L https://github.com/greenbone/openvas-scanner/archive/v7.0.1.tar.gz | tar xvz \
&& mkdir openvas-7.0.1/build \
&& cd openvas-7.0.1/build \
# changed cmake to workaround fixed deprecation, will be removed in not jet released openvas version
# added -DCMAKE_BUILD_TYPE=RELEASE to cmake
&& cmake .. -DCMAKE_BUILD_TYPE=RELEASE \
&& make \
&& make install \
&& cd \
&& curl -L https://github.com/greenbone/gvmd/archive/v9.0.1.tar.gz | tar xvz \
&& mkdir gvmd-9.0.1/build \
&& cd gvmd-9.0.1/build \
&& cmake .. \
&& make \
&& make install \
&& cd \
&& curl -L https://github.com/greenbone/gsa/archive/v9.0.1.tar.gz | tar xvz \
&& mkdir gsa-9.0.1/build \
&& cd gsa-9.0.1/build \
&& cmake .. \
&& make \
&& make install \
&& cd \
&& pip3 install python-gvm gvm-tools ospd ospd-openvas

Scanning is working fine for me, but I need to mention that this is all done on ubuntu 20.04.

2 Likes

Please note that you really should update all components of GVM (openvas, gvmd, gsa, gvm-libs), not only a single one. Especially as the components from different GVM major releases (e.g. GVM-10 and GVM-11) are not compatible to each other.

Most likely you had installed GVM from the raspbian repositories which can’t be mixed with source installations like this. You first need to uninstall the package manager based packages and install all GVM 11 (end-of-life, initial release 2019-10-14) - Greenbone Community Edition - Greenbone Community Forum from sources.

2 Likes

Thanks very much for your answers !

I have so tried to install everything from sources but I get an error with GSA:


I have installed yarn and nodejs as described in INSTALL file.
I don’t understand errors here. Do you know where can I found more information about them?

The screenshot shows a “Segmentation fault” during the run of “yarn”. This might be originating from the base (operating) system (overheating, low memory, broken RAM module, …) or a bug in the yarn package manager itself.

I guess you probably need to do some research into this direction outside of the GVM scope (e.g. checking the yarn or raspbian bugtracker and similar).

1 Like

Hi everyone,

thanks for your help !

I finally solved my issue by updating node version to v14.2.0.

1 Like

hello I would have the same problem I would need to understand how you solved the problem
thanks

Hello Moahmmed,

This issue is due to an outdated version of openvas. You probably downloaded it from paquet repository which contains an old version. To avoid this, you need to instal GVM 10 or GVM 11.

Hello galen

my version is openvas 9 installed on ubuntu 18.4 but I have to install all the software or just install gvm 10, can you tell me where I can look to update my version? thanks

Hi,

you need to update all components to the new version not only single gvm. Here is what I was doing inside a dockerfile https://github.com/carlstegmann/snippets/blob/master/gvm11_inside_docker/Dockerfile#L58-L94 for a ubuntu 20.04 image. Maybe you can reuse something for your usecase.

Cheers,
Carl

thanks for the reply Carl

so I use all the bash you sent me on a new installation of ubuntu 20.4 or just the prte highlighted in yellow

thanks Carl

This depends on your usecase. The stuff I wrote in the dockerfile is not meant for productive use, only for education. To simply build the components the highlighted stuff is enough if all prerequisited dependencies are allready installed. In case of a fresh installation you would need the “apt-get install” part too.

Cheers,
Carl