snap - 在20.04上,Chromium在更新后无法启动

分享于 

4分钟阅读

ubuntu

  繁體

问题:

今天早上更新了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")




答案1:

按ctrl+alt+t打开终端,并输入以下内容:


sudo add-apt-repository ppa:saiarcot895/chromium-beta


sudo apt-get update


sudo apt-get install chromium-browser




答案2:

引用了Snapcraft论坛

该错误是因为对snap进行了更新,以利用稳定的snap版本中尚未包含的接口。此特定版本的Chromium snap在此特定版本的snapd上将始终给出这个错误。

要修复它,需要做以下两种方法之一:1)snapd 2.46发布 (2)一个新的Chromium管理单元,没有发布system-packages-doc插件。

有关更详细的信息,请参阅这里报告的bug 。



STA  CHR  SNA  snap  Chromium