I wanted to uninstall texlive on ubuntu and used
apt remove texlive but some program still found
/usr/bin/latex so I removed that by hand (
rm). When I reinstalled texlive with
apt install texlive the
/usr/bin/latex file was not restored.
It may be a good idea to install
texlive-full, so that all available LaTeX packages are installed as well (you won't get
missing something.sty errors, and wouldn't have to manually find how to fix them).
The following command should reinstall any missing files.
sudo apt install --reinstall texlive-full