ly command not found

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

Introduction

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

ly: command not found

or when using sudo you get the following error message

sudo: ly: command not found

Solutions to ly: command not found

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

In Ubuntu ly is provided by python3-ly package.

python3-ly is:

python-ly provides a Python library “ly” containing various Python modules to parse, manipulate or create documents in LilyPond format. A command line program “ly” is also provided that can be used to do various manipulations with LilyPond files.

The python-ly package is Free Software, licensed under the GPL. This package is written by the Frescobaldi developers and is used extensively by the Frescobaldi project. The main author is Wilbert Berendsen.

The LilyPond format is a plain text input format that is used by the GNU music typesetter LilyPond (www.lilypond.org).

This package installs the “ly” tool and library for Python 3.

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

sudo apt-get -y install python3-ly

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

You can also use apt command to install python3-ly.

sudo apt -y install python3-ly

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

sudo aptitude install python3-ly

Summary

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