Brave launches but nothing happens

Whenever I attempt to open Brave on my Dell XPS 13 9360 running Ubuntu Mate, the browser opens but does nothing. DuckDuckGo homepage is not loaded, I can’t access settings, history, bookmarks, anything. Attempting to launch in terminal produces the following:

[37004:37004:0721/185803.153535:ERROR:brave_new_tab_message_handler.cc(194)] Ads service is not initialized!
[37004:37021:0721/185803.349315:ERROR:nss_util.cc(349)] After loading Root Certs, loaded==false: NSS error code: -8018
[37004:37004:0721/185813.237280:ERROR:sharing_service.cc(222)] Device registration failed with fatal error

How can this issue be reproduced?

  1. Open Brave
  2. I’m eventually told the page is taking a while to respond and asked if I want to kill it.

Expected result: It should lead to start.duckduckgo.com

Brave Version( checked using Synaptic Package Manager): 1.41.100

Additional Information: Have attempted launching without the GPU from the terminal as well as launching an incognito window and within firejail, as well as uninstalling, reinstalling, upgrading, and deleting the Brave Software folder in .config. I have had no success getting Brave to work properly on this machine (works fine on my Thinkpad running Ubuntu)

How did you install Brave? Seems like your package manager is aware of it, does that imply it’s an Ubuntu-provided package?

What version of Ubuntu is that?

I installed Brave via Ubuntu MATE’s Software Boutique, which automatically adds the repository as recommended on the Brave website.
I’m running 22.04 LTS of both Ubuntu (which does not have the error) and Ubuntu MATE (which does)

What do you get from the following?

which brave-browser
ldd $(which brave-browser) (assuming the first which points you at the actual binary)

which brave-browser
ldd $(which brave-browser)

returns

/usr/bin/brave-browser
	not a dynamic executable

I’m not sure why the space is there

Thanks.

What about
file $(which brave-browser)

And then if it’s a symbolic link, repeat with file against the link target, and so on.

Essentially we’re trying to find out more about the actual binary app, but its location is probably being obscured by multiple levels of symlinks and wrapper scripts.

/usr/bin/brave-browser: symbolic link to /etc/alternatives/brave-browser

That in turn leads to

/usr/bin/brave-browser-stable

a Link to shell script (application/x-shellscript), leading to

/opt/brave.com/brave/brave-browser

which, as far as I can tell, is as far as the rabbit hole goes. Attempting to launch Brave directly from that point yields the same lack of functionality described in my initial post.

The binary is probably at /opt/brave.com/brave/brave then.

In which case, what does ldd /opt/brave.com/brave/brave yield?

Are all the available updates applied to the Mate system?

Did it ever work on this system?

Do you have other browsers on the system? I’m especially curious whether any other Chromium-based browsers (mainly Chromium or Chrome) have the same issue.

	linux-vdso.so.1 (0x00007fffbb3a3000)
	/usr/local/lib/AppProtection/libAppProtection.so (0x00007f00af400000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f00af6b0000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f00af6ab000)
	libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f00af64b000)
	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f00af2c6000)
	libnss3.so => /lib/x86_64-linux-gnu/libnss3.so (0x00007f00af199000)
	libnssutil3.so => /lib/x86_64-linux-gnu/libnssutil3.so (0x00007f00af167000)
	libsmime3.so => /lib/x86_64-linux-gnu/libsmime3.so (0x00007f00af13d000)
	libnspr4.so => /lib/x86_64-linux-gnu/libnspr4.so (0x00007f00af0fd000)
	libatk-1.0.so.0 => /lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007f00af0d3000)
	libatk-bridge-2.0.so.0 => /lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0 (0x00007f00af09b000)
	libcups.so.2 => /lib/x86_64-linux-gnu/libcups.so.2 (0x00007f00aeffd000)
	libgio-2.0.so.0 => /lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f00aee25000)
	libdrm.so.2 => /lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f00af631000)
	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f00aedd7000)
	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f00aeda6000)
	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f00aed7c000)
	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f00aed35000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f00aec4e000)
	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f00aeb0e000)
	libXcomposite.so.1 => /lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f00aeb09000)
	libXdamage.so.1 => /lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f00aeb04000)
	libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f00aeaef000)
	libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f00aeae5000)
	libXrandr.so.2 => /lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f00aead8000)
	libgbm.so.1 => /lib/x86_64-linux-gnu/libgbm.so.1 (0x00007f00aeac7000)
	libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f00aea60000)
	libcairo.so.2 => /lib/x86_64-linux-gnu/libcairo.so.2 (0x00007f00ae938000)
	libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007f00ae835000)
	libatspi.so.0 => /lib/x86_64-linux-gnu/libatspi.so.0 (0x00007f00ae7f9000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f00ae7d9000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f00ae5b1000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f00bc353000)
	libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x00007f00ae59d000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f00ae371000)
	libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f00ae364000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f00ae2ec000)
	libplc4.so => /lib/x86_64-linux-gnu/libplc4.so (0x00007f00ae2e5000)
	libplds4.so => /lib/x86_64-linux-gnu/libplds4.so (0x00007f00ae2e0000)
	libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f00ae28c000)
	libavahi-common.so.3 => /lib/x86_64-linux-gnu/libavahi-common.so.3 (0x00007f00ae27e000)
	libavahi-client.so.3 => /lib/x86_64-linux-gnu/libavahi-client.so.3 (0x00007f00ae268000)
	libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f00ae07d000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f00ae061000)
	libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f00ae05a000)
	libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007f00ae016000)
	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f00adfea000)
	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f00adf21000)
	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f00adf1b000)
	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f00adf13000)
	libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f00adf06000)
	libwayland-server.so.0 => /lib/x86_64-linux-gnu/libwayland-server.so.0 (0x00007f00adef0000)
	libfribidi.so.0 => /lib/x86_64-linux-gnu/libfribidi.so.0 (0x00007f00aded2000)
	libthai.so.0 => /lib/x86_64-linux-gnu/libthai.so.0 (0x00007f00adec7000)
	libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f00addf8000)
	libpixman-1.so.0 => /lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007f00add4d000)
	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f00add03000)
	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f00adc3b000)
	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f00adbfe000)
	libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f00adbf9000)
	libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f00adbea000)
	libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f00adb1f000)
	libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f00adaf0000)
	libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f00adae8000)
	libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f00adada000)
	libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f00ad99f000)
	libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f00ad97e000)
	libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f00ad7d4000)
	libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f00ad7bc000)
	libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x00007f00ad774000)
	libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x00007f00ad72c000)
	libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f00ad6aa000)
	libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f00ad673000)
	libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f00ad5dc000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f00ad5af000)
	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f00ad4e0000)
	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f00ad4c0000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f00ad4b5000)
	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f00ad377000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f00ad35f000)
	libdatrie.so.1 => /lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007f00ad354000)
	libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f00ad32d000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f00ad324000)
	libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f00ad316000)
	libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f00ad30f000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f00ad2f9000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f00ad2d3000)
	libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f00ad2c6000)
	libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f00ad2a3000)

I’ve been updating regularly, hoping one would be pushed that solved the problem. No joy there. It was, and remains, my default browser on the system. Currently using Firefox for internet browsing right now (which I know doesn’t help you due to not being Chromium based).
They’ve never been installed until now, but I checked Chrome and Chromium to assist trouble shooting. Chrome does not work. It returns the same

[12280:12351:0723/121014.639108:ERROR:nss_util.cc(349)] After loading Root Certs, loaded==false: NSS error code: -8018

error that Brave did. Chromium does work, however, it’s my understanding that Chromium only exists as a Snap package within the Ubuntu ecosystem. This subsequently gave me the idea to install Brave as a snap, even though the website says that the version available from the repositories is better maintained. Using the Brave Snap works (although I can see that the settings are not as robust as what was in the repo version).

So unless you see something I don’t, it appears we have A solution, though not necessarily THE solution.

OK. I suspect it has something to do with the NSS library but it appears to be ‘finding’ it based on your ldd output.

I am glad the Snap package works for you. This suggests that something ‘different’ is done when packaging it that way that for whatever reason, obviously works on your system. Not sure what that difference is – maybe whoever is responsible for packaging it could provide some insight.

Another possibility is that the certificates on the system are either out of date, or have been trashed somehow. Typically you’d get system cert updates from the distribution, so I’m not sure how that could happen if you’ve been applying updates, unless it’s an older version that is no longer supported so they don’t provide updates anymore.