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 & Codename | Instructions to use |
---|---|
Ubuntu 18.x / Bionic | You must build from source or upgrade your Operating System to Ubuntu 22.x |
Linux Mint 19.x / Tina | You must build from source or upgrade your Operating System to Linux Mint 20.x |
Linux Mint 20.x / Ulyana | Use Ubuntu 20.04 instructions below |
Linux Mint 21.x / Vanessa | Use Ubuntu 22.04 instructions below |
Debian 10 | You must build from source or upgrade your Operating System to Debian 11 |
Debian 11 | Use Debian 11 instructions below |
Raspbian GNU/Linux 10 | You must build from source or upgrade your Operating System to Raspbian GNU/Linux 11 |
Raspbian GNU/Linux 11 | Use Debian 11 instructions below |
Ubuntu 20.04 / Focal | Use Ubuntu 20.04 instructions below |
Ubuntu 21.04 / Hirsute | Use Ubuntu 21.04 instructions below |
Ubuntu 21.10 / Impish | Use Ubuntu 21.10 instructions below |
Ubuntu 22.04 / Jammy | Use Ubuntu 22.04 instructions below |
Ubuntu 22.10 / Kinetic | Use Ubuntu 22.10 instructions below |