Make sure you have all neccesary packages installed:
You can install them with apt-get
:
sudo apt-get install texlive-latex-recommended texlive-latex-extra
You can also try to use tlmgr
to install missing packages for the current user (tlmgr in Debian/ubuntu runs always in user mode).
The texlive distribution provided by ubuntu is usually pretty old. You might want to consider to install a newer version manually.
The number of lines in zref-abspage.sty
is 66 in recent versions. In the history I could not find a hint that could explain more than 28 additional lines. What contains line 94 with two lines before and after?
You can recreate the file, if the sources are installed. Make a scratch directory, copy the file zref.dtx there and unpack it, e.g.:
mkdir /tmp/zref-scratch
cd /tmp/zref-scratch
cp /usr/share/texmf-texlive/source/latex/oberdiek/zref.dtx .
tex zref.dtx
This should generate lots of style files with zref-abspage.sty
among them. Note that you need plain TeX, not LaTeX. Otherwise the documentation would be generated.
The two files can be compared:
diff -u /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty zref-abspage.sty
Are there differences?
If yes, what are the differences? The wrong file can then be renamed (for safety and further analysis) and replaced:
sudo mv -i /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage-saved.sty
sudo cp /tmp/zref-scratch/zref-abspage.sty /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty
If no, Which version you are using? Look into the file zref-abspage.sty
.
My recommendation would be to install the original TeX Live, "howto"s can be found in the net, e.g.:
The alternative is installing manually updated packages in a local TDS tree (for all users) or in the home texmf tree (~/texmf
) for the current user only. The Ubuntu documentation contains a section about LaTeX.
To identify the local tree you can try:
kpsewhich --expand-var '$TEXMFLOCAL'
The home tree usually is ~/texmf
.
If the package provides a .tds.zip
file, then the installation is easy. As example
I am using my bundle to install in the home texmf tree:
wget http://mirror.ctan.org/install/macros/latex/oberdiek.tds.zip
unzip oberdiek.tds.zip -d ~/texmf
In case of the local texmf tree, texhash
needs to be called:
sudo texhash
Best Answer
I faced the same problem. Try installing the following packages in order:
In my case base and recommended were already installed. Installing
texlive-latex-extra
packages resolved my problem.