! LaTeX Error: File `automultiplechoice.sty' not found. (Bug #840)


Added by Josef Eiglsperger over 2 years ago. Updated over 2 years ago.


Status:Closed Start date:07/13/2022
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:Installation
Target version:-

Description

I get this error when trying out the example of the english documentation. I read that this also occured in older versions of AMC but I use 1.4.0-4ubuntu1. Does anyone else have this problem? I also tried uninstalling and reinstalling AMC.


History

Updated by Alexis Bienvenüe over 2 years ago

This is a problem related to installation. We need much more details about your setup and installation process.

  • Category changed from LaTeX to Installation

Updated by Josef Eiglsperger over 2 years ago

Alexis Bienvenüe wrote:

This is a problem related to installation. We need much more details about your setup and installation process.

I use 20.04.4 LTS (Focal Fossa).
I installed auto-multiple-choice, auto-muliple-choice-commo, and auto-multiple-choice-doc with synaptic.
Before that I installed it with apt-get install auto-multiple-choice, but as this resulted in the same error, I purged it and installed it again with synaptic.
What else details do you need?

Updated by Alexis Bienvenüe over 2 years ago

Can you try this command in a terminal and report the output?

dpkg -l 'auto-mult*'

Updated by Josef Eiglsperger over 2 years ago

Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
Halb installiert/Trigger erWartet/Trigger anhängig |/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht) ||/ Name Version Architektur Beschreibung
+++-============================-==============-============-========================================================
ii auto-multiple-choice 1.4.0-4ubuntu1 amd64 Auto Multiple Choice - multiple choice papers management
ii auto-multiple-choice-common 1.4.0-4ubuntu1 all Auto Multiple Choice - architecture independent files
ii auto-multiple-choice-doc 1.4.0-4ubuntu1 all Auto Multiple Choice - HTML documentation
ii auto-multiple-choice-doc-pdf 1.4.0-4ubuntu1 all Auto Multiple Choice - PDF documentation

Updated by Alexis Bienvenüe over 2 years ago

So auto-multiple-choice and auto-multiple-choice-common seem to be installed, which is good.
Can you try the following commands, to check that the style file is installed and well registered by latex?

locate automultiplechoice.sty
kpsewhich automultiplechoice.sty

Updated by Josef Eiglsperger over 2 years ago

josef@josef-ThinkPad-E14-Gen-3:~$ locate automultiplechoice.sty
/usr/share/texmf/tex/latex/AMC/automultiplechoice.sty
josef@josef-ThinkPad-E14-Gen-3:~$ kpsewhich automultiplechoice.sty
josef@josef-ThinkPad-E14-Gen-3:~$

kpsewhich automultiplechoice.sty returns nothing.

Updated by Alexis Bienvenüe over 2 years ago

So the style file is present but not found by latex.
Can you try to tell latex to rebuild its databases, and try again?

sudo mktexlsr

Updated by Josef Eiglsperger over 2 years ago

I executed the command:
josef@josef-ThinkPad-E14-Gen-3:~$ sudo mktexlsr
mktexlsr: Updating /usr/local/share/texmf/ls-R...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVEDIST...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.

But still ! LaTeX Error: File `automultiplechoice.sty' not found.

Updated by Alexis Bienvenüe over 2 years ago

Do you have several versions of latex installed? Try

where latex mktexlsr kpsewhich

Updated by Josef Eiglsperger over 2 years ago

josef@josef-ThinkPad-E14-Gen-3:~$ whereis latex mktexlsr kpsewhich
latex: /usr/bin/latex /home/josef/bin/latex /usr/share/man/man1/latex.1.gz
mktexlsr: /usr/bin/mktexlsr /home/josef/bin/mktexlsr /usr/share/man/man1/mktexlsr.1.gz
kpsewhich: /usr/bin/kpsewhich /home/josef/bin/kpsewhich /usr/share/man/man1/kpsewhich.1.gz

Updated by Alexis Bienvenüe over 2 years ago

So you've got two different latex installed: one in /usr/bin (this comes from the texlive packages, which AMC depends on), and one in /home/josef (manually installed).
Your PATH environment variable has /home/josef/bin first, so when you simply type latex, you call /home/josef/bin/latex. But AMC installed automultiplechoice.sty in /usr/bin, so latex does not see it.

  • Do you really need your latex version in /home/josef? If not, simply uninstall it, and AMC will be happy again.
  • If you need the particular version of latex installed in /home/josef, you have two options:
    • If you want to also keep latex from texlive, you can make a link from the place where /home/josef/bin/latex stores tex files to /usr/share/texmf/tex/latex/AMC/automultiplechoice.sty

Updated by Josef Eiglsperger over 2 years ago

Thank you so much. The problem was I unnecessarily installed miktex additional to livetex. I now uninstalled miktex and it works fine now!

Updated by Alexis Bienvenüe over 2 years ago

Excellent!

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF