1

Trying to install tor browser using sudo apt install -y torbrowser-launcher. Everything installs fine with no errors, then I run torbrowser-launcher and get this.

$ torbrowser-launcher
Tor Browser Launcher
By Micah Lee, licensed under MIT
version 0.3.2
https://github.com/micahflee/torbrowser-launcher
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)

I tried googling for some fixes/ways to fix this but nothing so far has fixed my issue and my Linux knowledge is not good enough to do this on my own.

edit: I am running Ubuntu on my laptop as its only operating system, no VM's or anything.

6
  • Have you tried downloading the Tor Browser package directly from their website? It should run without any installation necessary, just need to unpack it.
    – Sebastian
    May 25 '20 at 17:37
  • Yes but I get a .desktop file which I cannot run, only open in a text editor
    – tarsier
    May 25 '20 at 18:01
  • You should be able to run the start-tor-browser.desktop file from a terminal, or via right-click, or by actually putting it in your ~/Desktop directory and double-clicking it on the desktop. But maybe you will have to adapt the path to the executable to where you actually unpacked it.
    – Sebastian
    May 25 '20 at 18:15
  • It's not letting me run, it just opens a text editor.
    – tarsier
    May 25 '20 at 19:15
  • 1
    Managed to fix it somehow it just popped up as a program.
    – tarsier
    May 25 '20 at 19:29
1

I would suggest you to install Tor using the method described by the Tor Project instead of the method which you've used:

  1. Navigate to the Tor Browser download page.

  2. Download the GNU/Linux .tar.xz file

  3. (Recommended) Verify the file's signature.

  4. When the download is complete, extract the archive with the command tar -xf [TB archive] or by using an archive manager.

  5. You'll need to tell your GNU/Linux that you want the ability to execute shell scripts from the graphical interface. Navigate to the newly extracted Tor Browser directory. Right click on start-tor-browser.desktop, open Properties or Preferences and change the permission to allow executing file as program. Double-click the icon to start up Tor Browser for the first time.

  6. Alternatively, from inside the Tor Browser directory, you can also start from the command line by running:

    ./start-tor-browser.desktop
    

For more information, you can visit their website: https://tb-manual.torproject.org/

Not the answer you're looking for? Browse other questions tagged or ask your own question.