I am new to Ubuntu (I have Ubuntu 18.04) and I have tried to install Texstudio for three days, but I have always had problems. I have tried EVERYTHING what I found on the Internet, but NOTHINGS works. I feel really hopeless. Can you help me to remove everything related to LaTeX (because I am not sure that I uninstall everything - Texmaker, Texstudio, Texlive and Miktex) and to install Texstudio, please? I know how to use terminal. Thank you very much.

  • Can you please describe the problem that you're encountering? It should just be sudo apt install texlive-full
    – JPi
    Commented Jan 29, 2019 at 16:50
  • Hi, I tried to write "udo apt install texlive-full ", but it was not enought. :( There was written, that I have to install Miktex or Texlive, but I had had to install Miktex few minutes before. I tried to uninstall everithing and to install again, but it did not help.
    – Euler
    Commented Jan 29, 2019 at 16:56
  • 1
    Tex studio is simply one text editor that writes the .TeX files, once written you need a TeX engine to do the compiling from text to image/pdf thus the FIRST task is install Tex Live (a multi GB download) or use a basic MiKTeX that will keep expanding as you work BUT needs more maintenance you need to decide and install the simplest for you
    – user170109
    Commented Jan 29, 2019 at 17:12
  • I tried to write for example: $ sudo apt install texlive-latex-extra and then I wrote $ sudo apt install texstudio (see linuxconfig.org/…) What did I do wrong?
    – Euler
    Commented Jan 29, 2019 at 17:22
  • I just want to add that I installed Texstudio on Windows 7 and I had no problem, so I have problem only with Ubuntu.
    – Euler
    Commented Jan 29, 2019 at 17:38

1 Answer 1


Delete all TeXLive and TeXStudio which you have installed so far with

sudo apt remove texlive-full
sudo apt remove texstudio

Then run in a terminal:

wget https://github.com/scottkosty/install-tl-ubuntu/raw/master/install-tl-ubuntu 


chmod +x ./install-tl-ubuntu


sudo ./install-tl-ubuntu

this will take some time ... After that

sudo apt install texstudio

Now you can start TeXstudio from the menu. You can update your TeX distribution by running

sudo tlmgr --self --all update

If you want get rid of the sudo then run

sudo chown -R <USER> /usr/local/texlive

Then you can run all as user which simplifies some things.

  • I did everything, but there is written: Make sure that you have installed a (La)TeX distribution e.g. MiKTeX or TeX Live, and have set the correct paths to this distribution on the command configuration page. A (La)TeX editor like TeXstudio cannot work without the (La)TeX commands provided by such a distribution.
    – Euler
    Commented Jan 29, 2019 at 19:11
  • Did you restart Ubuntu?
    – user2478
    Commented Jan 29, 2019 at 19:22
  • Yes, I did. But it did not help. :(
    – Euler
    Commented Jan 29, 2019 at 19:28
  • What does echo $PATH say?
    – user2478
    Commented Jan 29, 2019 at 19:35
  • 1
    For latex and pdflatex they are wrong. Replace it with latex -interaction=nonstopmode %.tex and pdflatex -synctex=1 -interaction=nonstopmode %.tex Then all should work!
    – user2478
    Commented Jan 29, 2019 at 20:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .