After a trial and error process I thought I had successfully installed brave on my Kali vm, but I am now encountering a problem that seems to be more common for Debian users, namely that the browser won’t open. When I click the launch icon, my cursor will show it’s processing for a few seconds, but then goes back to normal. Nothing else happens. If I try launching it from the terminal, I get this error message: (brave-browser:5728): Gtk-WARNING **: 12:05:15.154: cannot open display:
I followed the following steps to install:
- 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 -
- source /etc/os-release
- echo “deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main” | sudo tee /etc/apt/sources.list.d/brave-browser-release-bionic.list
- sudo apt update
- sudo apt install brave-keyring brave-browser
In addition, I enabled user namespaces using: sudo sysctl kernel.unprivileged_userns_clone=1
I also switched to a regular user (not root, which is standard on kali) to avoid the --no-sandbox issue (at least I think that’s what it did).
I have already tried removing brave, purging it, cleaning the apt and reinstalling, but to no avail.
While browsing for a fix, I noticed that other Debian users have had similar issues but unfortunately I haven’t been able to find a solution that works for me.
Does anyone know what the issue may be?
Pls let me know if you need more info, I’m quite new to Linux so I don’t know how to provide a more detailed error report atm.
Thanks in advance!