How to Install NextCloud Desktop Client on Debian 9 Stretch

This tutorial will show you how to install NextCloud desktop client on Debian 9 Stretch. If you want to know how to install NextCloud server on Debian 9, please check out the following tutorial.

Installing NextCloud Desktop Client on Debian 9 via PPA

The NextCloud development team provides an official PPA for Ubuntu. It can also be used to install NextCloud desktop client on Debian 9. You can run add-apt-repository command on Debian 9. It’s provided by the software-properties-common package, but it won’t work like Ubuntu out of the box. I will show you how to manually add NextCloud PPA on Debian. Steps are described below.

Open up a terminal window and switch to root user.

su -

Then create a new source list file for NextCloud Linux client.

nano /etc/apt/sources.list.d/nextcloud-client.list

Copy the following two lines and paste them into the source list file. Note that for Debian 9, you will need to use the zesty package for compatibility.

deb http://ppa.launchpad.net/nextcloud-devs/client/ubuntu zesty main 
deb-src http://ppa.launchpad.net/nextcloud-devs/client/ubuntu zesty main

nextcloud desktop client

Save and close the file. Then we need to download and import the signing key to our Debian 9 system so that the integrity of software packages downloaded from this PPA can be verified by APT package manager. Run the following commands. dirmngr is needed to access key servers.

apt install dirmngr
apt-key adv --recv-key --keyserver keyserver.ubuntu.com AD3DD469

nextcloud client debian

Now update local package index and install NextCloud desktop client.

apt update

apt install nextcloud-client

Once installed, you can start NextCloud client from application menu or use the following command in terminal as a standard user.

nextcloud

Enter your NextCloud server address.

nextcloud client debian 9

Enter NextCloud username and password.

nextcloud linux client

Next, set up local folder options.

How to Install nextcloud desktop client on Debian 9 stretch

Run NextCloud Client on Startup

To enable auto start at boot time, simply go to NextCloud settings, then select General tab and check Launch on System Startup.

nextcloud client autostart

That’s it! I hope this tutorial helped you install NextCloud desktop client on Debian 9 Stretch. As always, if you found this post useful, then subscribe to our free newsletter to get new tutorials.

Rate this tutorial
[Total: 10 Average: 4.1]

14 Responses to “How to Install NextCloud Desktop Client on Debian 9 Stretch

  • Very helpful and straightforward. Works on Debian Buster too. Thanks for the HOWTO!

  • Hi,

    I tried to install the client just like described but i get this error:

    “Package nextcloud-client is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source.”

    Any thoughts on this?

    Thanks in advance.

    • That is strange. If you have correctly added the PPA on Debian 9, your system should be able to find the nextcloud-client package.

      If the PPA isn’t added, then running apt install nextcloud-client will tell you E: Unable to locate package nextcloud-client.

      • Hi Xiao and thanks for the promt reply. This is the response i get:
        “E: Package ‘nextcloud-client’ has no installation candidate.”

        I followed your exact steps.

    • If you are using Debian 9 and followed my instructions to the letter but still get this error, I can’t figure out what’s wrong.

    • Maybe you forgot to update package list.

      apt update

      If you are not root, you can switch to root using this command:

      su -

      Then run

      apt update
  • Hi Xiao, i did update but I’ll try with root and let you know.

  • Did it with root but still nothing. This is the output:

    “Package nextcloud-client is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package ‘nextcloud-client’ has no installation candidate”

  • deb http://ppa.launchpad.net/nextcloud-devs/client/ubuntu zesty main
    deb-src http://ppa.launchpad.net/nextcloud-devs/client/ubuntu zesty main

  • Could be that the source is not trusted? In that case how should I proceed?

    • The file is correct. So I have no idea why your system can’t find nextcloud-client. You can use owncloud-client, which is compatible with Nextcloud.

      apt install owncloud-client
  • Hi,

    Thanks a lot for your tutorial. Personally the installation fail at “apt-key adv –recv-key –keyserver keyserver.ubuntu.com AD3DD469” stage. Console output goes like:

     Executing: /tmp/apt-key-gpghome.7PcReOvaJm/gpg.1.sh --recv-key --keyserver keyserver.ubuntu.com AD3DD469  

    and after a while end with:

     gpg: keyserver receive failed: Connexion terminée par expiration du délai d'attente 

    ( : connexion ended by time limit expiration)

    Any idea of what this could be about? Is the server ok?

    have a good one!

    • The server is OK, but there’s a connection problem between your computer and the server. You can try using a VPN to fix the error.

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.
  • If my answer helped you, please consider supporting this site. Thanks :)