I've a problem with the references generated with \cref in Ubuntu. When I try to cite some figure or table I obtain ?? [table][1][1]1.1, with no link to go to the figure or table. In the table of this example I use the label: \label{tab:p2PutKey}, and when I want to reference it I use \cref{tab:p2PutKey}.
But the code and the packages that I use are correct, because when my teacher compiles the same code in Windows, it works perfectly, so there is a conflict with linux. I need to install any specific package?
A minimal example that produces the error:
\documentclass{memoir}
\usepackage[spanish]{cleveref}
\usepackage[justification=centering]{caption}
\begin{document}
Here's the table that I want to reference:
\begin{table}[!hbt]
\begin{tabular}{|c|c|}
\hline
Row 1 & Row 2\\
\hline
\end{tabular}
\caption{Example of a table}
\label{tab:example}
\end{table}
In the \cref{tab:example}, we can see\dots
\end{document}
The result I obtain is:

cleverefis rather critical - see the documentation ofcleveref. – Andrew Swann Jan 18 at 9:51sudo tlmgr update --all. – Benedikt Bauer Jan 18 at 10:39