Using sudo apt-get install afl gives

E: Unable to locate package afl

on my machine. How can I install American fuzzy lop on Ubuntu?

  • What version of Ubuntu are you using? Feb 2, 2017 at 13:21
  • Ubuntu 14.04.5 LTS
    – anaotha
    Feb 2, 2017 at 18:44

3 Answers 3


Alright, it wasn't that hard. I just cloned the source code from a mirror, make'd and make install'ed:

  1. Clone Git repository of afl, I use a mirror I found on GitHub:

    git clone https://github.com/mirrorer/afl
  2. Change directory and make and make install:

    cd afl
    make && sudo make install

Of course, there might be some libraries you need to install in order to compile. I did not need to do this.

  • 1
    Thereafter, use afl-fuzz command and viola!
    – Keith OYS
    Dec 6, 2019 at 8:40

I just want to add that on Ubuntu 18 you can just install now, but that version seems to be broken.

sudo apt-get install afl

After installing and trying to use afl it seems that it is broken in Ubuntu 18. So you should still refer to vatsug's answer to install.

Apparently it will be fixed in Ubuntu 19.

Blog post about it being broken.


I got an error that said:

Package afl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'afl' has no installation candidate

On Ubuntu 20.04 (Focal Fossa), sudo apt install afl++ is the right command.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .