Failed to install pip3 dependencies

If you encounter the following issue when running the Filescan installation script:

Bash
Copy

then very likely, the pip package manager is broken on your Ubuntu installation due to a bug in the pyopenssl Python package.

You can find more details in this question: https://stackoverflow.com/questions/73830524/attributeerror-module-lib-has-no-attribute-x509-v-flag-cb-issuer-check

First of all, run this command to check if pip is in a broken state:

Bash
Copy

When pip is broken, the output will be similar to this:

Bash
Copy

Fixing the issue

To fix the broken pip, run these commands to remove the python3-pipapt`` package and install the latest pip from pypa.io :

Bash
Copy

Please reboot your system (or log out and log in again), then check if pip is working.

You should see a pip version number like this:

Bash
Copy

It is also recommended to upgrade the pyopenssl package to avoid this issue in the future:

Bash
Copy

If you encounter the following issue when running the Filescan installation script:

Bash
Copy

To fix the the issue, run the following command to install yara-python library:

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard