Installing Suricata on Ubuntu VM under Virtualbox

We use Suricata for various things at work and I need to install it on some VMs to check some things.

Using:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:oisf/suricata-stable
sudo apt-get update
sudo apt-get install suricata

When I try to install on Ubuntu VMs it fails to add the repository:

sudo add-apt-repository ppa:oisf/suricata-stable

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

I’ve been messing with this off and on for three days. What do I need to do to get this in stalled on a Ubuntu VM?

Thanks
Jeff

If not using an LTS, try an LTS. This should work on 22.04 and 24.04.

I’m on 20.04 and I need to use that version.

Just tested on an update to date 20.04.6 LTS release and it works. Following our instructions here: 3. Installation — Suricata 8.0.0-dev documentation

I downloaded a fresh 20.04.06 LTS and it fails with Virtualbox 7.0.20 and on VMware 17.5.2 build-23775571.

Are you allowing it to upgrade the OS right after installing the VM?

Should work either way. I’m not using VirutalBox or VMware, but that shouldn’t really matter.

However, this error:

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

is what I get when I can’t reach the repo servers. Is there a proxy or something possibly blocking your connections?

That’s the whole issue.

I can install direct on Ubuntu on a machine but it will not install in a Ubuntu VM.

I need to test some things in a VM.