这是我尝试做任何与 apt 相关的事情时得到的输出:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libgl1-mesa-dri : Depends: libglapi-mesa (= 22.0.1-1ubuntu2) but 22.2~git2204220600.5e8433~oibaf~j is installed
Breaks: libgl1-mesa-dri:i386 (!= 22.0.1-1ubuntu2) but 22.2~git2204220600.5e8433~oibaf~j is installed
libgl1-mesa-dri:i386 : Recommends: libgl1-amber-dri:i386 but it is not installable
Breaks: libgl1-mesa-dri (!= 22.2~git2204220600.5e8433~oibaf~j) but 22.0.1-1ubuntu2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
我试过安装失败的东西,但没有用。也许有人能帮我
答案1
我遇到了和你同样的问题。试试这个,它可能会解决你的问题:
https://www.nixcraft.com/t/solved-apt-and-unmet-dependencies/2453/10
答案2
我遇到了同样的问题。降级到 libglapi-mesa (= 22.0.1-1ubuntu2)。IE apt install libglapi-mesa=22.02.1-1ubuntu2
。
然后,您可能需要删除当前 mesa 版本所来自的第三方存储库。但是,这样做时要小心,因为当我这样做时,我首先尝试删除不需要的存储库和 mesa 包,最终需要重新安装整个 GUI,直到执行包降级后问题才得到解决。