tlmgr: Local TeX Live (2019) is older than remote repository (2020)
Emily Wong
I already tried what is suggested in the answer to the question: "I got an error when trying to install a latex package trough tlmgr on ubuntu 20.04, verify_checksum: -5 ".
When I type this command:tlmgr --verify-repo=none install beamerI get:
(running on Debian, switching to user mode!)
tlmgr: Local TeX Live (2019) is older than remote repository (2020).
Cross release updates are only supported with update-tlmgr-latest(.sh/.exe) --update
See for details.I went to the link above () and as is suggested there, in the first place, i tried a "new installation" of texlive-latex-extra but nothing changed. So I followed the guide. At the first point it says that the parent directory should be:
/usr/local/texlive/and that, inside texlive directory, I should find a 2019 (or 2020) directory but the only directory I have is:texmf-local:
ale@ale-ThinkPad-L13-Yoga:~$ ls /usr/local/texlive/
texmf-localEventually I looked for a "texlive/2019" or "texlive/2020" directory, but there are none:
ale@ale-ThinkPad-L13-Yoga:~$ sudo find / -iwholename */texlive/2020/*
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
ale@ale-ThinkPad-L13-Yoga:~$ sudo find / -iwholename */texlive/2019/*
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission deniedI thought again that I did a wrong installation of texlive-latex-extra but after a reinstallation of "texlive-..." the problem was still there??
2 Answers
The short solution is: this error is because you're using wrong repository version. Your TexLive 2019 is trying to use a TexLive 2020 ftp repository.
You should change to the right (correct) repository. Type this commands in a Terminal:
tlmgr repository add ftp://
tlmgr repository list
tlmgr repository remove
tlmgr option repository ftp://After that you can install the package with this command:
tlmgr --verify-repo=none install dirtreeI added the --verify-repo parameter to avoid get this error: tlmgr: unexpected return value from verify_checksum: -5 for main repository
Personally I would recommend to install all the LaTeX stuff from official Ubuntu repository.
For Beamer use :
sudo apt-get install texlive-latex-recommendedas it contains needed beamer.cls. You will get not too old 2019 version which is really enough to typeset documents. Newest 2020 is not needed here at all.
4