canconvert command not found

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

Introduction

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

canconvert: command not found

or when using sudo you get the following error message

sudo: canconvert: command not found

Solutions to canconvert: command not found

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

In Ubuntu canconvert is provided by canmatrix-utils package.

canmatrix-utils is:

Canmatrix implements a “Python CAN Matrix Object” which describes the CAN-communication itself and some auxiliary objects (Boardunits, Frames, Signals, Values, …) Canmatrix also includes two Tools (canconvert and cancompare) for converting and comparing CAN databases. There are also some extract and merge options for dealing with CAN databases.

Supported file formats for import:

  • .dbc candb / Vector
  • .dbf Busmaster (open source!)
  • .kcd kayak (open source!)
  • .arxml autosar system description
  • .yaml dump of the Python object
  • .xls(x) excel xls-import, works with .xls-file generated by this lib
  • .sym peak pcan can description Supported file formats for export:
  • .dbc
  • .dbf
  • .kcd
  • .xls(x)
  • .json Canard (open source!)
  • .arxml (very basic implementation)
  • .yaml (dump of the Python object)
  • .sym

This package provides the cmdline tools.

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

sudo apt-get -y install canmatrix-utils

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

You can also use apt command to install canmatrix-utils.

sudo apt -y install canmatrix-utils

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

sudo aptitude install canmatrix-utils

Summary

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