My system is Ubuntu 20.04 and I am trying to compile a LaTeX file with newer tikz features
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
but it complains with
! Package pgfplots Error: Sorry, 'compat=1.17' is unknown in this context. Please use at most 'compat=1.16'.
and if I ignore this then it compiles but is missing certain plots.
If I change the line to
\pgfplotsset{compat=1.16}
then it does not compile at all, tons of errors.
My question: How do I get pgfplots version 1.17?
I clearly only have version 1.16 on my system,
because
/usr/share/doc/texlive-doc/latex/pgfplots/pgfplots.pdf
starts with Manual for Package pgfplots 2D/3D Plots in LATEX, Version 1.16
sudo apt install texlive
tells me
texlive is already the newest version (2019.20200218-1).
and
sudo apt install pgf
Package pgf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'pgf' has no installation candidate
and at
https://github.com/pgf-tikz/pgfplots
there are no installation instructions (I can clone the git repository alright) and it says helpfully
Please take a look at doc/latex/pgfplots/pgfplots.pdf and doc/latex/pgfplots/pgfplotstable.pdf.
but these files do not exist, not in
https://github.com/pgf-tikz/pgfplots/tree/master/doc/latex/pgfplots
or anywhere else in the repository.
I can try to upgrade to pgfplots 1.17 manually somehow, by copying the directories from the git repository to /usr/share/texlive/texmf-dist/, but would obviously prefer a proper and safer method.
Any help is appreciated.
pgfplots_1.17.tds.zipto replace the older version of pgfplots in the existing tree as described in my comment to the answer below. – Bernhard von Stengel Mar 12 '21 at 20:12tlmgr(presumably a TeX installation manager) does, and which environment variables etc. have to be set and where? – Bernhard von Stengel Mar 12 '21 at 20:19