libellux / Libellux-Up-and-Running

Install open-source software from source to focus on Zero Trust Network principles, enhancing security for existing applications, and deploying tools for threat detection and prevention.
https://libellux.com
MIT License
64 stars 31 forks source link

[OpenVAS] Empty directory during installation #140

Closed TatusGepetto closed 11 months ago

TatusGepetto commented 1 year ago

Hi,

I was following your new documentation for ubuntu 22.04 and I hit an issue like below:

ubuntu@openvas-22-04:~$ cd $SOURCE_DIR/ospd-openvas-$OSPD_OPENVAS_VERSION
ubuntu@openvas-22-04:~/source/ospd-openvas-22.4.0$ sudo python3 -m pip install . --prefix /usr/local --no-warn-script-location --no-dependencies
Processing /home/ubuntu/source/ospd-openvas-22.4.0
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: ospd-openvas
  Building wheel for ospd-openvas (pyproject.toml) ... done
  Created wheel for ospd-openvas: filename=ospd_openvas-22.4.0-py3-none-any.whl size=124241 sha256=a619fa244a34e0abb67067e02ae2708e96b022c3d5d45131afcad5f148b99962
  Stored in directory: /root/.cache/pip/wheels/35/ea/80/7b594c2c726edf07c8c05d1bca6d9e8d678c1abff06986f4f3
Successfully built ospd-openvas
Installing collected packages: ospd-openvas
  Attempting uninstall: ospd-openvas
    Found existing installation: ospd-openvas 22.4.0
    Uninstalling ospd-openvas-22.4.0:
      Successfully uninstalled ospd-openvas-22.4.0
Successfully installed ospd-openvas-22.4.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
ubuntu@openvas-22-04:~/source/ospd-openvas-22.4.0$ cd $INSTALL_DIR/
ubuntu@openvas-22-04:~/install$ ls
ubuntu@openvas-22-04:~/install$ pwd
/home/ubuntu/install
ubuntu@openvas-22-04:~/install$ ls /home/ubuntu/install
ubuntu@openvas-22-04:~/install$ 

I'm discussing about lines 202-207 from here: https://github.com/libellux/Libellux-Up-and-Running/blob/master/docs/openvas/config/ubuntu-22_04_GVM-22.4.0.sh

Seems that directory is empty, so final copy: sudo cp -rv $INSTALL_DIR/* / && \ will not work - is that on purpose or something wrong is here?

Thanks in advance for explanation.

Best regards, Jan

libellux commented 11 months ago

Sorry for late answer this is resolved by running python3 -m pip install . --prefix /usr/local --no-warn-script-location --no-dependencies without sudo permissions. Will update my website tomorrow with all the latest versions.