ubuntu APT因包“libgl 1-mesa-dri”而损坏

disho6za  于 2023-06-21  发布在  其他
关注(0)|答案(1)|浏览(169)

APT命令根本不起作用,因为它与libglx-mesa和libgl 1-mesa-dri存在“未满足的依赖关系

root@pc /h/jose [100]# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libglx-mesa0 : Depends: libgl1-mesa-dri but it is not installable
 xorg : Depends: libgl1-mesa-dri but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我尝试使用诸如apt --fix-broken install、apt install -f、dpkg --configure -a等命令,以及许多页面和帖子,但都不起作用,我甚至禁用了所有的ppas以防万一。APT将不会执行任何行动,因为这个问题。

knsnq2tg

knsnq2tg1#

我已经使用了这个命令(提到了来自apt update输出的包被保留了下来):

sudo apt upgrade libegl-mesa0 libegl1-mesa libgbm1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libglx-mesa0 libxatracker2 mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers

并且升级已成功完成

相关问题