尝试安装 32 位 OpenGL 库时出现依赖问题

尝试安装 32 位 OpenGL 库时出现依赖问题

我的系统是联想 Thinkpad T450s,带集成显卡。从 Lubuntu 18.04 升级到 18.10 后(我直到这次升级后才知道不应该这样做),我在 Wine 中运行 GameMaker 游戏时遇到了麻烦,大概是因为缺少 32 位 libGL:

0009:err:wgl:init_opengl 无法加载 libGL:libGL.so.1:无法打开共享对象文件:没有此文件或目录

我认为libglx-mesa0:i386这可能是正确的安装包,但我在尝试安装时遇到了一些奇怪的错误,这表明依赖关系有问题。我之前从 PPA 安装了一些英特尔驱动程序,但我ppa-purge在升级之前就安装了。我现在该怎么办?

$ sudo apt install libglx-mesa0:i386

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libglx-mesa0:i386 : Depends: libdrm2:i386 (>= 2.4.75) but it is not going to be installed
                     Depends: libglapi-mesa:i386 (= 18.2.2-0ubuntu1) but it is not going to be installed
                     Depends: libgl1-mesa-dri:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo aptitude install libglx-mesa0:i386印刷:

The following NEW packages will be installed:
  libdrm-amdgpu1:i386{ab} libdrm-intel1:i386{ab} libdrm-nouveau2:i386{ab} libdrm-radeon1:i386{ab} libdrm2:i386{ab} libedit2:i386{a} libelf1:i386{a} libgl1-mesa-dri:i386{ab} 
  libglapi-mesa:i386{ab} libglx-mesa0:i386{b} libllvm7:i386{ab} libpciaccess0:i386{a} libx11-xcb1:i386{a} libxcb-dri2-0:i386{a} libxcb-dri3-0:i386{a} libxcb-glx0:i386{a} 
  libxcb-present0:i386{a} libxcb-sync1:i386{a} libxdamage1:i386{a} libxshmfence1:i386{a} 
0 packages upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.2 MB of archives. After unpacking 234 MB will be used.
The following packages have unmet dependencies:
 libdrm-nouveau2 : Breaks: libdrm-nouveau2:i386 (!= 2.4.96+git1812190630.597725~oibaf~b) but 2.4.95-1 is to be installed
 libdrm-nouveau2:i386 : Breaks: libdrm-nouveau2 (!= 2.4.95-1) but 2.4.96+git1812190630.597725~oibaf~b is installed
 libllvm7 : Breaks: libllvm7:i386 (!= 1:7.0.1-1~oibaf~b) but 1:7-3 is to be installed
 libllvm7:i386 : Breaks: libllvm7 (!= 1:7-3) but 1:7.0.1-1~oibaf~b is installed
 libglapi-mesa : Breaks: libglapi-mesa:i386 (!= 19.0~git1812271930.6adbd9~oibaf~b) but 18.2.2-0ubuntu1 is to be installed
 libglapi-mesa:i386 : Breaks: libglapi-mesa (!= 18.2.2-0ubuntu1) but 19.0~git1812271930.6adbd9~oibaf~b is installed
 libdrm-amdgpu1 : Breaks: libdrm-amdgpu1:i386 (!= 2.4.96+git1812190630.597725~oibaf~b) but 2.4.95-1 is to be installed
 libdrm-amdgpu1:i386 : Breaks: libdrm-amdgpu1 (!= 2.4.95-1) but 2.4.96+git1812190630.597725~oibaf~b is installed
 libdrm2 : Breaks: libdrm2:i386 (!= 2.4.96+git1812190630.597725~oibaf~b) but 2.4.95-1 is to be installed
 libdrm2:i386 : Breaks: libdrm2 (!= 2.4.95-1) but 2.4.96+git1812190630.597725~oibaf~b is installed
 libgl1-mesa-dri : Breaks: libgl1-mesa-dri:i386 (!= 19.0~git1812271930.6adbd9~oibaf~b) but 18.2.2-0ubuntu1 is to be installed
 libgl1-mesa-dri:i386 : Breaks: libgl1-mesa-dri (!= 18.2.2-0ubuntu1) but 19.0~git1812271930.6adbd9~oibaf~b is installed
 libdrm-intel1 : Breaks: libdrm-intel1:i386 (!= 2.4.96+git1812190630.597725~oibaf~b) but 2.4.95-1 is to be installed
 libdrm-intel1:i386 : Breaks: libdrm-intel1 (!= 2.4.95-1) but 2.4.96+git1812190630.597725~oibaf~b is installed
 libdrm-radeon1 : Breaks: libdrm-radeon1:i386 (!= 2.4.96+git1812190630.597725~oibaf~b) but 2.4.95-1 is to be installed
 libdrm-radeon1:i386 : Breaks: libdrm-radeon1 (!= 2.4.95-1) but 2.4.96+git1812190630.597725~oibaf~b is installed
 libglx-mesa0 : Breaks: libglx-mesa0:i386 (!= 19.0~git1812271930.6adbd9~oibaf~b) but 18.2.2-0ubuntu1 is to be installed
 libglx-mesa0:i386 : Breaks: libglx-mesa0 (!= 18.2.2-0ubuntu1) but 19.0~git1812271930.6adbd9~oibaf~b is installed
open: 48; closed: 2024; defer: 21; conflict: 30                                                                                                                                                .The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libdrm-amdgpu1:i386 [Not Installed]                
2)     libdrm-intel1:i386 [Not Installed]                 
3)     libdrm-nouveau2:i386 [Not Installed]               
4)     libdrm-radeon1:i386 [Not Installed]                
5)     libdrm2:i386 [Not Installed]                       
6)     libgl1-mesa-dri:i386 [Not Installed]               
7)     libglapi-mesa:i386 [Not Installed]                 
8)     libglx-mesa0:i386 [Not Installed]                  
9)     libllvm7:i386 [Not Installed]                      



Accept this solution? [Y/n/q/?] 

答案1

Fkraiem 在评论中提出的建议 — 重新添加 PPA、更新、升级,最后再来ppa-purge一遍 — 解决了依赖问题。我能够安装libglx-mesa0:i386。结果发现并没有提供libGL.so,但libglvnd-dev:i386确实提供了。

相关内容