# TexStudio on Linux suddenly not able to find installed packages

The following code

\documentclass{article}
\usepackage{lipsum}

\begin{document}
\lipsum
\end{document}


all of a sudden gives the following error in TexStudio on Ubuntu 18.04 with TexLive:

File lipsum.sty' not found. \usepackage

BUT, I can successfully compile from bash:

$latex top.tex I'm thinking this might be because I removed LatexDraw using: apt-get remove --purge latexdraw apt-get autoremove  I've tried debugging this, so I list the outputs of some of the commands I ran: • which tex gives /usr/local/texlive/2018/bin/x86_64-linux/tex • kpsewhich -var-value=TEXMFHOME gives /home/me/texmf, a non-existing directory • kpsewhich lipsum.sty gives /usr/local/texlive/2018/texmf dist/tex/latex/lipsum/lipsum.sty • Inside TexStudio, Build/Commands ($PATH) reads /usr/local/texlive/2018/bin/x86_64-linux

Any help is appreciated!

• Do you start TeXStudio from a terminal (via texstudio`)? – Paul Gaborit Dec 19 '19 at 1:30