toc2cue command not found

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

Introduction

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

toc2cue: command not found

or when using sudo you get the following error message

sudo: toc2cue: command not found

Solutions to toc2cue: command not found

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

In Ubuntu toc2cue is provided by cdrdao package.

cdrdao is:

cdrdao records audio or data CD-Rs in disk-at-once (DAO) mode based on a textual description of the CD contents.

Recording in disk-at-once mode writes the complete disc, i.e. lead-in, one or more tracks and lead-out, in a single step. The commonly used track-at-once (TAO) mode writes each track independently which requires link blocks between two tracks. You probably want to use this if you’re copying a CD with multiple tracks, like most audio CDs.

cdrdao can also handle the bin/cue format commonly used for VCDs or disks with subchannel data.

If you just want to burn a normal data CD, you probably want wodim instead.

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

sudo apt-get -y install cdrdao

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

You can also use apt command to install cdrdao.

sudo apt -y install cdrdao

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

sudo aptitude install cdrdao

Summary

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