avifdec command not found

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

Introduction

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

avifdec: command not found

or when using sudo you get the following error message

sudo: avifdec: command not found

Solutions to avifdec: command not found

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

In Ubuntu avifdec is provided by libavif-bin package.

libavif-bin is:

This library aims to be a friendly, portable C implementation of the AV1 Image File Format as described in https://aomediacodec.github.io/av1-avif/.

This package provides several utilities provided by the library:

  • avifdec
  • avifenc

Due to the temporary lack of support libraries, no decoder is available for now. As a result, the avifenc binary won’t work.

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

sudo apt-get -y install libavif-bin

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

You can also use apt command to install libavif-bin.

sudo apt -y install libavif-bin

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

sudo aptitude install libavif-bin

Summary

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