今天早上更新了 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
这应该能帮你解决问题。