aft-mtp-cli command not found

In this troubleshooting guide we learn how to fix aft-mtp-cli command not found error message

Introduction

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

aft-mtp-cli: command not found

or when using sudo you get the following error message

sudo: aft-mtp-cli: command not found

Solutions to aft-mtp-cli: command not found

How To Fix aft-mtp-cli: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu aft-mtp-cli is provided by android-file-transfer package.

android-file-transfer is:

Android-File-Transfer is a reliable MTP client with minimalistic UI. Its features are:

  1. Simple Qt UI with progress dialogs.
  2. FUSE wrapper, supporting partial read/writes, allowing instant access to your files.
  3. No file size limits.
  4. Automatically renames album cover to make it visible from media player.
  5. USB ‘Zerocopy’ support found in recent Linux kernel (no user/kernel data copying).
  6. No extra dependencies (e.g. libptp/libmtp).
  7. Available as static/shared library.
  8. Command line tool (aft-mtp-cli).

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

sudo apt-get -y install android-file-transfer

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

You can also use apt command to install android-file-transfer.

sudo apt -y install android-file-transfer

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

sudo aptitude install android-file-transfer

Summary

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