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

Linux64 - cannot download on Linux Mint #739

Open
bugsyb opened this issue Dec 31, 2024 · 3 comments
Open

Linux64 - cannot download on Linux Mint #739

bugsyb opened this issue Dec 31, 2024 · 3 comments

Comments

@bugsyb
Copy link

bugsyb commented Dec 31, 2024

Seems to be the same as:
#719

torbrowser-launcher 
Tor Browser Launcher
By Micah Lee, licensed under MIT
version 0.3.3
https://github.com/micahflee/torbrowser-launcher
Downloading Tor Browser for the first time.
Downloading https://aus1.torproject.org/torbrowser/update_3/release/Linux_x86_64-gcc3/x/en-US
Latest version: 14.0.3
Downloading https://dist.torproject.org/torbrowser/14.0.3/tor-browser-linux64-14.0.3_en-US.tar.xz.asc
Download Error: 404
@javsav
Copy link

javsav commented Jan 1, 2025

Have you tried both the package manager ( sudo apt-get install torbrowser-launcher ) and the flatpak ( flatpak install flathub org.torproject.torbrowser-launcher -y ) after installing flatpak? Which method are you having the issue with? Try the other way. I installed it with the package manager.

EDIT: Please see comment below for a potential fix.

@javsav
Copy link

javsav commented Jan 1, 2025

I just also realised, your issue may be the same as #715 . It seems likely to me. The linux64 should not be in the filename. The solution is to manually edit the common.py file - here are the relevant quotes from #715 discussion:

That linux64 in the URL looks questionable, the file should not contain that.

Just for reference, the code to blame is

torbrowser-launcher/torbrowser_launcher/common.py

Line 107 in 4652b44
arch = "linux64"

The _ALL also looks like it shouldn't be there

torbrowser-launcher/torbrowser_launcher/common.py

Line 111 in 4652b44
tarball_filename = "tor-browser-" + arch + "-" + tbb_version + "_ALL.tar.xz"

As a temporary workaround to get it to work, you can just edit the file, in my computer found at:

/usr/lib/python3.11/site-packages/torbrowser_launcher/common.py

Replacing the line 111
tarball_filename = "tor-browser-" + arch + "-" + tbb_version + "_ALL.tar.xz"
with
tarball_filename = "tor-browser-" + "linux-x86_64" + "-" + tbb_version + ".tar.xz
worked with the flatpak version.

@bugsyb
Copy link
Author

bugsyb commented Jan 3, 2025

Tried it with apt.
Thank you for the investigation. I did go around the problem by manually downloading and extracting browser to expected location .local/share/torbrowser/tbb/x86_64/
Would be great for other to fix the code as they might not be able to go around as I did.

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