Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flatpak] First Download stuck at 0 Percent #657

Open
theatischbein opened this issue Nov 11, 2022 · 1 comment
Open

[flatpak] First Download stuck at 0 Percent #657

theatischbein opened this issue Nov 11, 2022 · 1 comment

Comments

@theatischbein
Copy link

I'm trying to run the torbrowser-launcher via flatpak and can't get the first download to work. The following error is printed:

$~ flatpak run --share=network com.github.micahflee.torbrowser-launcher
Tor Browser Launcher
By Micah Lee, licensed under MIT
version 0.3.5
https://github.com/micahflee/torbrowser-launcher
Gtk-Message: 11:30:21.423: Failed to load module "appmenu-gtk-module"
Gtk-Message: 11:30:21.505: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:30:21.505: Failed to load module "canberra-gtk-module"
_IceTransSocketUNIXConnect: Cannot connect to non-local host pop-os
_IceTransSocketUNIXConnect: Cannot connect to non-local host pop-os
Qt: Session management error: Could not open network socket
Downloading Tor Browser for the first time.
Downloading https://aus1.torproject.org/torbrowser/update_3/release/Linux_x86_64-gcc3/x/en-US

The download is stuck at 0 percent, even if I wait for longer times.

Expected behavior: Starting download or timeout and / or error message

My system:

  • Linux xxx 6.0.2-76060002-generic #202210150739~1666289067~22.04~fe0ce53 SMP PREEMPT_DYNAMIC Thu O x86_64 x86_64 x86_64 GNU/Linux
  • Pop!_OS 22.04 LTS
  • Flatpak 1.12.7
  • Flatpak torbrowser version 0.3.5
@theatischbein theatischbein changed the title [flatpak] First Download Failed [flatpak] First Download stuck at 0 Percent Nov 11, 2022
@JAlexLong
Copy link

JAlexLong commented Mar 21, 2024

I am currently experiencing the same problem.

  • Linux artemis 6.6.10-76060610-generic #202401051437~1709764300~22.04~379e7a9 SMP PREEMPT_DYNAMIC Thu M x86_64 x86_64 x86_64 GNU/Linux
  • Pop!_OS 22.04 LTS
  • Flatpack 1.14.4
  • Flatpak torbrowser version 0.3.7

Here is the output of flatpak run org.torproject.torbrowser-launcher

Tor Browser Launcher
By Micah Lee & Tor Project, licensed under MIT
version 0.3.7
https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/
Gtk-Message: 11:21:01.915: Failed to load module "xapp-gtk3-module"
Gtk-Message: 11:21:02.008: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:21:02.010: Failed to load module "canberra-gtk-module"
qt.qpa.qgnomeplatform: Could not find color scheme  ""
Qt: Session management error: Could not open network socket
Downloading Tor Browser for the first time.
Downloading https://aus1.torproject.org/torbrowser/update_3/release/Linux_x86_64-gcc3/x/ALL

It hangs from here at 0% until it is force-closed.

UPDATE: I found a workaround for my issue here: #715 (comment)

In summary, the issue is in ./torbrowser-launcher/torbrowser-launcher/common.py in the source code. The arch variable being used to generate the download link is not being set correctly by the if statement on line 97.

To fix this, change line 102 from:
tarball_filename = "tor-browser-" + arch + "-" + tbb_version + ".tar.xz"

to this:
tarball_filename = "tor-browser-" + "linux-x86_64" + "-" + tbb_version + ".tar.xz"

Once common.py has been fixed AND you are back in the main repo directory, run ./build_deb.sh followed by sudo dpkg -i deb_dist/torbrowser-launcher_0.3.7-1_all.deb.

(I'm new to submitting these, so any feedback is appreciated. Sorry for necro-ing a bit here.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants