[Tex/LaTex] Missing = inserted for \ifnum. \usepackage

compilingmissing

I am trying to execute my code, but I am getting two errors. The main thing is that I want to keep the format of the document to be produced. It is giving a lot of Missing = inserted for \ifnum. \usepackage` Can anyone please help me out with this?

\documentclass[oneside,a4paper,12pt]{book}
\usepackage[pdfspacing]{classicthesis}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
%\usepackage[latin9]{inputenc}
\usepackage[brazil]{babel}
\usepackage[T1]{fontenc}
\usepackage[a4paper,top=2cm,bottom=2cm,left=3cm,right=2cm]{geometry}
\usepackage{setspace} \onehalfspacing
\usepackage{lastpage,expl3}

\newcounter{dummy} 
\providecommand{\mLyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
\usepackage{lipsum}
\PassOptionsToPackage{latin9}{inputenc} 

\usepackage{inputenc,amsthm,amsmath,graphicx,xspace,mparhack,fixltx2e}
\usepackage{hyperref} 

\begin{document}
TESTE
\end{document}

The errors are:

Missing = inserted for \ifnum. \RequirePackage{expl3}[2018/10/31]

Missing = inserted for \ifnum. \ProvidesExplPackage

Missing = inserted for \ifnum. \@ifpackagelater { expl3 } { 2018/10/31 }

Missing = inserted for \ifnum. }

Best Answer

Ulrike Fischer from here answered the following on this possibly related problem on sourceforge (the latter is a permalink to just the question)

This error message pops up a lot recently, but it is unclear (to me) what it means exactly (I never use texify). I suggest that you try this:

  1. Open the package manager (admin), synchronize (menu repositories), check for new package starting with "miktex-" and install them.

  2. Run the update manager (admin) and install updates of miktex packages.

  3. If the problem persist try another editor and try if it works if you don't use texify.

I had the same error and this helped me to deal with this more-or-less version conflict.

Related Question