apkverifier command not found

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

Introduction

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

apkverifier: command not found

or when using sudo you get the following error message

sudo: apkverifier: command not found

Solutions to apkverifier: command not found

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

In Ubuntu apkverifier is provided by apkverifier package.

apkverifier is:

apkverifier is a simple command line tool that verifies the signatures on Android APK binaries. It can verify APK Signature scheme v1, v2 and v3 and passes Google apksig’s testing suite. It should support all algorithms and downgrade attack protection.

Because Android can handle even broken x509 cerficates and ZIP files, apkverifier is using the ZipReader from apkparser package and vendors crypto/x509 in internal/x509andr and github.com/fullsailor/pkcs7 (https://github.com/fullsailor/pkcs7) in the fullsailor/pkcs7 folder. The last two have some changes to handle some not-entirely-according-to-spec certificates.

Documentation on GoDoc (https://godoc.org/github.com/avast/apkverifier)

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

sudo apt-get -y install apkverifier

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

You can also use apt command to install apkverifier.

sudo apt -y install apkverifier

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

sudo aptitude install apkverifier

Summary

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