[Tex/LaTex] package texlive-latex-extra not present in package repository

moderncvtexlive

I'm new to LaTeX. I'm trying to use the package moderncv, but have trouble compiling. I get an error about missing etoolbox.sty, and from what I can read, I need to install a package texlive-latex-extra. So I try to install that with tlmgr but get the following error.

velle@velle-s200e:~/Downloads/moderncv/examples$ tlmgr install texlive-latex-extra
(running on Debian, switching to user mode!)
tlmgr: package repository http://ftp.snt.utwente.nl/pub/software/tex/systems/texlive/tlnet
package texlive-latex-extra not present in package repository.

I installed texlive with Ubuntu apt-get.

Should it not be in the repository, and if not, why?

What do I do from here on?

Best Answer

For Debian/Ubuntu there are two options to install TeX Live, with slightly different naming:

  • Debian's packages: these are perfectly integrated into the Debian environment, preserve configurations over updates, automatically activate fonts and hyphenation patterns and formats, depending on the set of installed packages, and provide the correct dependencies for other packages. You can install them with apt-get or aptitude. Management of the packages is not done with tlmgr but with apt-get (for installation) and some configuration files in /etc/texmf.

    Naming of the packages is slighlty different in Debian, but can be deduced from the TeX Live collection names by replacing collection with texlive and adding some separating - between different words.

    As example: collection-fontsextra becomes texlive-fonts-extra, and collection-langkorean becomes texlive-lang-korean and so on.

  • original TeX Live: these have all the above properties, can be installed by normal users without root access, and are managed by tlmgr. Furthermore, they do not satisfy dependency requirements from other packages (but this can be achieved using equivs).

So in your case you should ask your admin to install texlive-latex-extra, or if you have sudo access, run sudo apt-get install texlive-latex-extra.