[Tex/LaTex] error when trying to compile .tex files: File `pgfpages.sty’ not found. \RequirePackage

installinglinuxpackagestexlive

Compiling this file worked well under Linux Mint 17.2, but since I upgraded to Mint 18, I get this error. I tried installing pgfpages with tlmgr, but the package isn't present in repositories. I get the same problem with the tikz-package but I read I shouldn't install that manually but update texlive instead. Did that, error persists.

dpkg –get-selections | grep tex tells me that
texlive, tex-common, texlive-base, texlive-binaries, texlive-fonts-recommended, texlive-latex-base, texlive-latex-recommended
are installed.

I don't understand what's going on. Also, my /home//texmf/tex/latex only contains a directory named xargs which only contains one file, is that normal? I tried reinstalling texlive but to no effect. Any idea what I could do?

Best Answer

The Vanilla TeX Live installer by default installs a full TeX Live with (almost) all packages available for the current TeX Live. So after a default installation of Vanilla TeX Live missing packages will be restricted to such packages, that are not available as TeX Live package and have to be installed manually (or maybe from another repository).

Linux distributions usually split TeX Live in several packages. Most distributions provide online or offline tools to search for the package, that provides a wanted package. But most Linux distributions also provide a package texlive-full (or similar named package) that installs all TeX Live packages. If you want avoid most missing package problems, you should install this package.

If your Linux distribution provides the current main release of TeX Live with tlmgr you could also use the tlmgr user mode to install a package in the user tree. See tlmgr help for more information. But note, if the TeX Live of your Linux distribution is to old, you cannot use tlmgr to install or update packages from the TeX Live main repository. Note also, some packages cannot be installed in user mode. And if you have installed a package once in user mode, you also have to update it in user mode as long as it is in the used user tree (even after installation of a newer TeX Live main release).

See also: