All resources i have come across say that this should work:

apt-get install libevent-dev

But this fails event even when I have super user privileges.

Does anyone know of a repository for this package?

My operating system is Ubuntu 18.04 LTS.

thanks in advance

Error output:

Reading package lists...Done

Building dependency tree...Done

Reading state information...Done

E: Unable to locate package libevent-dev

  • Please edit your question to show us the complete output of a failed attempt. The package is in the 'main' pocket of the Ubuntu repositories for all supported releases of Ubuntu - every install of Ubuntu already has that source included. – user535733 Feb 1 at 5:43
  • ok i have done so, it says it is unable to locate it, is this likely to be an issue caused by what is in my /etc/apt/sources.list file? – Adam Feb 1 at 5:55
  • That's one line, not complete output. Seems likely that you have bonkered sources. Please edit your question to show the complete output of sudo apt update – user535733 Feb 1 at 5:56
  • I KNOW but this is the output relevant to the issue the rest is not of any concern – Adam Feb 1 at 5:59
  • ok there it is, that is the full output – Adam Feb 1 at 6:02

First Update the System with the following command:

sudo apt-get update

Then try to install libevent-dev:

sudo apt-get install libevent-dev
  • Sorry mate same issue when I update prior to installation unfortunately – Adam Feb 1 at 6:04
  • Try with sudo apt-get upgrade. It will replace the Older version packages. – Sunil Valmiki Feb 1 at 6:09
  • ok thanks the output from this says that the package gdb was held back and not upgraded. Could this be relevant? – Adam Feb 1 at 6:13
  • Might be, Package gdb is GNU debugger package update this and Try for the libevent-dev. – Sunil Valmiki Feb 1 at 6:19
  • I corrected the problem comparing the content of my sources.list file to that list in questions like this thanks anyway though – Adam Feb 1 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.