安装 Steam 依赖项时出错

安装 Steam 依赖项时出错

我最近安装了一个软件包,导致电脑崩溃,但忽略了它会删除操作系统的很大一部分(Ubuntu 22.04.2 LTS)。虽然我已经恢复了由此错误造成的大部分损害,但在尝试启动 Steam 时遇到了问题。它尝试安装依赖项,但操作如下:

Steam needs to install these additional packages:
libc6:amd64 libc6:i386 libegl1:amd64 libegl1:i386 libgbm1:amd64 libgbm1:i386 libgl1-mesa-dri:amd64 libgl1-mesa-dri:i386 libgl1:amd64 libgl1:i386 steam-libs-i386:i386

Press return to proceed with the installation: 
.........W: https://hub.unity3d.com/linux/repos/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libegl1 is already the newest version (1.4.0-1).
libegl1 set to manually installed.
libgl1 is already the newest version (1.4.0-1).
libgl1 set to manually installed.
libc6 is already the newest version (2.35-0ubuntu3.1).
libc6:i386 is already the newest version (2.35-0ubuntu3.1).
libgbm1 is already the newest version (23.2~git2306280600.867851~oibaf~j).
libgbm1 set to manually installed.
libgl1-mesa-dri is already the newest version (23.2~git2306280600.867851~oibaf~j).
libgl1-mesa-dri set to manually installed.
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:
 libegl1:i386 : Depends: libegl-mesa0:i386 but it is not installable
 libgbm1 : Breaks: libgbm1:i386 (!= 23.2~git2306280600.867851~oibaf~j) but 23.2~git2306200600.ba4201~oibaf~j is to be installed
 libgbm1:i386 : Breaks: libgbm1 (!= 23.2~git2306200600.ba4201~oibaf~j) but 23.2~git2306280600.867851~oibaf~j is to be installed
 libgl1-mesa-dri : Breaks: libgl1-mesa-dri:i386 (!= 23.2~git2306280600.867851~oibaf~j) but 23.2~git2306200600.ba4201~oibaf~j is to be installed
 libgl1-mesa-dri:i386 : Depends: libglapi-mesa:i386 (= 23.2~git2306200600.ba4201~oibaf~j) but it is not installable
                        Breaks: libgl1-mesa-dri (!= 23.2~git2306200600.ba4201~oibaf~j) but 23.2~git2306280600.867851~oibaf~j is to be installed
 libglx0:i386 : Depends: libglx-mesa0:i386 but it is not installable
E: Unable to correct problems, you have held broken packages.

值得注意的是(或者可能不是),我记得安装的 libglx 或相关软件包首先使计算机 beaned。我当时正漫不经心地试图解决“损坏的软件包”问题,以修复另一个应用程序。另外,我不确定为什么在前几行中会出现对 Unity3D 的引用 - 这可能是个问题吗?谢谢!

编辑:我尝试手动安装列出的依赖项,但它们显然最终都依赖于 libglapi-mesa:i386,这要求我卸载必要的系统组件并重复我刚刚尝试恢复的操作……我尝试了各种方法来解决“持有损坏的包裹”但到目前为止没有成功。

答案1

我在我的系统上遇到了几乎相同的问题,我通过清除 oibaf PPA 解决了该问题:

sudo ppa-purge ppa:oibaf/graphics-drivers

ppa-purge如果尚未安装,您需要安装。

我在上面的日志中看到版本号中有“oibaf”,因此看来您在某个时候添加了此 PPA 并使用了其中的软件包。我怀疑该 PPA 和 Ubuntu 标准软件包之间最近出现了一些冲突。

相关内容