opengl 开发包在 ubuntu 18 上出现 404?让我抓狂

opengl 开发包在 ubuntu 18 上出现 404?让我抓狂

初始问题:

我需要编译一个 OpenGL 程序...它返回错误:gl.c:5:10:致命错误:GL/glut.h:没有这样的文件或目录 #include ^~~~~~~~~~~ 编译终止。

所以我尝试安装:

命令

sudo apt install freeglut3-dev.

返回,

Err:1 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic/main amd64 mesa-common-dev amd64 18.3~git1810120730.26a10e~oibaf~b
  404  Not Found [IP: 91.189.95.83 80]
Err:2 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic/main amd64 libgl1-mesa-dev amd64 18.3~git1810120730.26a10e~oibaf~b
  404  Not Found [IP: 91.189.95.83 80]
Unable to correct missing packages.
E: Failed to fetch http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu/pool/main/m/mesa/mesa-common-dev_18.3~git1810120730.26a10e~oibaf~b_amd64.deb  404  Not Found [IP: 91.189.95.83 80]
E: Failed to fetch http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu/pool/main/m/mesa/libgl1-mesa-dev_18.3~git1810120730.26a10e~oibaf~b_amd64.deb  404  Not Found [IP: 91.189.95.83 80]
E: Aborting install.

这有多难?请帮忙。

答案1

找到了。

回答:

sudo add-apt-repository ppa:paulo-miguel-dias/mesa

相关内容