2

I am trying to install libsystemd-dev using apt-get on Ubuntu 14.04. While executing this, I get the following error:

 **Installing pre-install packages ....
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libsystemd-dev**

I have already tried using apt-get update, but no luck.

I searched for libsystemd-dev here, and it's available for Wily distribution, but I am using trusty. Is there a way to get a package installed from another distribution?

David
  • 3,487
Harit
  • 121

1 Answers1

3

Try doing this:

sudo apt-file update to download the package list.

sudo apt-file search libsystemd

After this you will get the list of packages:

libsystemd-daemon-dev and other packages like libsystemd-login-dev and libsystemd-journal-dev

Install these packages using sudo apt-get install <package>

Elder Geek
  • 36,752
user620974
  • 31
  • 2