I just did a do_release_upgrade with my Ubuntu from Ubuntu 18 to Ubuntu 20, which of course also updated a lot of TeX. Since then, the following minimal example
\documentclass{article}
% \def\pgfversion{42} %% Adding this doen't help
\usepackage{pstricks}
\begin{document}
\end{document}
results in the following
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty)
(/usr/share/texmf/tex/latex/xcolor/xcolor.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def))
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex)))))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
(/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-common.tex)
(/usr/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/share/texmf/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex))
(/usr/share/texmf/tex/generic/pgf/utilities/pgffor.code.tex
Loading [
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.10 \ProvidesPackageRCS[v
\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf...
?
Apparently, \pgfversion is not (yet) defined when needed (inside the \usepackage{pstricks}) .
Q: What's wrong? no package seems to desire update.
As a workaround, I tried adding \def\pgfversion{42}, but that doesn't change anything, i.e., inside the \usepackage, the \pgfversion is still undefined.
Edit: I'm using TeX-live. For convenience, I replaced pst-text with the more immediate pstricks and added the complete output above in order to make the used filenames clear.
pstricks.styincludespstricks.tex, which again includes (among others)pgffor.code.tex, where the error happens – Hagen von Eitzen Jan 13 '21 at 14:52pgffor; yet I have no problem with it (I'm under MiKTeX – would it be a problem with Ubuntu, or with TeX Live?? – Bernard Jan 13 '21 at 14:57latexandpdflatex. – Marijn Jan 13 '21 at 18:47