Installation of ospd-openvas fails on Ubuntu 24.04.2

Following steps on

Building from Source - Greenbone Community Documentation

the installation of ospd-openvas fails :


Collecting redis>=4.5.0 (from ospd-openvas==22.9.0)
Downloading redis-6.2.0-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: wrapt<2,>=1.10 in /usr/lib/python3/dist-packages (from deprecated<2.0.0,>=1.2.10->ospd-openvas==22.9.0) (1.15.0)
Downloading redis-6.2.0-py3-none-any.whl (278 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 278.7/278.7 kB 4.5 MB/s eta 0:00:00
Building wheels for collected packages: ospd-openvas
Building wheel for ospd-openvas (pyproject.toml) … done
Created wheel for ospd-openvas: filename=ospd_openvas-22.9.0-py3-none-any.whl size=112663 sha256=63e182e6f70e1792dff258c2c0936c6dd9a7254c4122381a77ec55f79aee9cdb
Stored in directory: /home/adm_nash/.cache/pip/wheels/69/4f/66/263cb187760d325029482655e6e5c696996046915b3b0a2b23
Successfully built ospd-openvas
WARNING: Skipping /usr/lib/python3.12/dist-packages/charset_normalizer-3.3.2.dist-info due to invalid metadata entry ‘name’
Installing collected packages: redis, ospd-openvas
Attempting uninstall: redis
Found existing installation: redis 4.3.4
Uninstalling redis-4.3.4:
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: ‘connection.py’
Consider using the --user option or check the permissions.

adm_nash@boeovs01:~/source/ospd-openvas-22.9.0$ sudo cp -rv $INSTALL_DIR/ospd-openvas/* /
cp: cannot stat ‘/home/adm_nash/install/ospd-openvas/*’: No such file or directory

Removing installed python3-redis v4.3.4 using apt remove --purge, installation of ospd-openvas was successful.

The installation requires having no conflicting packages installed via the distribution as you figured it out already. The docs expect a clean setup of your distribution.

1 Like