Greenbone upgrade in Kali Linux 2020.2

Hi,
Please help me. I am new for this. I updated my Kali to 2020.2 and OpenVas also upgraded to 7.0 to 9.0. But Greenbone is still 7.0.3. How can I upgrade this to 9.0 . What is the difference here between greenbone and Openvas? I am not able to upgrade Greenbone?

regards,
Kumar

This is clearly not a question which belongs into the ā€œFeed Services (GCF & GSF)ā€ category, moving into a better fitting one.

Thanks you!!

My greenbone is saying Greenbone-Security-Assistant is already the newest version (7.0.3+dfsg.1-1)

The version information is a bit confusing. The OpenVAS suite got renamed to GVM with version 9. The components of the suite may have different version numbers. See About the Greenbone Source Edition (GSE) category for more details about our releases.

1 Like

Thank you for replyā€¦ Please have a look
My Kali versionā€¦
kumar@MyKali:~# cat /etc/os-release
PRETTY_NAME=ā€œKali GNU/Linux Rollingā€
NAME=ā€œKali GNU/Linuxā€
ID=kali
VERSION=ā€œ2020.2ā€
VERSION_ID=ā€œ2020.2ā€
VERSION_CODENAME=ā€œkali-rollingā€

Openvas is saying below on my Kaliā€¦

kumar@MyKali:~# openvas-check-setup --v9
openvas-check-setup 2.3.7
Test completeness and readiness of OpenVAS-9
Step 4: Checking Greenbone Security Assistant (GSA) ā€¦
OK: Greenbone Security Assistant is present in version 7.0.3.
OK: Your OpenVAS certificate infrastructure passed validation.
It seems like your OpenVAS-9 installation is OK.

openvas is already the newest version (9.0.3kali1).
openvas-cli is already the newest version (1.4.5-2).
openvas-cli set to manually installed.
openvas-manager is already the newest version (7.0.3-1).

When I try to install Greenboneā€¦

kumar@MyKali:~# apt-get install greenbone*
Reading package listsā€¦ Done
Building dependency tree
Reading state informationā€¦ Done
Note, selecting ā€˜greenbone-security-assistantā€™ for glob ā€˜greenbone*ā€™
Note, selecting ā€˜greenbone-security-assistant-commonā€™ for glob ā€˜greenbone*ā€™
greenbone-security-assistant is already the newest version (7.0.3+dfsg.1-1).
greenbone-security-assistant-common is already the newest version (7.0.3+dfsg.1-1).
0 upgraded, 0 newly installed, 0 to remove and 410 not upgraded.

Please now help meā€¦

Kali Linux is only shipping the end-of-life and unsupported OpenVAS/GVM-9 so you canā€™t use apt-get install to install GVM-11 (the latest and current recommended stable version of GVM).

If you want to use a more recent version and supported version of GVM on Kali Linux you need to uninstall all Kali packages and build GVM-11 from source.

More info about the current stable GVM-11 and where to get it is available at:

https://community.greenbone.net/t/gvm-11-stable-initial-release-2019-10-14

There are also some 3rdparty installation guides like e.g.

https://sadsloth.net/post/install-gvm11-src_part1/
https://sadsloth.net/post/install-gvm11-src-on-debian/

which might be applicable on Kali Linux as well.

1 Like

I couldnā€™t figure out how to post so I,just decided to submit a reply. I have been following directions for installing gvm11 from source for Debian on my Kali system. Most everything has been manageable until now. I have already compiled using cmake and ran make and make install on the install gvm-libs, config and build openvas-smb, config and build scanner, install redis-server, config and build manager, configure PostgresSQL, update IANA Service names. when I get to ā€œinstall and configure gsaā€ which is my next step and not my last. It compiles but when I do a make I get the following errors there are examples out there of similar examples which I am looking at but nothing which addresses these errors on gvm11:

root@kali-linux:/opt/gvm/src/gsa# make
make[1]: Entering directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Entering directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
[ 11%] Built target gsa-ng
make[2]: Entering directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Entering directory ā€˜/opt/gvm/src/gsaā€™
ā€“ Found Git: /usr/bin/git (found version ā€œ2.28.0ā€)
make[2]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
[ 11%] Built target revisiontag
make[2]: Entering directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Entering directory ā€˜/opt/gvm/src/gsaā€™
[ 16%] Building C object gsad/src/CMakeFiles/gsad.dir/gsad.c.o
/opt/gvm/src/gsa/gsad/src/gsad.c: In function ā€˜start_unix_http_daemonā€™:
/opt/gvm/src/gsa/gsad/src/gsad.c:2602:20: error: passing argument 5 of ā€˜MHD_start_daemonā€™ from incompatible pointer type [-Werror=incompatible-pointer-types]
2602 | 0, NULL, NULL, handler, http_handlers, MHD_OPTION_NOTIFY_COMPLETED,
| ^~~~~~~
| |
| int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **) {aka int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)}
In file included from /opt/gvm/src/gsa/gsad/src/gsad_params.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad_user.h:28,
from /opt/gvm/src/gsa/gsad/src/gsad_base.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad.c:71:
/usr/include/microhttpd.h:2428:45: note: expected ā€˜MHD_AccessHandlerCallbackā€™ {aka ā€˜enum MHD_Result (
)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)ā€™} but argument is of type ā€˜int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **)ā€™ {aka ā€˜int ()(void *, struct MHD_Connection *, const char , const char *, const char *, const char *, long unsigned int *, void **)ā€™}
2428 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~~~~~~~~~^~
/opt/gvm/src/gsa/gsad/src/gsad.c: In function ā€˜start_http_daemonā€™:
/opt/gvm/src/gsa/gsad/src/gsad.c:2636:30: error: passing argument 5 of ā€˜MHD_start_daemonā€™ from incompatible pointer type [-Werror=incompatible-pointer-types]
2636 | flags, port, NULL, NULL, handler, http_handlers,
| ^

| |
| int (
)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **) {aka int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)}
In file included from /opt/gvm/src/gsa/gsad/src/gsad_params.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad_user.h:28,
from /opt/gvm/src/gsa/gsad/src/gsad_base.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad.c:71:
/usr/include/microhttpd.h:2428:45: note: expected ā€˜MHD_AccessHandlerCallbackā€™ {aka ā€˜enum MHD_Result (
)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)ā€™} but argument is of type ā€˜int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **)ā€™ {aka ā€˜int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)ā€™}
2428 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~^~
/opt/gvm/src/gsa/gsad/src/gsad.c: In function ā€˜start_https_daemonā€™:
/opt/gvm/src/gsa/gsad/src/gsad.c:2668:30: error: passing argument 5 of ā€˜MHD_start_daemonā€™ from incompatible pointer type [-Werror=incompatible-pointer-types]
2668 | flags, port, NULL, NULL, &handle_request, http_handlers,
| ^

| |
| int (
)(void *, http_connection_t *, const char *, const char *, const char *, const char *, size_t , void **) {aka int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)}
In file included from /opt/gvm/src/gsa/gsad/src/gsad_params.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad_user.h:28,
from /opt/gvm/src/gsa/gsad/src/gsad_base.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad.c:71:
/usr/include/microhttpd.h:2428:45: note: expected ā€˜MHD_AccessHandlerCallbackā€™ {aka ā€˜enum MHD_Result (
)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)ā€™} but argument is of type ā€˜int ()(void *, http_connection_t *, const char *, const char *, const char *, const char *, size_t , void **)ā€™ {aka ā€˜int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int *, void **)ā€™}
2428 | MHD_AccessHandlerCallback dh, void dh_cls,
| ^~
cc1: all warnings being treated as errors
make[2]: *** [gsad/src/CMakeFiles/gsad.dir/build.make:63: gsad/src/CMakeFiles/gsad.dir/gsad.c.o] Error 1
make[2]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
make[1]: *** [CMakeFiles/Makefile2:261: gsad/src/CMakeFiles/gsad.dir/all] Error 2
make[1]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
make: *** [Makefile:152: all] Error 2
root@kali-linux:/opt/gvm/src/gsa# make
make[1]: Entering directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Entering directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
[ 11%] Built target gsa-ng
make[2]: Entering directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Entering directory ā€˜/opt/gvm/src/gsaā€™
ā€“ Found Git: /usr/bin/git (found version ā€œ2.28.0ā€)
make[2]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
[ 11%] Built target revisiontag
make[2]: Entering directory ā€˜/opt/gvm/src/gsaā€™
Scanning dependencies of target gsad
make[2]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
make[2]: Entering directory ā€˜/opt/gvm/src/gsaā€™
[ 16%] Building C object gsad/src/CMakeFiles/gsad.dir/gsad.c.o
/opt/gvm/src/gsa/gsad/src/gsad.c: In function ā€˜start_unix_http_daemonā€™:
/opt/gvm/src/gsa/gsad/src/gsad.c:2602:20: error: expected expression before ā€˜voidā€™
2602 | 0, NULL, NULL, void *, http_handlers, MHD_OPTION_NOTIFY_COMPLETED,
| ^
~
/opt/gvm/src/gsa/gsad/src/gsad.c:2599:10: error: too few arguments to function ā€˜MHD_start_daemonā€™
2599 | return MHD_start_daemon (
| ^
~
In file included from /opt/gvm/src/gsa/gsad/src/gsad_params.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad_user.h:28,
from /opt/gvm/src/gsa/gsad/src/gsad_base.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad.c:71:
/usr/include/microhttpd.h:2425:1: note: declared here
2425 | MHD_start_daemon (unsigned int flags,
| ^
~~~~~
/opt/gvm/src/gsa/gsad/src/gsad.c: In function ā€˜start_http_daemonā€™:
/opt/gvm/src/gsa/gsad/src/gsad.c:2636:30: error: passing argument 5 of ā€˜MHD_start_daemonā€™ from incompatible pointer type [-Werror=incompatible-pointer-types]
2636 | flags, port, NULL, NULL, handler, http_handlers,
| ^~~~~~~
| |
| int (
)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **) {aka int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)}
In file included from /opt/gvm/src/gsa/gsad/src/gsad_params.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad_user.h:28,
from /opt/gvm/src/gsa/gsad/src/gsad_base.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad.c:71:
/usr/include/microhttpd.h:2428:45: note: expected ā€˜MHD_AccessHandlerCallbackā€™ {aka ā€˜enum MHD_Result (
)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)ā€™} but argument is of type ā€˜int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **)ā€™ {aka ā€˜int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)ā€™}
2428 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~^~
/opt/gvm/src/gsa/gsad/src/gsad.c: In function ā€˜start_https_daemonā€™:
/opt/gvm/src/gsa/gsad/src/gsad.c:2668:30: error: passing argument 5 of ā€˜MHD_start_daemonā€™ from incompatible pointer type [-Werror=incompatible-pointer-types]
2668 | flags, port, NULL, NULL, &handle_request, http_handlers,
| ^

| |
| int (
)(void *, http_connection_t *, const char *, const char *, const char *, const char *, size_t , void **) {aka int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)}
In file included from /opt/gvm/src/gsa/gsad/src/gsad_params.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad_user.h:28,
from /opt/gvm/src/gsa/gsad/src/gsad_base.h:29,
from /opt/gvm/src/gsa/gsad/src/gsad.c:71:
/usr/include/microhttpd.h:2428:45: note: expected ā€˜MHD_AccessHandlerCallbackā€™ {aka ā€˜enum MHD_Result (
)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)ā€™} but argument is of type ā€˜int ()(void *, http_connection_t *, const char *, const char *, const char *, const char *, size_t , void **)ā€™ {aka ā€˜int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int *, void **)ā€™}
2428 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/opt/gvm/src/gsa/gsad/src/gsad.c: In function ā€˜start_unix_http_daemonā€™:
/opt/gvm/src/gsa/gsad/src/gsad.c:2606:1: error: control reaches end of non-void function [-Werror=return-type]
2606 | }
| ^
cc1: all warnings being treated as errors
make[2]: *** [gsad/src/CMakeFiles/gsad.dir/build.make:63: gsad/src/CMakeFiles/gsad.dir/gsad.c.o] Error 1
make[2]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
make[1]: *** [CMakeFiles/Makefile2:261: gsad/src/CMakeFiles/gsad.dir/all] Error 2
make[1]: Leaving directory ā€˜/opt/gvm/src/gsaā€™
make: *** [Makefile:152: all] Error 2

1 Like

For some reason many of the lines have a strikethrough. This includes the errors which may make them easier to spot. Also, I ran into something earlier with depracated functions but managed to fix it. I donā€™t know if this is something similar.

iā€™ve the same problem with ka 2020.3 and 2020.4, with gvm11 and gvm20, anyone have tips?