How to Install Dropbox on Ubuntu 20.04 From Official Repository
This tutorial will be showing you how to install Dropbox on Ubuntu 20.04 LTS desktop from Dropbox Linux repository. We will not download the installer from Dropbox Linux Download page, because the installer on that page is outdated.
Install Dropbox on Ubuntu 20.04 Desktop 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
Add the following line to this file.
deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu disco main
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 20.04 system.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E
If you see the following error:
gpg: keyserver receive failed: no keyserver available
or
gpg: keyserver receive failed: No data
You can fix this error by using a different keyserver. So instead of keyserver.ubuntu.com
you can use pgp.mit.edu
.
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E
Next, update local package index and install Dropbox.
sudo apt update sudo apt install python3-gpg dropbox
The package python3-gpg
is used by Dropbox to verify binary signature. Note that the dropbox
package is just a helper package. It’s not the actual Dropbox binary.
Now you can start the Dropbox GUI installer from your application menu.
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.
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.
Now you can use Dropbox on your Ubuntu 20.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.
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
Dropbox automatically updates itself when a new version is available, but you can also run the following command to have the latest stable version.
dropbox update
For more Dropbox command line usage, issue this command:
man dropbox
Dropbox Not Syncing?
First, run dropbox update
command to update Dropbox to the latest stable version, then restart Dropbox. You might need to click Pause Syncing
, then Resume Syncing
to make it work.
If that doesn’t work, you can try delete your existing Dropbox installation.
rm ~/.dropbox ~/.dropbox-dist/
Then run
dropbox update
Can’t Update Dropbox?
If you see the following error message when updating Dropbox, but you are sure that your Internet connection is working. Then the Dropbox command is probably trying to use IPv6 protocol, but your computer can’t use IPv6 protocol to connect to the Internet, so you should disable IPv6 on Ubuntu.
How to Install Dropbox on a Headless Ubuntu Server
The process is a bit different. Please read the following article.
Dropbox File Encryption
If you are worried about privacy and security when storing files on cloud storage providers like Dropbox, you can encrypt the files by following the tutorial below.
I hope this tutorial helped you install Dropbox on Ubuntu 20.04 desktop. As always, if you found this post useful, then subscribe to our free newsletter to get new tutorials. Take care.
unfortunately, it doesn’t work neither “keyserver.ubuntu.com” nor “pgp.mit.edu”. Any other tip? Thanks, Mario (Italy)
That indicates there’s network problem between your computer and the key servers. You can use a VPN or proxy to get around the network problem.
Wonderful article, very informative!
Running Ubuntu 20.04, in software and updates, is the Dropbox distribution still listed as Disco?
I tried changing the distribution value to be Focal but that causes an error when running an apt-get update
Dropbox repository doesn’t have a component for
focal
now. Thedisco
component is compatible with Ubuntu 20.04. As a matter of fact, the dropbox installer in the repository rarely changes, so you can use the disco repository on ubuntu 20.04.I am trying to install it on Ubuntu 20.04 Server (so it’s headless).
After the command dropbox start -i
the computer replies:
Please read the following article to install Dropbox on a headless Ubuntu server.
https://www.linuxbabe.com/ubuntu/install-dropbox-headless-ubuntu-server
I get the same error as Guido.
Please read the following article to install Dropbox on a headless Ubuntu server.
https://www.linuxbabe.com/ubuntu/install-dropbox-headless-ubuntu-server
It works for Xubuntu 20.04 LTS !
Thks ♡♡
Worked for me on Kubuntu 20.04!
Hi
I get as far as Dropbox Start Required but although the button responds, nothing happens.
Hi
I get as far as Dropbox Start Required but although the button responds, nothing happens. Can you please advise?
this is what i got when following instructions:
E: Malformed entry 1 in list file /etc/apt/sources.list.d/dropbox.list ([option] not assignment)
E: The list of sources could not be read.
E: Malformed entry 1 in list file /etc/apt/sources.list.d/dropbox.list ([option] not assignment)
E: The list of sources could not be read.