Ubuntu 18.04:Cinnamon 当前运行时没有视频硬件加速

Ubuntu 18.04:Cinnamon 当前运行时没有视频硬件加速

我最近更新了一些软件包,重新启动时出现错误,提示硬件加速已被禁用,并且包管理器不再起作用。

错误消息一直提到“libegl-mesa0”,所以我尝试删除它们,但我被告知使用sudo apt --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 libegl-mesa0:i386
The following NEW packages will be installed
  libegl-mesa0 libegl-mesa0:i386
0 to upgrade, 2 to newly install, 0 to remove and 9 not to upgrade.
Need to get 0 B/300 kB of archives.
After this operation, 698 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libegl-mesa0:amd64.
(Reading database ... 312876 files and directories currently installed.)
Preparing to unpack .../libegl-mesa0_20.1~git2002041930.b06469~oibaf~b_amd64.deb ...
Unpacking libegl-mesa0:amd64 (20.1~git2002041930.b06469~oibaf~b) ...
Selecting previously unselected package libegl-mesa0:i386.
Preparing to unpack .../libegl-mesa0_20.1~git2002041930.b06469~oibaf~b_i386.deb ...
Unpacking libegl-mesa0:i386 (20.1~git2002041930.b06469~oibaf~b) ...
dpkg: error processing archive /var/cache/apt/archives/libegl-mesa0_20.1~git2002041930.b06469~oibaf~b_i386.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:i386
Errors were encountered while processing:
 /var/cache/apt/archives/libegl-mesa0_20.1~git2002041930.b06469~oibaf~b_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我也尝试过sudo dpkg --force depends -P libegl-mesa0,并且得到了这个输出:

dpkg: libegl-mesa0:amd64: dependency problems, but removing anyway as you requested:
 libegl1:amd64 depends on libegl-mesa0.

(Reading database ... 312884 files and directories currently installed.)
Removing libegl-mesa0:amd64 (20.1~git2002041930.b06469~oibaf~b) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

我不知道这是否有任何作用,并且它并没有解决上述问题。

我该怎么办?

我正在使用 AMD GPU(确切地说是 R9 Fury),如果有帮助的话。

答案1

我解决了这个问题。

我进入恢复模式,并使用修复损坏的包选项和 apt-get clean。

然后它重新启动而没有图形驱动程序,然后我重新安装它们,它又正常工作了!

相关内容