Azitech

Azimout's Linux weblog

Dropbox Linux installer fails if behind a proxy

with one comment

The .deb Dropbox package does not contain the actual Dropbox daemon, and tries to download it after the installation. If you’re behind an HTTP proxy, you most likely will get the error message:

Trouble connecting to Dropbox servers. Maybe your internet connection is down, or you need to set your http_proxy environment variable

However, you can easily verify (with the export command) that the http_proxy variable is set correctly!

Some people recommend the workaround (suggested by the Dropbox website for Linux servers) of downloading the .tar.gz, extracting and running from there. However I decided to investigate a bit further!

The /usr/bin/dropbox is a Python script. I found that the error is printed from line 250, after trying to urllib.urlopen(“http://www.dropbox.com/download?plat=lnx.x86_64”). Trying just that in a Python shell will cause an exception in /usr/lib/python2.7/ssl.py:

IOError: [Errno socket error] [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

On the other hand, opening the URL above in a browser or even through wget will run smoothly!

Advertisements

Written by azimout

21/08/2012 at 09:58

Posted in Problems

One Response

Subscribe to comments with RSS.

  1. I did not have the folder /usr/bin/dropbox but your post led me to the idea of separately downloading the files and then installing. Thanks!

    Luke

    17/03/2015 at 14:03


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: