icloud command not found

In this troubleshooting guide we learn how to fix icloud command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

icloud: command not found

or when using sudo you get the following error message

sudo: icloud: command not found

Solutions to icloud: command not found

How To Fix icloud: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu icloud is provided by python3-pyicloud package.

python3-pyicloud is:

PyiCloud is a module which allows one to interact with iCloud webservices. It is written in Python and you can access your iCloud either with password/username or with Two-factor authentication (2FA). You can:

  • list which devices are associated with your account
  • obtain the device’s last known location. The Find My iPhone app must have been installed and initialized.
  • send a request to the device to play a sound
  • activate the ’lost mode' Lost mode is slightly different to the “Play Sound” functionality in that it allows the person who picks up the phone to call a specific phone number without having to enter the passcode. Just like “Play Sound” you may pass a custom message which the device will display, if it’s not overridden the custom message of “This iPhone has been lost. Please call me.” is used.
  • fetch events from the calendar webservice
  • access your iCloud contacts/address book
  • access documents stored in your iCloud account
  • access the iCloud Photo Library

To fix this problem, we can install more using the command below.

sudo apt-get -y install python3-pyicloud

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install python3-pyicloud.

sudo apt -y install python3-pyicloud

Or if you have aptitude installed you can use the following command.

sudo aptitude install python3-pyicloud

Summary

In this tutorial we learn how to fix icloud command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.