[Tex/LaTex] tlmgr install cannot initialize tlpdb from ftp

installingtlmgrUbuntu

How can I use tlmgr to install packages?

$ tlmgr install moderncv
(running on Debian, switching to user mode!)

/usr/bin/tlmgr: TLPDB::from_file could not initialize from: ftp://tug.org/historic/systems/texlive/2020/tlnet-final/tlpkg/texlive.tlpdb
/usr/bin/tlmgr: Maybe the repository setting should be changed.
/usr/bin/tlmgr: More info: https://tug.org/texlive/acquire.html

I have just installed TexLive on Ubuntu 20.04 using sudo apt install texlive.

This seems similar to tlmgr cannot setup TLPDB, but the answer does not work for me.

$ tlmgr init-usertree

tlmgr: user mode database already set up in
tlmgr:   /home/christopher/texmf/tlpkg/texlive.tlpdb
tlmgr: not overwriting it.

Version looks up-to-date

$ tlmgr --version
tlmgr revision 53568 (2020-01-27 19:20:16 +0100)
tlmgr using installation: /usr/share/texlive
TeX Live (http://tug.org/texlive) version 2019

Best Answer

Short answer

The Ubuntu package seems to be fairly broken, so remove it and install via https://tug.org/texlive/acquire.html.

Long answer

Find out which package you have installed:

$ which tlmgr
/usr/bin/tlmgr
$ ll /usr/bin/tlmgr
lrwxrwxrwx 1 root root 52 Feb 17  2020 /usr/bin/tlmgr -> ../share/texlive/texmf-dist/scripts/texlive/tlmgr.pl*
$ sudo dpkg -S /usr/share/texlive/texmf-dist/scripts/texlive/tlmgr.pl
texlive-base: /usr/share/texlive/texmf-dist/scripts/texlive/tlmgr.pl

Kill it with prejudice: sudo apt purge texlive-base

Follow instructions in link (above) to install working TexLive.