I'm on Ubuntu 22.04, latest update. Installed the torbrowser-launcher
from the official repo.
Doing this changes should make the torbrowser-launcher
works as expected. But before you do, you must remove this directories ~/.cache/torbrowser
, ~/.local/share/torbrowser
, ~/.config/torbrowser
as they save information for the launcher and the fix won't work using those.
Be aware that if you have a working Tor Browser installation, you will lose your settings and working installations. Using this fix for the torbrowser-launcher
doesn't take into account existing installations, but gives an idea on why the launcher fails to download the current version.
First change this line on /usr/lib/python3/dist-packages/torbrowser_launcher/common.py
on line 171, you will need root access to make changes to this file:
if hasattr(self, 'settings') and self.settings['force_en-US']:
language = 'en-US'
else:
#language = self.language
language = "ALL"
Commented out the variable language
and set it again with the value "ALL"
, that way the launcher will look for the correct signatures and tarballs files in the mirror.
Also made a change in line 277 of the same file, this time when setting up the variables to the install location, the launcher will refer to the language setting and set it as part of the directory installation, but the actual package downloaded by the launcher will refer to the directory as tor-browser
and not by tor-browser_ALL
as the launcher would expect it to do:
"tbb": {
"changelog": tbb_local \
+ "/tbb/" \
+ self.architecture \
+ "/tor-browser" \
+ "/Browser/TorBrowser/Docs/ChangeLog.txt",
#+ "/tor-browser_"
#+ language
"dir": tbb_local + "/tbb/" + self.architecture,
"dir_tbb": tbb_local \
+ "/tbb/" \
+ self.architecture \
+ "/tor-browser",
#+ "/tor-browser_"
#+ language,
"start": tbb_local \
+ "/tbb/" \
+ self.architecture \
+ "/tor-browser" \
+ "/start-tor-browser.desktop",
#+ "/tor-browser_"
#+ language
},
Here there are three entries that must be changed. All of them refers to /tor-browser_
+ language
as part of the installation directory. It must be changed to /tor-browser
and attention on the second entry as it must end with ,
.
This fix is terrible, it doesn't remove the language setting at all, just fixes it in order to make it work with what is available in the mirror. I guess we need to wait for the devs to make this fix on the repo package, by that time those changes will be rewritten and hopefully still works.
Hope this helps.