\documentclass[12pt, a4paper]{article}
\usepackage{amsmath}
\usepackage{adjustbox} % uses graphicx
\usepackage[top=1.8cm,bottom=1.8cm,left=0.88cm,right=0.88cm]{geometry}
\usepackage{fancyhdr}
\usepackage{lastpage}
%\usepackage[
% type={CC},
% modifier={by-nc-nd},
% version={4.0}
%]{doclicense}
%%
% \usepackage{doclicense}
\usepackage{lipsum}
\usepackage{hyperref}
\pdfsuppressptexinfo=-1
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{qrcode}
%\usepackage{background}
\usepackage{multicol} % cover page multicol
\begin{document}
% \doclicenseImage
\cleardoublepage
\pagestyle{fancy}
\lipsum[1-5]
\end{document}
It was working fine when I installed and updated up to 17th Sep 2020.
Not sure which package casued it, but after the most recent update, if I add (put it back)\usepackage{doclicense}
, I got this error now.
Best Answer
Same issue here after a recent upgrade in Debian Bullseye.
Before:
Which gave the error:
I replaced the
lastpage
dependency withtotpages
and changed the corresponding\pageref{LastPage}
to\pageref{TotPages}
. After:This also works with an unnumbered title page. The
totpages
package claims it's meant to be used for the actual total number of pages, not the last page's number for which thelastpage
package is meant, but this way it can do that anyway and it resolves the dependency conflict.Result: