Impossible to install suricata-update from repo github

hello,
i can’t succeed to install suricata update by repository github, could you help me ?
see my logs :

alexandre@alexandre-M1D:~$ cd ~/Documents/suricata/suricata-update/
alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ python3 -m venv venv
alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ source venv/bin/activate
(venv) alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ sudo python3 ./setup.py build && sudo python3 ./setup.py install  
[sudo] Mot de passe de alexandre : 
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
zip_safe flag not set; analyzing archive contents...
suricata.update.__pycache__.main.cpython-311: module references __file__
suricata.update.configs.__pycache__.__init__.cpython-311: module references __file__
suricata.update.data.__pycache__.update.cpython-311: module references __file__
(venv) alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ ls -la
total 128
drwxrwxr-x 14 alexandre alexandre  4096 juin  27 19:41 .
drwxrwxr-x 23 alexandre alexandre  4096 juin  27 19:55 ..
drwxrwxr-x  2 alexandre alexandre  4096 juin  27 19:49 bin
drwxrwxr-x  6 alexandre alexandre  4096 juin  27 20:08 build
-rw-rw-r--  1 alexandre alexandre 11784 juin  27 19:29 CHANGELOG.md
drwxrwxr-x  2 alexandre alexandre  4096 juin  27 20:08 dist
drwxrwxr-x  3 alexandre alexandre  4096 juin  27 19:29 doc
drwxrwxr-x  8 alexandre alexandre  4096 juin  27 19:43 .git
drwxrwxr-x  3 alexandre alexandre  4096 juin  27 19:29 .github
-rw-rw-r--  1 alexandre alexandre   203 juin  27 19:29 .gitignore
drwxrwxr-x  2 alexandre alexandre  4096 juin  27 19:36 include
drwxrwxr-x  3 alexandre alexandre  4096 juin  27 19:36 lib
lrwxrwxrwx  1 alexandre alexandre     3 juin  27 19:36 lib64 -> lib
-rw-rw-r--  1 alexandre alexandre 18092 juin  27 19:29 LICENSE
-rw-rw-r--  1 alexandre alexandre   886 juin  27 19:29 Makefile
-rw-rw-r--  1 alexandre alexandre   131 juin  27 19:29 MANIFEST.in
-rw-rw-r--  1 alexandre alexandre   117 juin  27 19:41 pyvenv.cfg
-rw-rw-r--  1 alexandre alexandre  3606 juin  27 19:29 README.rst
-rw-rw-r--  1 alexandre alexandre   218 juin  27 19:29 .readthedocs.yaml
-rw-rw-r--  1 alexandre alexandre    58 juin  27 19:29 requirements.txt
-rw-rw-r--  1 alexandre alexandre  1646 juin  27 19:29 setup.py
drwxrwxr-x  4 alexandre alexandre  4096 juin  27 19:41 suricata
drwxrwxr-x  2 alexandre alexandre  4096 juin  27 20:08 suricata_update.egg-info
drwxrwxr-x  3 alexandre alexandre  4096 juin  27 19:29 tests
-rw-rw-r--  1 alexandre alexandre   364 juin  27 19:29 tox.ini
-rw-rw-r--  1 alexandre alexandre   373 juin  27 19:29 tox-integration.ini
drwxrwxr-x  5 alexandre alexandre  4096 juin  27 19:38 venv
(venv) alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ make
make: rien à faire pour « all ».
(venv) alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ 

i 've the lastest version of pip3 , and my machine is native , not vmware
coirdially

ok , the necessary command is python3 ./setup.py install not with sudo

but i’ve not the rules no, and not signatures.rules in priority

Installing with pip/setuptools is not something we regularly test. But

cd suricata-update
pip install .

does seem to work, and I believe is the recommended Python way these days.

ok but where are the rules , i’ve just rules in ~/Documents/suricata/rulesbut not in suricata-update directory, and i believe there were in there before ! and i can’t make && sudo make install instruction
Cordially

You’d still need to fetch the rules:

suricata-update

do you have a reason for installing suricata-update by itself? It’s generally installed automatically when you install Suricata.

ok but i 've several errors : alexandre@alexandre-M1D:~/suricata-update .... self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 4, in <module> __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update') File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script self.require(requires)[0].run_script(script_name, ns) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 968, in require needed = self.resolve(parse_requirements(requirements)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 806, in resolve requirements = list(requirements)[::-1] ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3174, in __init__ super(Requirement, self).__init__(requirement_string) File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/requirements.py", line 53, in __init__ self.specifier: SpecifierSet = SpecifierSet(parsed.specifier) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/specifiers.py", line 714, in __init__ parsed.add(Specifier(specifier)) File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/specifiers.py", line 339, in __hash__ return hash(self._canonical_spec) ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/specifiers.py", line 332, in _canonical_spec canonical_version = canonicalize_version( ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/utils.py", line 47, in canonicalize_version parsed = Version(version) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/version.py", line 196, in __init__ match = self._regex.search(version) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ RecursionError: maximum recursion depth exceeded while calling a Python object

Can you give us more information:

  • Your operating system, if Linux, distribution and version
  • How you installed Suricata, if from source your installation commands

Unless you have special requirements, manually installing suricata-update is not normal. So I recommend backing up a few steps if you are trying to run Suricata and not Suricata-Update as a standalone application.

i installed suricata by the repo: GitHub - OISF/suricata: Suricata is a network Intrusion Detection System, Intrusion Prevention System and Network Security Monitoring engine developed by the OISF and the Suricata community.

my ubuntu version and kernel version are :

~/Documents/suricata/suricata-update$ cat /etc/os-release
lsb_release -a
hostnamectl
PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 23.10
Release:	23.10
Codename:	mantic
 Static hostname: alexandre-M1D
       Icon name: computer-laptop
         Chassis: laptop 💻
      Machine ID: 9e1feec5b4fd467aa46a3ca38d59e604
         Boot ID: fba33d86182f41fa92d81ec5f76f9d84
Operating System: Ubuntu 23.10                    
          Kernel: Linux 6.5.0-42-generic
    Architecture: x86-64
 Hardware Vendor: HUAWEI
  Hardware Model: KPL-W0X
Firmware Version: 1.24
   Firmware Date: Mon 2022-04-11
alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ uname -r
6.5.0-42-generic

but since i put the suricata-update directory in suricata directory , i can’t do make && sud make install-full && sudo make install-conf

and i did the pip install insructions before :

(venv) alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ ls -la
total 128
drwxrwxr-x 14 alexandre alexandre  4096 juin  27 20:52 .
drwxrwxr-x 23 alexandre alexandre  4096 juin  27 20:48 ..
drwxrwxr-x  2 alexandre alexandre  4096 juin  27 19:49 bin
drwxrwxr-x  6 alexandre alexandre  4096 juin  27 20:08 build
-rw-rw-r--  1 alexandre alexandre 11784 juin  27 19:29 CHANGELOG.md
drwxrwxr-x  3 alexandre alexandre  4096 juin  27 20:36 dist
drwxrwxr-x  3 alexandre alexandre  4096 juin  27 19:29 doc
-rw-rw-r--  1 alexandre alexandre     0 juin  27 20:52 error.txt
drwxrwxr-x  8 alexandre alexandre  4096 juin  27 19:43 .git
drwxrwxr-x  3 alexandre alexandre  4096 juin  27 19:29 .github
-rw-rw-r--  1 alexandre alexandre   203 juin  27 19:29 .gitignore
drwxrwxr-x  2 alexandre alexandre  4096 juin  27 19:36 include
drwxrwxr-x  3 alexandre alexandre  4096 juin  27 19:36 lib
lrwxrwxrwx  1 alexandre alexandre     3 juin  27 19:36 lib64 -> lib
-rw-rw-r--  1 alexandre alexandre 18092 juin  27 19:29 LICENSE
-rw-rw-r--  1 alexandre alexandre   886 juin  27 19:29 Makefile
-rw-rw-r--  1 alexandre alexandre   131 juin  27 19:29 MANIFEST.in
-rw-rw-r--  1 alexandre alexandre   117 juin  27 19:41 pyvenv.cfg
-rw-rw-r--  1 alexandre alexandre  3606 juin  27 19:29 README.rst
-rw-rw-r--  1 alexandre alexandre   218 juin  27 19:29 .readthedocs.yaml
-rw-rw-r--  1 alexandre alexandre    58 juin  27 19:29 requirements.txt
-rw-rw-r--  1 alexandre alexandre  1646 juin  27 19:29 setup.py
drwxrwxr-x  4 alexandre alexandre  4096 juin  27 19:41 suricata
drwxrwxr-x  2 alexandre alexandre  4096 juin  27 20:44 suricata_update.egg-info
drwxrwxr-x  3 alexandre alexandre  4096 juin  27 19:29 tests
-rw-rw-r--  1 alexandre alexandre   364 juin  27 19:29 tox.ini
-rw-rw-r--  1 alexandre alexandre   373 juin  27 19:29 tox-integration.ini
drwxrwxr-x  5 alexandre alexandre  4096 juin  27 19:38 venv
(venv) alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ pip3 install  -r ./requirements.txt 
Requirement already satisfied: sphinxcontrib-programoutput in ./venv/lib/python3.10/site-packages (from -r ./requirements.txt (line 1)) (0.17)
Requirement already satisfied: Sphinx in ./venv/lib/python3.10/site-packages (from -r ./requirements.txt (line 2)) (7.3.7)
Requirement already satisfied: python-dateutil in ./venv/lib/python3.10/site-packages (from -r ./requirements.txt (line 3)) (2.9.0.post0)
Requirement already satisfied: PyYAML in ./venv/lib/python3.10/site-packages (from -r ./requirements.txt (line 4)) (6.0.1)
Requirement already satisfied: sphinxcontrib-applehelp in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.0.8)
Requirement already satisfied: sphinxcontrib-devhelp in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.0.6)
Requirement already satisfied: sphinxcontrib-jsmath in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.0.1)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.0.5)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.9 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.1.10)
Requirement already satisfied: sphinxcontrib-qthelp in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.0.7)
Requirement already satisfied: Jinja2>=3.0 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (3.1.4)
Requirement already satisfied: Pygments>=2.14 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.18.0)
Requirement already satisfied: docutils<0.22,>=0.18.1 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (0.21.2)
Requirement already satisfied: snowballstemmer>=2.0 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.2.0)
Requirement already satisfied: babel>=2.9 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.15.0)
Requirement already satisfied: alabaster~=0.7.14 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (0.7.16)
Requirement already satisfied: imagesize>=1.3 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.4.1)
Requirement already satisfied: requests>=2.25.0 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.32.3)
Requirement already satisfied: packaging>=21.0 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (24.1)
Requirement already satisfied: tomli>=2 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.0.1)
Requirement already satisfied: six>=1.5 in ./venv/lib/python3.10/site-packages (from python-dateutil->-r ./requirements.txt (line 3)) (1.16.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./venv/lib/python3.10/site-packages (from Jinja2>=3.0->Sphinx->-r ./requirements.txt (line 2)) (2.1.5)
Requirement already satisfied: charset-normalizer<4,>=2 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->Sphinx->-r ./requirements.txt (line 2)) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->Sphinx->-r ./requirements.txt (line 2)) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->Sphinx->-r ./requirements.txt (line 2)) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->Sphinx->-r ./requirements.txt (line 2)) (2024.6.2)
(venv) alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ pip install  -r ./requirements.txt 
Requirement already satisfied: sphinxcontrib-programoutput in ./venv/lib/python3.10/site-packages (from -r ./requirements.txt (line 1)) (0.17)
Requirement already satisfied: Sphinx in ./venv/lib/python3.10/site-packages (from -r ./requirements.txt (line 2)) (7.3.7)
Requirement already satisfied: python-dateutil in ./venv/lib/python3.10/site-packages (from -r ./requirements.txt (line 3)) (2.9.0.post0)
Requirement already satisfied: PyYAML in ./venv/lib/python3.10/site-packages (from -r ./requirements.txt (line 4)) (6.0.1)
Requirement already satisfied: sphinxcontrib-applehelp in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.0.8)
Requirement already satisfied: sphinxcontrib-devhelp in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.0.6)
Requirement already satisfied: sphinxcontrib-jsmath in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.0.1)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.0.5)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.9 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.1.10)
Requirement already satisfied: sphinxcontrib-qthelp in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.0.7)
Requirement already satisfied: Jinja2>=3.0 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (3.1.4)
Requirement already satisfied: Pygments>=2.14 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.18.0)
Requirement already satisfied: docutils<0.22,>=0.18.1 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (0.21.2)
Requirement already satisfied: snowballstemmer>=2.0 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.2.0)
Requirement already satisfied: babel>=2.9 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.15.0)
Requirement already satisfied: alabaster~=0.7.14 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (0.7.16)
Requirement already satisfied: imagesize>=1.3 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (1.4.1)
Requirement already satisfied: requests>=2.25.0 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.32.3)
Requirement already satisfied: packaging>=21.0 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (24.1)
Requirement already satisfied: tomli>=2 in ./venv/lib/python3.10/site-packages (from Sphinx->-r ./requirements.txt (line 2)) (2.0.1)
Requirement already satisfied: six>=1.5 in ./venv/lib/python3.10/site-packages (from python-dateutil->-r ./requirements.txt (line 3)) (1.16.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./venv/lib/python3.10/site-packages (from Jinja2>=3.0->Sphinx->-r ./requirements.txt (line 2)) (2.1.5)
Requirement already satisfied: charset-normalizer<4,>=2 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->Sphinx->-r ./requirements.txt (line 2)) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->Sphinx->-r ./requirements.txt (line 2)) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->Sphinx->-r ./requirements.txt (line 2)) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->Sphinx->-r ./requirements.txt (line 2)) (2024.6.2)
(venv) alexandre@alexandre-M1D:~/Documents/suricata/suricata-update$ 

Cordially

Ah, I don’t think this case is well documented… Assuming a fresh clone of OISF/suricata you could do:

./scripts/bundle.sh
./autogen.sh
./configure ...

and you should be good.

yes but the problem of makefile of suricata-update directory is obviously still here:

alexandre@alexandre-M1D:~/Documents/suricata$ sudo ./scripts/bundle.sh && sudo./autogen.sh
===> Bundling https://github.com/OISF/libhtp (0.5.x)
Clonage dans './libhtp'...
remote: Enumerating objects: 246, done.
remote: Counting objects: 100% (246/246), done.
remote: Compressing objects: 100% (203/203), done.
remote: Total 246 (delta 70), reused 133 (delta 34), pack-reused 0
Réception d'objets: 100% (246/246), 556.19 Kio | 4.79 Mio/s, fait.
Résolution des deltas: 100% (70/70), fait.
/home/alexandre/Documents/suricata/libhtp /home/alexandre/Documents/suricata
Depuis https://github.com/OISF/libhtp
 * branch            0.5.x      -> FETCH_HEAD
HEAD est maintenant sur af7213f fuzz: limits the number of transactions
/home/alexandre/Documents/suricata
===> Bundling https://github.com/OISF/suricata-update (master)
Clonage dans './suricata-update.tmp'...
remote: Enumerating objects: 109, done.
remote: Counting objects: 100% (109/109), done.
remote: Compressing objects: 100% (101/101), done.
remote: Total 109 (delta 10), reused 60 (delta 1), pack-reused 0
Réception d'objets: 100% (109/109), 4.65 Mio | 3.71 Mio/s, fait.
Résolution des deltas: 100% (10/10), fait.
/home/alexandre/Documents/suricata/suricata-update.tmp /home/alexandre/Documents/suricata
Depuis https://github.com/OISF/suricata-update
 * branch            master     -> FETCH_HEAD
HEAD est maintenant sur a81f805 version: 1.3.3
/home/alexandre/Documents/suricata
bash: sudo./autogen.sh: Aucun fichier ou dossier de ce type
alexandre@alexandre-M1D:~/Documents/suricata$  ./configure --prefix=/usr/            --bindir=/usr/bin/suricata            --sbindir=/usr/sbin/suricata             --libdir=/usr/lib/suricata/             --sysconfdir=/etc/             --enable-python             --enable-debug             --enable-unittests             --enable-ebpf-build             --enable-geoip             --enable-af-packet             --enable-nflog             --with-libpcap-includes=/usr/local/include             --with-libpcap-libraries=/usr/local/lib               --with-libhtp-includes=/usr/local/include/htp  --with-libhtp-libraries=/usr/lib --with-libyaml-libraries=/usr/lib/x86_64-linux-gnu --enable-nfqueue 
            && sudo make && sudo make install-full && sudo make install-conf
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
...
checking for jansson.h... yes
checking for json_dump_callback in -ljansson... yes
checking for libnetfilter_queue... yes
checking for nfnl_fd in -lnfnetlink... yes
checking for libnetfilter_queue/libnetfilter_queue.h... yes
checking for nfq_open in -lnetfilter_queue... yes
checking for nfq_set_queue_maxlen in -lnetfilter_queue... yes
checking for nfq_set_verdict2 in -lnetfilter_queue... yes
checking for nfq_set_queue_flags in -lnetfilter_queue... yes
checking for nfq_set_verdict_batch in -lnetfilter_queue... yes
checking for signed nfq_get_payload payload argument... no
checking for libnetfilter_log/libnetfilter_log.h... yes
checking for nflog_open in -lnetfilter_log... yes
checking whether OS_WIN32 is declared... no
checking for libnet.h version 1.1.x... yes
checking for libnet_write in -lnet... yes
checking for libnet_build_icmpv6_unreach in -lnet... yes
checking libnet_init dev type... yes
checking for pcap.h... yes
checking for pcap.h... (cached) yes
checking for pcap/pcap.h... yes
checking for pcap/bpf.h... no
checking for pcap_open_dead in -lpcap... yes
checking for libpcap... yes
checking for pcap-config... /usr/bin/pcap-config
pcap-config: Invalid command-line option --defines specified
Usage: pcap-config [ --help ] [ --static | --static-pcap-only ] [ --libs | --additional-libs ]
checking for pcap_set_buffer_size in -lpcap... yes
checking whether TPACKET_V2 is declared... yes
checking whether PACKET_FANOUT_QM is declared... yes
checking whether TPACKET_V3 is declared... yes
checking whether SOF_TIMESTAMPING_RAW_HARDWARE is declared... yes
checking for elf_begin in -lelf... yes
checking for xdp/xsk.h... no
checking for xsk_umem__create in -lxdp... no
checking for bpf_xdp_query_id... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `suricata-update/Makefile.in'
bash: erreur de syntaxe près du symbole inattendu « && »

cordially

Did you start with a fresh checkout of Suricata? It needs some stub files that are in the Suricata repo that may be been overwritten by your previous install attempts.

Also see 27.1.1. Installation from GIT — Suricata 8.0.0-dev documentation.

if i want to git stash to refresh i 've this problem:

(venv) alexandre@alexandre-M1D:~/Documents/suricata$ git stash
Arbre de travail et état de l'index sauvegardés dans WIP on master: 5bd17934d http2: do not expand duplicate headers
error: unable to create file suricata-update/Makefile.am: Permission non accordée
fatal: Impossible de réinitialiser le fichier d'index à la révision 'HEAD'.
(venv) alexandre@alexandre-M1D:~/Documents/suricata$ git pull
Déjà à jour.
(venv) alexandre@alexandre-M1D:~/Documents/suricata$ ls
aclocal.m4      ChangeLog     config.status  contrib      ebpf        libhtp                 LICENSE    Makefile.am   python            rust             suricata.yaml
acsite.m4       compile       config.sub     COPYING      error.txt   libsuricata-config     ltmain.sh  Makefile.cvs  qa                scripts          suricata.yaml.in
autogen.sh      config.guess  configure      depcomp      etc         libsuricata-config.in  lua        Makefile.in   README.md         SECURITY.md      test-driver
autom4te.cache  config.log    configure~     doc          examples    libtool                m4         missing       requirements.txt  src              threshold.config
benches         config.rpath  configure.ac   doxygen.cfg  install-sh  libunwind              Makefile   packages.txt  rules             suricata-update
(venv) alexandre@alexandre-M1D:~/Documents/suricata$ sudo ./scripts/bundle.sh
===> Bundling https://github.com/OISF/libhtp (0.5.x)
Clonage dans './libhtp'...
remote: Enumerating objects: 246, done.
remote: Counting objects: 100% (246/246), done.
remote: Compressing objects: 100% (203/203), done.
remote: Total 246 (delta 70), reused 133 (delta 34), pack-reused 0
Réception d'objets: 100% (246/246), 556.19 Kio | 550.00 Kio/s, fait.
Résolution des deltas: 100% (70/70), fait.
/home/alexandre/Documents/suricata/libhtp /home/alexandre/Documents/suricata
Depuis https://github.com/OISF/libhtp
 * branch            0.5.x      -> FETCH_HEAD
HEAD est maintenant sur af7213f fuzz: limits the number of transactions
/home/alexandre/Documents/suricata
===> Bundling https://github.com/OISF/suricata-update (master)
Clonage dans './suricata-update.tmp'...
remote: Enumerating objects: 109, done.
remote: Counting objects: 100% (109/109), done.
remote: Compressing objects: 100% (101/101), done.
remote: Total 109 (delta 10), reused 60 (delta 1), pack-reused 0
Réception d'objets: 100% (109/109), 4.65 Mio | 4.71 Mio/s, fait.
Résolution des deltas: 100% (10/10), fait.
/home/alexandre/Documents/suricata/suricata-update.tmp /home/alexandre/Documents/suricata
Depuis https://github.com/OISF/suricata-update
 * branch            master     -> FETCH_HEAD
HEAD est maintenant sur a81f805 version: 1.3.3
/home/alexandre/Documents/suricata
(venv) alexandre@alexandre-M1D:~/Documents/suricata$ sudo ./auto
autogen.sh      autom4te.cache/ 
(venv) alexandre@alexandre-M1D:~/Documents/suricata$ sudo ./autogen.sh 
Found libtoolize
libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT'
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: adding subdirectory libhtp to autoreconf
autoreconf: Entering directory 'libhtp'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '..'.
libtoolize: copying file '../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/bin/autoconf --force
configure.ac:156: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:156: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/iconv.m4:20: AM_ICONV_LINK is expanded from...
m4/iconv.m4:188: AM_ICONV is expanded from...
configure.ac:156: the top level
configure.ac:156: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:156: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/iconv.m4:20: AM_ICONV_LINK is expanded from...
m4/iconv.m4:188: AM_ICONV is expanded from...
configure.ac:156: the top level
configure.ac:156: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:156: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/iconv.m4:188: AM_ICONV is expanded from...
configure.ac:156: the top level
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:86: installing '../compile'
configure.ac:7: installing '../missing'
Makefile.am: installing './INSTALL'
htp/Makefile.am: installing '../depcomp'
autoreconf: './install-sh' is created
autoreconf: './config.sub' is created
autoreconf: './config.guess' is created
autoreconf: Leaving directory 'libhtp'
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:9: installing './compile'
configure.ac:6: installing './missing'
configure.ac:1524: error: required file 'suricata-update/Makefile.in' not found
doc/userguide/Makefile.am:48: warning: SPHINX_BUILD was already defined in condition TRUE, which includes condition SPHINX_BUILD ...
configure.ac:2077: ... 'SPHINX_BUILD' previously defined here
examples/lib/simple/Makefile.am: installing './depcomp'
autoreconf: error: automake failed with exit status: 1

with an environnement variable

and i’ve this problem:

:~/Documents/suricata/suricata-update$ python3 ./setup.py install
/home/alexandre/Documents/suricata-update/.venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/home/alexandre/Documents/suricata-update/.venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
error: could not create 'suricata_update.egg-info': Permission denied
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update$ python3 ./setup.py build
error: could not create 'build': Permission denied
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update$ python ./setup.py build
error: could not create 'build': Permission denied
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update$ sudo python ./setup.py build
sudo: python : commande introuvable
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update$ sudo python3 ./setup.py build
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update$ ls
bin  build  CHANGELOG.md  doc  LICENSE  Makefile  MANIFEST.in  README.rst  requirements.txt  setup.py  suricata  tests  tox.ini  tox-integration.ini
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update$ sudo python3 ./setup.py install
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
zip_safe flag not set; analyzing archive contents...
suricata.update.__pycache__.main.cpython-311: module references __file__
suricata.update.configs.__pycache__.__init__.cpython-311: module references __file__
suricata.update.data.__pycache__.update.cpython-311: module references __file__
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update$ ls 
bin  build  CHANGELOG.md  dist  doc  LICENSE  Makefile  MANIFEST.in  README.rst  requirements.txt  setup.py  suricata  suricata_update.egg-info  tests  tox.ini  tox-integration.ini
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update$ cd dist/
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update/dist$ ls
suricata_update-1.3.3-py3.11.egg
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update/dist$ cd ..
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update$ sudo ./autogen.sh 
sudo: ./autogen.sh : commande introuvable
(venv) alexandre@alexandre-a:~/Documents/suricata/suricata-update$ cd ..
(venv) alexandre@alexandre-a:~/Documents/suricata$ sudo ./autogen.sh 
Found libtoolize
...
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:9: installing './compile'
configure.ac:6: installing './missing'
configure.ac:1524: error: required file 'suricata-update/Makefile.in' not found
doc/userguide/Makefile.am:48: warning: SPHINX_BUILD was already defined in condition TRUE, which includes condition SPHINX_BUILD ...
configure.ac:2077: ... 'SPHINX_BUILD' previously defined here
examples/lib/simple/Makefile.am: installing './depcomp'
autoreconf: error: automake failed with exit status: 1
(venv) alexandre@alexandre-a:~/Documents/suricata$ 

This file appears to be missing. It comes from Suricata, not Suricata-Update.

I recommend starting fresh, following our documentation. Then adapting as you see fit. Our process does not use setup.py at all.

ok , now i 've this error :

alexandre@alexandre-developpeur:~/Téléchargements/suricata$ sudo ls -l /usr/bin/suricata/
total 124760
-rwxr-x--- 1 suricata suricata 127739608 juin  28 13:34 suricata
-rwxr-x--- 1 suricata suricata      1397 juin  28 13:34 suricatactl
-rwxr-x--- 1 suricata suricata      3386 juin  28 13:34 suricatasc
-rwxr-x--- 1 suricata suricata      1329 juin  28 17:04 suricata-update
alexandre@alexandre-developpeur:~/Téléchargements/suricata$ sudo suricata-update
/usr/local/bin/suricata-update:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
 __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update')
Traceback (most recent call last):
 File "/usr/local/bin/suricata-update", line 4, in <module>
   __import__('pkg_resources').run_script('suricata-update==1.3.3', 'suricata-update')
 File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 722, in run_script
   self.require(requires)[0].run_script(script_name, ns)
 File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1561, in run_script
   exec(code, namespace, namespace)
 File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/EGG-INFO/scripts/suricata-update", line 36, in <module>
   sys.exit(main.main())
            ^^^^^^^^^^^
 File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/suricata/update/main.py", line 1403, in main
   sys.exit(_main())
            ^^^^^^^
 File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/suricata/update/main.py", line 1088, in _main
   config.init(args)
 File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/suricata/update/config.py", line 198, in init
   build_info = suricata.update.engine.get_build_info(_config["suricata"])
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.11/dist-packages/suricata_update-1.3.3-py3.11.egg/suricata/update/engine.py", line 43, in get_build_info
   build_info_output = subprocess.check_output([suricata, "--build-info"])
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
   return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/subprocess.py", line 548, in run
   with Popen(*popenargs, **kwargs) as process:
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/subprocess.py", line 1026, in __init__
   self._execute_child(args, executable, preexec_fn, close_fds,
 File "/usr/lib/python3.11/subprocess.py", line 1950, in _execute_child
   raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/usr/bin/suricata'
alexandre@alexandre-developpeur:~/Téléchargements/suricata$ cd suricata-update/

where is the problem ? i execute the command with sudo
Cordially

This is not how Suricata-Update is installed. Please remove that, and let Suricata install it with make && make install, follow our docs that bundle suricata-update in correctly.

1 Like

aah yes !! now it’s works ! thanks you very much with your advices !! HAHA !