无法安装 OpenGL/GLUT 库

无法安装 OpenGL/GLUT 库

我正在尝试安装 OpenGL/GLUT 库,但总是出现此错误。有人能帮我吗?

我尝试使用命令安装 ilsudo apt-get 安装 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.

更新,我试图解决安装sudo apt 安装 libgl1-mesa-dev但我明白

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

我担心这是一个递归问题,我能用简单的方法解决它吗?

更新的结果sudo apt 安装-f

0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

相关内容