通过 snap 安装的 Brave 运行了几个月,运行良好。两天以来,单击启动器中的 Brave 图标时无法启动。尝试从命令行运行 Brave 时,brave
我收到以下警告,浏览器启动但没有我的所有配置文件数据(书签、配置、历史记录),并且处于不安全的 --no-sandbox 模式。
main.go:224: cannot change mount namespace of snap "brave" according to change mount (/snap/gtk-common-themes/818/share/icons/Suru /snap/brave/44/data-dir/icons/Suru none bind,ro 0 0): cannot use "/snap/gtk-common-themes/818/share/icons/Suru" as bind-mount source: not a directory
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Gkr-Message: secret service operation failed: An AppArmor policy prevents this sender from sending this message to this recipient;
它看起来像是 snap-AppArmor 集成问题。
Ubuntu 18.04.1 LTS。
snap version
snap 2.36.2
snapd 2.36.2
series 16
ubuntu 18.04
kernel 4.15.0-42-generic
apt policy apparmor
apparmor:
Installed: 2.12-4ubuntu5.1
snap info brave
name: brave
summary: A browser with your interests at heart.
publisher: Brave Software (brave*)
contact: https://community.brave.com/
license: unset
description: |
Browse faster by blocking ads and trackers that violate your privacy and
cost you time and money.
commands:
- brave
snap-id: uE3hSmGE91m9MpbDEnUWi2vpeumH6gmv
tracking: stable
refresh-date: today at 10:26 IST
channels:
stable: v0.56.12-5.dev (44) 160MB -
candidate: ^
beta: ^
edge: ^
installed: v0.56.12-5.dev (44) 160MB -
答案1
答案2
这不是一个真正的解决方案,但至少它允许我访问 Brave 中的个人资料数据。
sudo snap revert brave
现在 Brave 可以正常启动。
答案3
第二部分中的答案已过时,因为 Brave snap 包已停产。目前 Brave 浏览器官方网站上有关在 Ubuntu 中安装 Brave 浏览器的说明如下。打开终端并输入:
sudo apt install apt-transport-https curl
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser