Estimated reading time: 1 min

To start the install process you should first add the PPA to Ubuntu.

Open Terminal from the menu or by pushing CLT+ALT+T at the same time.

In terminal type the following commands:

Step 1: Remove any configured PPA and associated ‘onedrive’ package

Many Internet ‘help’ pages provide inconsistent details on how to install the OneDrive Client for Linux. A number of these continue to point users to install the client via a PPA repository. As this PPA repository is linked to the Debian packages, it is only updated when the Debian packages are updated. As such, it is not advisable to install from this PPA repository.

To remove the PPA repository and the older client, perform the following actions:

sudo apt remove onedrive
sudo add-apt-repository --remove ppa:yann1ck/onedrive

Step 2: Ensure your system is up-to-date

Use a script, similar to the following to ensure your system is updated correctly:

#!/bin/bash
rm -rf /var/lib/dpkg/lock-frontend
rm -rf /var/lib/dpkg/lock
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get autoremove -y
apt-get autoclean -y

Reboot

Step 3: Determine what your OS is based on

Determine what your OS is based on. To do this, run the following command:

lsb_release -a

Step 4: Pick the correct instructions to use

If required, review the table below based on your ‘lsb_release’ information to pick the appropriate instructions to use:

Release & CodenameInstructions to use
Ubuntu 18.x / BionicYou must build from source or upgrade your Operating System to Ubuntu 22.x
Linux Mint 19.x / TinaYou must build from source or upgrade your Operating System to Linux Mint 20.x
Linux Mint 20.x / UlyanaUse Ubuntu 20.04 instructions below
Linux Mint 21.x / VanessaUse Ubuntu 22.04 instructions below
Debian 10You must build from source or upgrade your Operating System to Debian 11
Debian 11Use Debian 11 instructions below
Raspbian GNU/Linux 10You must build from source or upgrade your Operating System to Raspbian GNU/Linux 11
Raspbian GNU/Linux 11Use Debian 11 instructions below
Ubuntu 20.04 / FocalUse Ubuntu 20.04 instructions below
Ubuntu 21.04 / HirsuteUse Ubuntu 21.04 instructions below
Ubuntu 21.10 / ImpishUse Ubuntu 21.10 instructions below
Ubuntu 22.04 / JammyUse Ubuntu 22.04 instructions below
Ubuntu 22.10 / KineticUse Ubuntu 22.10 instructions below

Was this article helpful?
Dislike 9
Views: 3104