[Tex/LaTex] Why getting this error tlmgr Unknown directive

debiantexlivetexlive-2016tlmgr

I haven't used tlmgr for a while but when I tried to install any package with it today, It returned following message:

(running on Debian, switching to user mode!) Unknown directive …containerchecksum c59200574a316416a23695c258edf3a32531fbda43ccdc09360ee105c3f07f9fb77df17c4ba4c2ea4f3a5ea6667e064b51e3d8c2fe6c984ba3e71b4e32716955… , please fix it! at /usr/share/texlive/tlpkg/TeXLive/TLPOBJ.pm line 210, line 5579.

I've tried to use fix specified on https://www.tug.org/pipermail/tex-live/2016-April/038058.html:

You have to download update-tlmgr-latest.sh from the tlpretest repository
and run it. Afterwards you will be able to work with tlmgr as usual
(announced by Norbert a few hours ago).

I've downloaded it from https://www.tug.org/texlive/tlmgr.html, but it returned another error:

Verifying archive integrity... All good.
Uncompressing TeX Live Manager Updater............................................................................................................................................................................
./runme.sh: Cannot find TeX Live root using kpsewhich --var-value=SELFAUTOPARENT.
./runme.sh: Please set your PATH as needed, otherwise it's hopeless.

Minimum example

Install cleanly vanilla TeXLive 2016 with tmlgr after having old TeXLive in the system successfully: there is no errors/warnings in /usr/local/texlive/2016/*.log, complete log example here.
Run the following but you get the same output as above when trying to update the system

root@masi:/home/masi/Downloads/t/install-tl-20161019# tlmgr update --self
(running on Debian, switching to user mode!)
Unknown directive ...containerchecksum c59200574a316416a23695c258edf3a32531fbda43ccdc09360ee105c3f07f9fb77df17c4ba4c2ea4f3a5ea6667e064b51e3d8c2fe6c984ba3e71b4e32716955... , please fix it! at /usr/share/texlive/tlpkg/TeXLive/TLPOBJ.pm line 210, <$retfh> line 5579.

Best Answer

If you want to continue to use 2015 version you should set the repository to the archived version with:

tlmgr option repository ftp://tug.org/historic/systems/texlive/2015/tlnet-final 

as is explained here How to install a package from an older version of TeXLive?.

Related Question