How to Install Dropbox on Ubuntu 18.04 From Official Repository

This tutorial will be showing you how to install Dropbox on Ubuntu 18.04 LTS desktop from Dropbox Linux repository. Dropbox Team hasn’t updated their repository for Ubuntu 18.04, but the installer for Ubuntu 16.04 works well on 18.04. We will not download the installer from Dropbox Linux Download page, because the installer on that page is outdated.

How to Install Dropbox on Ubuntu 18.04 From Official Repository

If you don’t have a Dropbox account yet, then click here to sign up. Next, open a terminal window, run the following command to create a source list file for Dropbox. Nano is a command line text editor, which allows you to edit text files in the terminal.

sudo nano /etc/apt/sources.list.d/dropbox.list

dropbox ubuntu 18.04

Add the following line to this file.

deb [arch=i386,amd64] xenial main

dropbox ubuntu command line

To save the file in Nano text editor, press Ctrl+O, then press Enter to confirm. To exit the file, press Ctrl+X.  Next, we need to run the following command to import Dropbox GPG key to Ubuntu 18.04 system.

sudo apt-key adv --keyserver --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E

install dropbox ubuntu 18.04 command line

If you see the following error:

gpg: keyserver receive failed: no keyserver available


gpg: keyserver receive failed: No data

You can fix this error by using a different keyserver. So instead of you can use

sudo apt-key adv --keyserver --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E

Next, update local package index and install Dropbox.

sudo apt update

sudo apt install python-gpg dropbox

Note that the package python-gpgme, which is used by Dropbox to verify binary signature, is no longer in Ubuntu 18.04 repository. The successor is python-gpg. Also keep in mind that the dropbox is just a helper package . It’s not the actual Dropbox binary.

Now you can start the Dropbox GUI installer from your application menu.

start dropbox ubuntu command line

You can also run the following command to start it from terminal. The -i option will attempt to install Dropbox daemon if it’s not installed.

dropbox start -i

Click OK to install the daemon.

nautilus dropbox

dropbox ubuntu 18.04 installation

After the Dropbox daemon is installed, a new tab will be opened in your web browser asking you to link your computer to Dropbox account.

how to install dropbox client on ubuntu 18.04

Now you can use Dropbox on your Ubuntu 18.04 desktop. Dropbox Linux client supports HTTP, SOCKS4 and SOCKS5 proxy. You can configure proxy in Dropbox Preferences > Proxies. This is useful if your country or area is banned from accessing Dropbox. If you want to set up your own fast proxy server, follow this Shadowsocks tutorial.

ubuntu dropbox proxy

By default, Dropbox will automatically start at login. To disable this you can run this command:

dropbox autostart n

To enable autostart again, run

dropbox autostart y

For more Dropbox command line usage, issue this command:

man dropbox

I hope this tutorial helped you install Dropbox on Ubuntu 18.04 desktop. As always, if you found this post useful, then subscribe to our free newsletter to get new tutorials. Take care.

Rate this tutorial
[Total: 7 Average: 5]

15 Responses to “How to Install Dropbox on Ubuntu 18.04 From Official Repository

  • There’s in no more GUI version for Linux, as I can see, only CLI…

  • Jim Harris
    1 year ago

    Not true, I think. I opened the 9-dot thingie (that’s “Applications”, I think) and there alphabetically on the first screen is a Dropbox icon, which I clicked, then it (GUI-wise) identified itself as the Dropbox installer, said it was installing the actual Dropbox software, and opened a browser window in which it asked if i wanted to link this computer to my Dropbox account, and I chose Yes, and it did it, and sync started immediately. I call that GUI; don’t you?

    BTW, Thanks, Linuxbabe, for a tutorial that works _exactly_ as advertised, at least in my case. :^)

  • Both the keys are not working I am using Ubuntu 18.04

  • The error messages are given below

    [email protected]:~$ sudo apt-key adv --keyserver --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E
    Executing: /tmp/apt-key-gpghome.pPsALyoZsg/ --keyserver --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E
    gpg: keyserver receive failed: No keyserver available
    [email protected]:~$ sudo apt-key adv --keyserver --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E
    Executing: /tmp/apt-key-gpghome.1WWHCGrXaZ/ --keyserver --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E
    gpg: keyserver receive failed: No keyserver available
    [email protected]:~$ sudo apt-get update
    Hit:1 bionic InRelease
    Hit:2 bionic-updates InRelease         
    Get:3 bionic-backports InRelease [74.6 kB]
    Ign:4 xenial InRelease                         
    Get:5 xenial Release [6,600 B]           
    Get:6 xenial Release.gpg [473 B]               
    Hit:7 bionic-security InRelease               
    Ign:6 xenial Release.gpg
    Reading package lists... Done  
    W: GPG error: xenial Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FC918B335044912E
    E: The repository ' xenial Release' is not signed.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    • Looks like you can’t connect to the two key servers. Well, you can try this key server

      sudo apt-key adv --keyserver --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E

      Actually is an alias to a pool of key servers, so you have better chance to download Dropbox’s key successfully.

  • It is still not working. I don’t know whether the problem is due to the proxy settings?

    $ sudo apt-key adv --keyserver --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E
    Executing: /tmp/apt-key-gpghome.E5yg31IUzT/ --keyserver --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E
    gpg: keyserver receive failed: Connection refused
  • Currently, this desktop I am using is under a server. So I myself can not switch it off. Can you suggest some other way to bypass this?

    • I just exported the Dropbox signing key and uploaded it to my server. If you trust me, you can download it with:


      Then import it to your system with:

      sudo apt-key add dropbox-signing-key.asc
  • Thank you, tested successfully in Bionic, can’t wait for a Cosmic update (I get these errors:

    Executing: /tmp/apt-key-gpghome.G0d07hNNQj/ –keyserver –recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E
    gpg: key FC918B335044912E: 3 signatures not checked due to missing keys
    gpg: key FC918B335044912E: “Dropbox Automatic Signing Key ” not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1)

  • Thanks for the reply. I tried to find the package in Synaptic without success. I ended up downloading the .deb file but now I’m wondering if it would’ve been possible to install it via command line. I will try to remove it and do so once I get home.

  • Have followed the instructions, but get message that Dropbox is installed on an unsupported file system – even though the file system is the supposedly supported Ext4, although all data seems to be stored with an underlying ecryptfs file system!
    This rejection of the Ext4 file system has been happening now for a number of weeks, and I have no idea if I can do anything about it. I have contacted Dropbox, but they don’t seem to be able/capable of helping!
    Have unmounted the underlying ecryptfs in the past, and basically stuffed up normal working of the computer!! So I’m not trying that again.
    Is there any easy way to fix this apparent incompatibility between Dropbox and Ubuntu 18.04 LTS?

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community ( for questions unrelated to this article.
  • If my answer helped you, please consider supporting this site. Thanks :)