apt-get install debian-wizard

Insider infos, master your Debian/Ubuntu distribution

  • About
    • About this blog
    • About me
    • My free software history
  • Support my work
  • Get the newsletter
  • More stuff
    • Support Debian Contributors
    • Other sites
      • My company
      • French Blog about Free Software
      • Personal Website (French)
  • Mastering Debian
  • Contributing 101
  • Packaging Tutorials
You are here: Home / News / Debian News / Official Debian/Ubuntu packages for Dropbox

Official Debian/Ubuntu packages for Dropbox

June 6, 2011 by Raphaël Hertzog

Dropbox is a popular service to synchronize files between multiple computers. The service is entirely proprietary but the company is Linux friendly and provides Linux binaries ready to use. They even provide Ubuntu packages that wrap the dropbox client and provide integration with Nautilus.

A bit of story

Unfortunately for Debian users, those packages do not work on Debian due to a dependency that can’t be satisfied (because Ubuntu introduced an epoch on the version of their nautilus package that Debian doesn’t have). This was even reported in a Squeeze review in Linux Weekly News.

At some point, Ivan Borzenkov introduced a dropbox package to Debian but it was not based on the above package, instead it packaged directly the proprietary binaries. This was a bad decision because the binaries bundle a set of LGPL libraries and nobody from Debian wanted to do the required work to provide the corresponding source code. So the package got dropped (see bug #610300).

More recently several persons filed ITP (Intent To Package) bugs stating their willingness to re-introduce dropbox in Debian, but after many months lingering in the bug tracking system (see #544499, #613788), they have been turned back to RFP (Request For Package) because they changed their minds.

What I did

Being a dropbox user myself (despite the recent proof that data stored on dropbox is not 100% private), I offered sponsorship to the volunteers who wanted to package dropbox. But it turns out this was not enough to motivate someone to complete the task.

In the mean time I was still using the old dropbox package that was removed (it used to be downloadable from snapshot.debian.org).

While this was good enough for me, it’s clearly not OK in the long term and way too difficult for the majority of users. So this week-end I spent some hours to create a proper package.

It’s loosely based on the package provided by Dropbox but I upgraded the packaging and changed the way it works. I patched the dropbox wrapper to provide a “dropbox update” command that downloads and updates the proprietary binaries. They are now stored in /var/lib/dropbox instead of having a copy in each user’s home directory (~/.dropbox-dist/). This update command is run by the postinst so that installing the package immediately downloads the proprietary binaries.

Get the Dropbox packages for Debian

The package nautilus-dropbox has been uploaded to Debian unstable, it’s currently in the NEW queue but will shortly reach the mirrors. Then you will be able to You can install the package with a simple apt-get install nautilus-dropbox (provided that you activated the non-free section since that’s where the package is hosted, it can’t be part of Debian since it requires the proprietary binaries to be useful).

In the mean time you can get the packages from the links below:

  • For Debian Squeeze: i386 amd64 (now in backports.debian.org)
  • For Debian unstable/wheezy: i386 amd64 (now in wheezy/sid)
  • For Debian unstable with GNOME3 from experimental: i386 amd64 (now in experimental)

Get the Dropbox packages for Ubuntu

I have setup a PPA for nautilus-dropbox. Feel free to use it in place of the upstream packages.

$ sudo add-apt-repository ppa:hertzog/nautilus-dropbox
$ sudo apt-get update
$ sudo apt-get install nautilus-dropbox

It also includes packages for oneiric, but in theory once the package is accepted into Debian, it should appear in oneiric shortly after.

Package maintenance

I have done the initial packaging work but I don’t really want to maintain it in the long term. I have more than enough to do with dpkg and my other packages. So if you are interested in maintaining this package, please get in touch with me. You should know a bit of python since there are Debian-specific patches of the upstream code. The package is maintained in a git repository.

Feedback

If you have encountered a problem with one of those packages, feel free to leave a comment.

If you’re an happy user of the above packages, click here to find out how you can thank me.

I hope you enjoy the packages!

Filed Under: Debian News, News Tagged With: Debian, Dropbox, Me, Nautilus, Packaging, Ubuntu

Comments

  1. Kiko says

    June 6, 2011 at 10:30 am

    Binary packages from snapshot.debian.org actually cannot be downloaded (server gives a 403 error: http://yfrog.com/hs03g8p).

    Otoh: does your nautilus-dropbox package provide also dropbox binaries? (just asking because I don’t use nautilus myself).

    Thanks!

    • Kiko says

      June 6, 2011 at 11:00 am

      I see now it does provide dropbox binaries (I was afraid to purge my old dropbox package in case it didn’t). Found a laptop where I could test it.

      Works nice. Thanks!

    • Raphaël Hertzog says

      June 6, 2011 at 11:17 am

      Right, probably that the files have been made non-readable on purpose since the reason of the removal was precisely that we had no rights to redistribute the files since we were not complying with the licenses.

      My nautilus-dropbox package downloads and installs the required dropbox binaries, but it doesn’t embed them.

  2. Timo Juhani Lindfors says

    June 6, 2011 at 11:58 am

    Somebody should define “official debian packages” somewhere 🙂 I expected free software since non-free is not officially part of debian but I guess you can have official debian packages that are not officially in Debian?

    • Raphaël Hertzog says

      June 6, 2011 at 3:09 pm

      True, it’s not very clear… official because they are (going to be) provided on the official mirrors and they are maintained by a Debian developer, but those Debian packages are not part of the product we call “Debian” because they are in the non-free section.

  3. Jon says

    June 6, 2011 at 2:15 pm

    It would be nice if you could make clear that this package is not part of Debian, it’s destined for non-free (and later contrib if you fix the icon issues)

    • Raphaël Hertzog says

      June 6, 2011 at 3:14 pm

      Jon, I added a sentence in the “Get the Dropbox packages for Debian” paragraph to make it clear.

  4. Richard says

    June 6, 2011 at 3:19 pm

    I’ve been using the following:
    http://www.reddeadresolve.com/2010/04/how-to-install-dropbox-in-xfce.html
    to install dropbox in Squeeze w/Xfce4.6 on several desktops and laptops to which I have access.

    I will try out your package when I get access to a laptop.
    Do you know if it has been successfully installed on Xfce4?

    Regards,
    Richard.

    • Raphaël Hertzog says

      June 6, 2011 at 3:42 pm

      Richard, there’s no reason why it should not work. It downloads the binaries from the same Dropbox URL but it does it automatically. And it provides a desktop file (launcher).

  5. 2s4u says

    June 7, 2011 at 1:35 pm

    I’d like to suggest ZumoDrive here, since they had this kind of Linux/Ubuntu support since months already…

  6. Raphaël Hertzog says

    June 10, 2011 at 12:34 pm

    The package has been accepted into Debian unstable. I also uploaded packages recompiled for GNOME3 in experimental.

    http://packages.debian.org/nautilus-dropbox

    • Raphaël Hertzog says

      July 9, 2011 at 1:46 pm

      The package is now also available in squeeze-backports.

      • Roddie says

        July 25, 2011 at 2:56 pm

        I can’t seem to install this from the backports, Raphael; I just get a message saying “unable to locate package nautilus-dropbox” when I type:

        apt-get -t squeeze-backports install nautilus-dropbox

        Are there dependencies I need to fulfil *before* I even try to install it??

        • Raphaël Hertzog says

          July 25, 2011 at 8:36 pm

          What did you put in /etc/apt/sources.list and did you do a successful “apt-get update”?

          • Roddie says

            July 25, 2011 at 8:50 pm

            Oops, I just had the “squeeze-backports main” in my sources.list so now that I’ve added the non-free it’s working.

            Cheers!

  7. Stube says

    July 1, 2011 at 3:28 pm

    Hi
    I get the following error when trying to install DropBox into Debian Squeeze. Has anyone seen this before?
    Thanks
    Stube

    [stube@stubelinux ~]$ cat /etc/debian_version
    6.0.2
    [stube@stubelinux ~]$ sudo apt-get install nautilus-dropbox
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following NEW packages will be installed:
    nautilus-dropbox
    0 upgraded, 1 newly installed, 0 to remove and 1018 not upgraded.
    Need to get 0 B/81.2 kB of archives.
    After this operation, 418 kB of additional disk space will be used.
    Selecting previously deselected package nautilus-dropbox.
    (Reading database … 138237 files and directories currently installed.)
    Unpacking nautilus-dropbox (from …/nautilus-dropbox_0.6.7-3_amd64.deb) …
    Processing triggers for hicolor-icon-theme …
    Processing triggers for man-db …
    Processing triggers for desktop-file-utils …
    Processing triggers for gnome-menus …
    Setting up nautilus-dropbox (0.6.7-3) …

    Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/

    Downloading Dropbox… 100%
    Traceback (most recent call last):
    File “/usr/bin/dropbox”, line 1248, in
    ret = main(sys.argv)
    File “/usr/bin/dropbox”, line 1237, in main
    result = commands[argv[i]](argv[i+1:])
    File “/usr/bin/dropbox”, line 712, in update
    download()
    File “/usr/bin/dropbox”, line 451, in download
    name, i, total = one_member.next()
    File “/usr/bin/dropbox”, line 183, in unpack
    archive = tarfile.open(self.local_path, ‘r:gz’)
    File “/usr/lib/python2.6/tarfile.py”, line 1671, in open
    return func(name, filemode, fileobj, **kwargs)
    File “/usr/lib/python2.6/tarfile.py”, line 1722, in gzopen
    raise ReadError(“not a gzip file”)
    tarfile.ReadError: not a gzip file
    dpkg: error processing nautilus-dropbox (–configure):
    subprocess installed post-installation script returned error exit status 1
    configured to not write apport reports
    Errors were encountered while processing:
    nautilus-dropbox
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    • Raphaël Hertzog says

      July 1, 2011 at 4:11 pm

      No, never seen this error before. Can you give me the output of those commands?

      $ ls -al /var/lib/dropbox/dropbox.tar.gz
      $ file /var/lib/dropbox/dropbox.tar.gz
      

      The more likely scenario is that the download got interrupted and the file is thus invalid. A simple sudo dpkg --configure nautillus-dropbox might fix it.

      • Stube says

        July 1, 2011 at 4:47 pm

        Thank you for the quick response.

        [stube@stubelinux ~]$ ls -al /var/lib/dropbox/dropbox.tar.gz
        -rw-r–r– 1 root root 4066 Jul 1 15:40 /var/lib/dropbox/dropbox.tar.gz
        [stube@stubelinux ~]$ file /var/lib/dropbox/dropbox.tar.gz
        /var/lib/dropbox/dropbox.tar.gz: HTML document text

        [stube@stubelinux ~]$ sudo dpkg –configure nautillus-dropbox
        dpkg: error processing nautillus-dropbox (–configure):
        no package named `nautillus-dropbox’ is installed, cannot configure
        Errors were encountered while processing:
        nautillus-dropbox

        I’ve completely removed the install (which seems to remove the dropbox.tar.gz file) and tried again 5 times, always the same result.

        Thanks

        Stube

        • Raphaël Hertzog says

          July 1, 2011 at 5:21 pm

          You probably don’t have direct Web access since the download request returns some HTML page instead of the expected tarball. Try accessing any http://www.dropbox.com URL in your web-browser you will probably be redirected to some login form or to some message from a proxy that tells you that you don’t have the right to access this web page. This is likely your problem.

          • Stube says

            July 1, 2011 at 5:47 pm

            Okay, so is it possible to install dropbox without having dropbox already installed (if that makes sense)?
            I’ve already created a user in dropbox and can connect to it in a browser.
            Thanks for your time with this.
            Regards
            Stube

          • Raphaël Hertzog says

            July 1, 2011 at 9:18 pm

            I don’t understand your comment. The problem is unrelated to having an account on dropbox.com or not. The problem is that something between you and dropbox.com intercepts your HTTP request and returns something else than the expected tarball.

            You can try to rename the dropbox.tar.gz you get into something.html and open it in a browser to get an idea of what is responsible of this…

  8. Richard says

    July 1, 2011 at 9:26 pm

    If you do not install dropbox on your local computer,
    then you can only access your dropbox via a browser.

    If you are not using gnome desktop then more info will be required.
    It works fine with Xfce and probably others.

  9. Johnson says

    July 5, 2011 at 4:51 am

    Thanks Raphael!

  10. SIO says

    July 10, 2011 at 2:17 pm

    Does this package include autostart script for sysvinit? Something like http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall/UbuntuStartup

    • Raphaël Hertzog says

      July 10, 2011 at 4:36 pm

      No, but you can easily make it start together with the graphical session with “dropbox autostart”.

  11. Warren Daly says

    August 22, 2011 at 5:03 am

    Thank you for your hard work. This works perfectly on Linux Mint Debian Edition.
    Much appreciated.
    Warren

Trackbacks

  1. DropBox Ubuntu PPA 及 Debain 包 : OSMSG says:
    June 7, 2011 at 6:09 pm

    […] 现在,有位名为名 Raphaël Hertzog 的开发者 做了一些移值工作,可以让 DropBox 很好的工作于 Debain 。同时还为 Ubuntu 制作了 PPA ,此 PPA 中的 DropBox 客户端可以很好的与 Ubuntu 11.04 集成。 […]

  2. Dropbox в Debian – теперь официально в non-free | Мирный says:
    June 8, 2011 at 4:42 am

    […] Если у вас есть проблема с пакетом – оставляйте комментарий здесь. […]

  3. Debian joins Dropbox’s officially supported platforms along with Fedora and Ubuntu says:
    October 28, 2011 at 11:04 am

    […] glad to see that packaging nautilus-dropbox for Debian and being in touch with them due to this led to this […]

  4. My Debian activities in October 2011 says:
    November 1, 2011 at 10:19 am

    […] few months after the introduction of nautilus-dropbox to Debian and Ubuntu, I can say that the decision to only support the download of dropbox in the postinst has been a […]

  5. Mes activités Debian en octobre 2011 says:
    November 9, 2011 at 8:45 pm

    […] retour d’expérience des mois écoulés depuis l’introduction de nautilus-dropbox dans Debian et Ubuntu me permet d’affirmer que la décision de ne supporter le téléchargement de dropbox que via […]

Get the Debian Handbook

Available as paperback and as ebook.
Book cover

Email newsletter

Get updates and exclusive content by email, join the Debian Supporters Guild:

Follow me

  • Email
  • Facebook
  • GitHub
  • RSS
  • Twitter

Discover my French books

Planets

  • Planet Debian

Archives

I write software, books and documentation. I'm a Debian developer since 1998 and run my own company. I want to share my passion and knowledge of the Debian ecosystem. Read More…

Tags

3.0 (quilt) Activity summary APT aptitude Blog Book Cleanup conffile Contributing CUT d-i Debconf Debian Debian France Debian Handbook Debian Live Distro Tracker dpkg dpkg-source Flattr Flattr FOSS Freexian Funding Git GNOME GSOC HOWTO Interview LTS Me Multiarch nautilus-dropbox News Packaging pkg-security Programming PTS publican python-django Reference release rolling synaptic Ubuntu WordPress

Recent Posts

  • Freexian’s report about Debian Long Term Support, July 2022
  • Freexian’s report about Debian Long Term Support, June 2022
  • Freexian’s report about Debian Long Term Support, May 2022
  • Freexian’s report about Debian Long Term Support, April 2022
  • Debian 9 soon out of (free) security support

Copyright © 2005-2021 Raphaël Hertzog