[Pkg-anonymity-tools] Bug#758935: Bug#758935: torbrowser-launcher: fails to start: exit code 127
Daniel González Gasull
gasull at gmail.com
Mon Aug 25 01:06:53 UTC 2014
Hi Holger.
I didn't see anything in the output from the terminal that could help
investigate the issue. It just says that the I'm running the latest
version. I thought the exit code 127 would be the most informative
part.
Here is the output from the command line:
$ torbrowser-launcher
Tor Browser Launcher
By Micah Lee, licensed under GPLv3
version 0.1.3
https://github.com/micahflee/torbrowser-launcher
Initializing Tor Browser Launcher
Successfully loaded mirrors from /usr/share/torbrowser-launcher/mirrors.txt
Warning: can't load mirrors from
/usr/local/share/torbrowser-launcher/mirrors.txt
Importing keys
gpg: key 63FEE659: "Erinn Clark <erinn at torproject.org>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
Starting launcher dialog
LATEST VERSION 3.6.4
Checking for update
Running task: download_update_check
Downloading https://check.torproject.org/RecommendedTBBVersions
Updating over Tor
Finished receiving body: Response body fully received
Running task: attempt_update
Checking to see if update is needed
Latest version of TBB is installed, launching
As you can see, it doesn't display any error in the terminal.
Now I used ipdb in torbrowser-launcher to see what was exactly happening:
ipdb> n
> /usr/bin/torbrowser-launcher(1064)run()
1063 devnull = open('/dev/null', 'w')
-> 1064 subprocess.Popen([self.common.paths['tbb']['start']],
stdout=devnull, stderr=devnull)
1065
ipdb> self.common.paths['tbb']['start']
'/home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser'
Now running start-tor-browser from the command line:
$ /home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser
/home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser:
213: [: -ne: argument expected
Launching Tor Browser Bundle for Linux in
/home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser
/home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser:
231: /home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser:
./Browser/firefox: not found
Tor Browser exited abnormally. Exit code: 127
Researching a bit more. Does Browser/firefox exist? Yes:
$ find .local/ -name Browser
.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Data/Browser
.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser
.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/TorBrowser/Data/Browser
$ ls -l .local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/firefox
-rwx------ 1 gasull gasull 100640 Dec 31 1999
.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/firefox
So, what is happening in line 213 of start-tor-browser? This:
210 SYSARCHITECTURE=$(getconf LONG_BIT)
211 TORARCHITECTURE=$(expr "$(file Tor/tor)" : '.*ELF \([[:digit:]]*\)')
212
213 if [ $SYSARCHITECTURE -ne $TORARCHITECTURE ]; then
214 complain "Wrong architecture? 32-bit vs. 64-bit."
215 exit 1
216 fi
So I modify it to print the values of SYSARCHITECTURE and TORARCHITECTURE:
210 SYSARCHITECTURE=$(getconf LONG_BIT)
211 TORARCHITECTURE=$(expr "$(file Tor/tor)" : '.*ELF \([[:digit:]]*\)')
212
213 echo $SYSARCHITECTURE
214 echo $TORARCHITECTURE
215
216 if [ $SYSARCHITECTURE -ne $TORARCHITECTURE ]; then
217 complain "Wrong architecture? 32-bit vs. 64-bit."
218 exit 1
219 fi
And then I get this:
$ /home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser
64
/home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser:
216: [: -ne: argument expected
Launching Tor Browser Bundle for Linux in
/home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser
/home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser:
234: /home/gasull/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser:
./Browser/firefox: not found
Tor Browser exited abnormally. Exit code: 127
So TORARCHITECTURE is empty, that's why it fails.
How do we proceed from here?
Thank you.
--
Daniel González Gasull
BM-2cU97vL9X8pcPK3XDDJpa6Xu6nXpHVu8Eb
--------------------------------------------
I check email and SMS texts infrequently. Call me if you need a prompt response.
More information about the Pkg-anonymity-tools
mailing list