usu@U02:~$ sudo aa-complain /var/lib/snapd/apparmor/profiles/snap.brave.brave
Profile for /var/lib/snapd/apparmor/profiles/snap.brave.brave not found, skipping
usu@U02:~$
usu@U02:~$ sudo aa-complain /var/lib/snapd/apparmor/profiles/snap-update-ns.brave
Profile for /var/lib/snapd/apparmor/profiles/snap-update-ns.brave not found, skipping
usu@U02:~$
然而
usu@U02:~$ ls -alh /var/lib/snapd/apparmor/profiles/snap*brave*
-rw-r--r-- 1 root root 62K Jun 25 20:37 /var/lib/snapd/apparmor/profiles/snap.brave.brave
-rw-r--r-- 1 root root 438K Jun 25 20:37 /var/lib/snapd/apparmor/profiles/snap-update-ns.brave
usu@U02:~$
这是怎么回事?
我这样做是因为 Brave 浏览器快照应用程序无法启动。我相信我能够在安装完成后直接启动一次以进行一些配置。就这样。所有后续启动尝试都失败了。我从 GNOME dock 启动它。安装了最新更新的 Ubuntu 18.04。
但是,Ubuntu 上没有“usysconf”,也没有包管理器提供安装
可以从命令行启动 Brave
usu@U02:~$ snap run brave
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; type="method_call", sender=":1.103" (uid=1000 pid=3622 comm="/snap/brave/59/opt/brave.com/brave/brave " label="snap.brave.brave (enforce)") interface="org.freedesktop.DBus.Peer" member="Ping" error name="(unset)" requested_reply="0" destination="org.freedesktop.secrets" (uid=1000 pid=1603 comm="/usr/bin/gnome-keyring-daemon --daemonize --login " label="unconfined")
[3762:3762:0625/225153.096288:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
[3622:3755:0625/225153.305846:ERROR:rewards_service_impl.cc(185)] Failed to read file: /home/biri/snap/brave/59/.config/BraveSoftware/Brave-Browser/Default/ledger_state
[3779:3779:0625/225153.420928:ERROR:ledger_impl.cc(345)] Failed to initialize wallet
[3622:3622:0625/225154.488392:ERROR:CONSOLE(0)] "Fetch API cannot load https://pdfjs.robwu.nl/logpdfjs. Redirects to data: URL are allowed only when mode is "no-cors".", source: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/pdfHandler.html (0)
[3622:3622:0625/225154.488465:ERROR:CONSOLE(0)] "Uncaught (in promise) TypeError: Failed to fetch", source: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/pdfHandler.html (0)
[3622:3622:0625/225541.304923:ERROR:CONSOLE(1)] "Uncaught ReferenceError: brave_new_tab is not defined", source: chrome://newtab/ (1)
[3622:3622:0625/225548.256027:ERROR:CONSOLE(1)] "Uncaught ReferenceError: brave_new_tab is not defined", source: chrome://settings/ (1)
[3622:3753:0625/225638.475561:ERROR:printer_manager_dialog_linux.cc(83)] Failed to open printer manager dialog
[3622:3992:0625/225640.690851:ERROR:printer_manager_dialog_linux.cc(83)] Failed to open printer manager dialog
[3622:3753:0625/225642.535546:ERROR:printer_manager_dialog_linux.cc(83)] Failed to open printer manager dialog
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
[3622:3622:0625/230002.943704:ERROR:CONSOLE(1247)] "Uncaught TypeError: Cannot set property 'annotationAvailable' of undefined", source: chrome://print/pdf/pdf_viewer.js (1247)
usu@U02:~$
从 CL 启动 Brave 一次是不够的,跳过欢迎指南,然后从 Dock 启动。每次尝试从 GNOME 启动都失败。没有安装名为 pdfhandler 之类的扩展。