1

I'm new to Linux, but I'm really interested in learning it and using it as my main development platform. I'm running into trouble, though, installing a library I use in my projects.

Whenever I try to install SFML with sudo apt-get install libsfml-dev I end up with an error:

The following packages have unmet dependencies:
libsfml-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
                        libgl-dev
E: Unable to correct problems, you have held broken packages.

And if I try to sudo apt-get install libgl1-mesa-dev I get:

The following packages have unmet dependencies:
libgl1-mesa-dev : Depends: libgl1-mesa-glx (= 12.0.3-1ubuntu2) but 12.0.6-0ubuntu0.16.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.`

Like I said, I'm new to Linux and have more or less no idea what I'm doing here. Any help would be greatly appreciated.

Thanks!

muru
  • 197,895
  • 55
  • 485
  • 740
Leah
  • 11

1 Answers1

0

It's a good practice to always do update and upgrades before and after any installation, so run:

sudo apt update
sudo apt full-upgrade
George Udosen
  • 36,677