I have installed TeXLive and added
/usr/local/texlive/2019/bin/x86_64-linux to my
/etc/environment, so I should be able to run
tlmgr from the terminal. I am able to do that as non-root user:
johndoe@pc:~$ tlmgr update --all tlmgr: package repository http://ftp.math.purdue.edu/mirrors/ctan.org/systems/texlive/tlnet (verified) You don't have permission to change the installation in any way, specifically, the directory /usr/local/texlive/2019/tlpkg/ is not writable. Please run this program as administrator, or contact your local admin. tlmgr: An error has occurred. See above messages. Exiting.
I get an error but there is nothing strange, to update the packages I obviously have to run
tlmgr as root - and that's where I am having troubles:
johndoe@pc:~$ sudo tlmgr update --all [sudo] password for johndoe: sudo: tlmgr: command not found
Still, if I check the content of
/etc/environment it includes
johndoe@pc:~$ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/texlive/2019/bin/x86_64-linux"
In a previous Ubuntu installation I managed to fix that, so I'm certain that there is a way to do that, but I don't have a clue about what I did. Any suggestion?
I don't know what additional information could be useful, please ask in the comments if needed.
I'm working with Ubuntu 19.10 (Eoan Ermine). I installed TeXLive "over the internet" because the "Acquire TeX Live" page recommends to do so.