Unable to install OpenGL/GLUT libraries

I'm trying to install OpenGL/GLUT libraries but I always get this error. Can someone help me?

I tryed to install il using the command sudo apt-get install freeglut3-dev

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

Update, I tried to solve installing sudo apt install libgl1-mesa-dev but I get

The following packages have unmet dependencies: libgl1-mesa-dev : Depends: mesa-common-dev (= 11.2.0-1ubuntu2) but it is not going to be installed Depends: libgl1-mesa-glx (= 11.2.0-1ubuntu2) but 11.2.0-1ubuntu2.2 is to be installed Depends: libdrm-dev (>= 2.4.65) but it is not going to be installed

My fear is that this is a recursive problem, can I solve it in a simple way?

Update result of sudo apt install -f

0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
9 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like