How to fix "lineno.sty not found" Latex error on Linux

Last updated on July 12, 2020 by Dan Nanni

Question: When I tried to compile a LaTex file on Linux, I am getting "LaTeX Error: File 'lineno.sty' not found" error. How can I fix this error?

The LaTex package lineno.sty provides LaTex styles for producing line numbers on paragraphs. To fix this LaTex error, you need to install the lineno.sty package, which is part of the Tex Live Humanity packages. They contain LaTex styles for law, linguistics, social sciens and humanities.

Follow the instructions below to install Tex Live Humanity packages on Linux.

For Ubuntu, Debian or Linux Min:

$ sudo apt-get install texlive-humanities

On Fedora:

$ sudo yum install texlive-collection-humanities

Support Xmodulo

This website is made possible by minimal ads and your gracious donation via PayPal or credit card

Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.

Xmodulo © 2021 ‒ AboutWrite for UsFeed ‒ Powered by DigitalOcean