-1

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 01 '19 at 05: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 Ledger Feb 01 '19 at 05: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 01 '19 at 05:56
  • I KNOW but this is the output relevant to the issue the rest is not of any concern – Adam Ledger Feb 01 '19 at 05:59
  • ok there it is, that is the full output – Adam Ledger Feb 01 '19 at 06:02
  • ah well one of the first things i did was update from the four main repositories, and with the exception of the US archive they have all installed their packages without any problem – Adam Ledger Feb 01 '19 at 06:06
  • cant you just show me what my output of sudo apt update should look like, and i can work with that? – Adam Ledger Feb 01 '19 at 06:08
  • ok well the point is the mirrors i do have are not directly relevant to the successful installation of this package that is in the main repositories as you said so, i feel as if this wont help at all – Adam Ledger Feb 01 '19 at 06:11
  • It's pretty simple: The package you want is definitely in '-main'. If apt cannot locate the package, then your local package database is not being populated from your chosen mirror (that's what apt update does). Hence the request for a complete apt update output - it will tell us if you have a source problem, or any of several types of network problem. – user535733 Feb 01 '19 at 06:23
  • A proper apt update looks like this: https://pastebin.ubuntu.com/p/8g45Vxgs3C/ – user535733 Feb 01 '19 at 06:23
  • was resolved by adding the content missing in the sources.list file, at some point I must have wiped it accidentally – Adam Ledger Feb 01 '19 at 12:40
  • https://askubuntu.com/questions/1036408/what-is-the-default-content-of-etc-apt-sources-list-in-ubuntu-18-04-lts-bionic – Adam Ledger Feb 01 '19 at 12:40

1 Answers1

1

First Update the System with the following command:

sudo apt-get update

Then try to install libevent-dev:

sudo apt-get install libevent-dev