我在升级系统时遇到问题,因为台面未满足的依赖关系。我尝试修复它,sudo apt-get --fix-broken install
但得到以下结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libegl-mesa0
The following packages will be upgraded:
libegl-mesa0
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0 B/148 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 255254 files and directories currently installed.)
Preparing to unpack .../libegl-mesa0_20.1~git2002021930.0021f7~oibaf~b_amd64.deb ...
Unpacking libegl-mesa0:amd64 (20.1~git2002021930.0021f7~oibaf~b) over (20.0~git2001301930.f09c46~oibaf~b) ...
dpkg: error processing archive /var/cache/apt/archives/libegl-mesa0_20.1~git2002021930.0021f7~oibaf~b_amd64.deb (--unpack):
trying to overwrite shared '/usr/share/glvnd/egl_vendor.d/50_mesa.json', which is different from other instances of package libegl-mesa0:amd64
Errors were encountered while processing:
/var/cache/apt/archives/libegl-mesa0_20.1~git2002021930.0021f7~oibaf~b_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
同时,我遇到了 HDMI 问题,这似乎导致我的壁纸出现奇怪的故障(有时所有 GNOME 菜单也出现奇怪的故障):
这可能是什么原因造成的以及如何解决?
答案1
我也遇到了同样的问题。它有所帮助:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libegl-mesa0_20.1~git2002031930.b550b7~oibaf~b_i386.deb