# Package polyglossia not working

I am using a linux system. By mistake I issued a command -

sudo apt-get purge python


(I know I've committed a very big mistake :( but now I want everything back to normal.)

As soon as I issued this command my LaTeX (texlive-full) stopped working. I realized that I did not had any version of texlive. I issued this command -

sudo apt-get install texlive-full


I don't know why, but now package polyglossia is not working. eg.

\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{english}

\begin{document}
abcd
\end{document}


This should have run normally, but I'm getting errors.

• The MWE works for me, but the TeX live in Linux package sources is known to lag behind current development, indeed you have TeX Live 2017/Debian, while current would be TeX live 2019. I think \setdefaultlanguage is a more recent addition to polyglossia, try \setmainlanguage instead. See tex.stackexchange.com/q/394958/35864 Aug 18 '19 at 8:59
• The current version of polyglossia has \let\setmainlanguage=\setdefaultlanguage, so I suspect that \setmainlanguage instead of \setdefaultlanguage in the MWE should give the expected results. Aug 18 '19 at 9:01
• @moewe Please see the log file. I've used setmainlanguage and still I got errors. Aug 18 '19 at 9:07
• Check the contents of /usr/share/texlive/texmf-dist/tex/latex/polyglossia.sty Does the file look roughly like github.com/reutenauer/polyglossia/blob/master/tex/…? Aug 18 '19 at 9:08