LaTeX Error: File bbm.sty not found

Problem

Compiling LaTeX file gives this error:

File bbm.sty not found

Solution

It requires installation of this package:

$ sudo apt install texlive-fonts-extra

Tried with: Ubuntu 14.04

LaTeX Error: lineno.sty not found

Problem

LaTeX Error: File `lineno.sty' not found.

Solution

The lineno.sty is shipped in the texlive-humanities package. Install it to fix this error:

$ sudo apt-get install texlive-humanities

Tried with: Ubuntu 14.04

algorithm.sty not found error in LaTeX

If you use the algorithm package in your LaTeX document, you might get this error on compiling it:

LaTeX Error: File `algorithm.sty' not found.

On Ubuntu, this LaTeX package is bundled in the texlive-science package. Install this package and the error should be gone:

$ sudo apt-get install texlive-science

Tried with: Ubuntu 14.04