20.04 更新后 Chromium 无法启动

20.04 更新后 Chromium 无法启动

今天早上更新了 Ubuntu。我看到了一条关于 Chromium 切换到 snap 的消息。现在 Chromium 无法启动:

jedi@Kramer:~$ chromium
[24999:25138:0722/180759.356229:ERROR:object_proxy.cc(622)] Failed to call method: org.freedesktop.DBus.ListActivatableNames: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.174" (uid=1000 pid=24999 comm="/snap/chromium/1229/usr/lib/chromium-browser/chrom" label="snap.chromium.chromium (enforce)") interface="org.freedesktop.DBus" member="ListActivatableNames" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
[25139:25139:0100/000000.413388:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
Trace/breakpoint trap (core dumped)
[25139:25160:0100/000000.485651:ERROR:gbm_wrapper.cc(272)] Failed to export buffer to dma_buf: No such file or directory (2)
[25139:25160:0100/000000.485709:ERROR:gbm_wrapper.cc(272)] Failed to export buffer to dma_buf: No such file or directory (2)
[25139:25160:0100/000000.485736:ERROR:gbm_wrapper.cc(272)] Failed to export buffer to dma_buf: No such file or directory (2)
[last line repeated multiple times]

与 的信息相同chromium-browser

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal
$ snap info chromium
name:      chromium
summary:   Chromium web browser, open-source version of Chrome
publisher: Canonical#
store-url: https://snapcraft.io/chromium
contact:   https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bugs?field.tag=snap
license:   unset
description: |
  An open-source browser project that aims to build a safer, faster, and more stable way for all
  Internet users to experience the web.
commands:
  - chromium.chromedriver
  - chromium
snap-id:      XKEcBqPM06H1Z7zGOdG5fbICuf8NWK5R
tracking:     latest/stable
refresh-date: today at 18:07 CEST
channels:
  latest/stable:    84.0.4147.89 2020-07-15 (1229) 166MB -
  latest/candidate: 84.0.4147.89 2020-07-18 (1235) 166MB -
  latest/beta:      84.0.4147.85 2020-07-09 (1222) 164MB -
  latest/edge:      85.0.4183.26 2020-07-17 (1234) 166MB -
installed:          84.0.4147.89            (1229) 166MB -
WARNING: There is 1 new warning. See 'snap warnings'.
$ snap warnings
last-occurrence:  today at XX:XX XX
warning: |
  snap "chromium" has bad plugs or slots: system-packages-doc (unknown interface
  "system-packages-doc")
$ snap --version
snap    2.45.2
snapd   2.45.2
series  16
ubuntu  20.04
kernel  5.4.0-42-generic

有人知道如何解决这个问题吗?

答案1

遇到了同样的问题,通过移动到捕捉边缘释放解决了该问题。

sudo snap refresh --edge chromium

仍然有相同的紧急警告但至少铬已经启动!

答案2

目前,直到问题解决或者如果您愿意这样做,您可以通过“正常”方式轻松安装 Chromium。

CTRL++ALT打开T终端并输入以下内容:

sudo add-apt-repository ppa:saiarcot895/chromium-beta
sudo apt-get update
sudo apt-get install chromium-browser

这应该能帮你解决问题。

答案3

引用 Snapcraft 论坛的话,

出现此错误的原因是,Snap 已更新,以使用尚未包含在 snapd 稳定版本中的接口。此特定版本的 Chromium snap 在此特定版本的 snapd 上始终会出现此错误。

论坛上引用了两种修复方法

为了解决这个问题,需要发生以下两件事之一:(1)发布 snapd 2.46,或者(2)发布一个没有 system-packages-doc 插件的新 chromium snap 版本。

欲了解更详细信息,请参阅错误报告这里

已提供修复。请参阅此处的链接评论,但在稳定频道中仍然不可用。

希望很快就能收到!

相关内容