Suricata does not install on ubuntu

Hello!suricata does not install on ubuntu 20.04
1|581x167
2

Hi, @stetnt4 !
Welcome to our forum! :slight_smile:
Could you please paste a formatted command and error message? Perhaps the screenshot is missing some more stuff towards the end?
Q: Did you do a sudo apt update to fetch the latest package info before trying to install the library?

2nd screenshot not attached
1

1

Are you following the installation instructions here 3. Installation — Suricata 7.0.1 documentation ?

I use this instruction

sudo add-apt-repository ppa:oisf/suricata-stable
Cannot add PPA: ‘ppa:~oisf/ubuntu/suricata-stable’.
ERROR: ‘~oisf’ user or team does not exist.

Hi there!

In case you’re still having this issue: from your screenshots, I’ve noticed that sometimes Suricata package doesn’t get installed because of the liblzma-dev dependency. Have you managed to solve that bit?

I followed these steps on Ubuntu 20.04 and worked ok:

      apt-get update
      apt-get install software-properties-common
      add-apt-repository ppa:oisf/suricata-stable
      apt-get update
      apt-get install suricata
      suricata -V
suricata -V
This is Suricata version 7.0.1 RELEASE

Same…

But I didn’t face any issues with liblzma-dev, so I’m guessing this part has to be sorted out, first…

1

problem still exists
1

if you download the program and try to install it there is an error

Can you try to solve the liblzma-dev dependency issue, then? I see that Suricata can’t be installed due to that dependency issue.

Can’t install liblzma-dev

Hi @stetnt4 !
Please do the following:

  1. remove any instances/versions of liblzma packages that you might have
  2. remove oisf suricata ppa from your sources
  3. update apt sources again
  4. make sure you do not have liblzma or ppa source
  5. redo all the steps mentioned in the installation guide linked by pevma

Q: Are you an Outreachy applicant?

1 Like

the issue is resolved

1 Like

Thank you for letting us know, @stetnt4 ! Could you please write what you had to do fix the issue and mark that comment as the solution?

I downgraded the version