lyx command not found

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

Introduction

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

lyx: command not found

or when using sudo you get the following error message

sudo: lyx: command not found

Solutions to lyx: command not found

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

In Ubuntu lyx is provided by lyx package.

lyx is:

LyX is an almost WYSIWYG-frontend for LaTeX. It makes the power and typesetting quality of LaTeX available for people who are used to word processors. Since LyX supports LaTeX’s concept of general mark-ups, it is even easier and faster to create professional quality documents with it than with usual word processors. It is also possible to use LaTeX commands within LyX, so nothing of LaTeX’s power is lost.

You can extend the functionality of LyX by installing these packages:

  • chktex: check for typographical errors
  • gnuhtml2latex: import HTML documents
  • groff: improved table formatting in plain text exports
  • librsvg2-bin, inkscape: use the SVG image format in LyX documents
  • linuxdoc-tools: export SGML LinuxDoc documents
  • mythes-*: use the OpenOffice.org/LibreOffice Thesaurus
  • noweb: import noweb files
  • rcs: integrated version control
  • sgmltools-lite: export SGML DocBook documents
  • texlive-xetex: use the XeTeX typesetting system
  • wv: import MS Word documents

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

sudo apt-get -y install lyx

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

You can also use apt command to install lyx.

sudo apt -y install lyx

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

sudo aptitude install lyx

Summary

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