facing a problem while installing latex from terminal
@nikhilweee is right. Don't use sudo
.
TeXLive installation scripts cannot cater to the myriad of folder structures and permissions.
When you have access to sudo
The best installation method is the official method. Stay with the official folder location /usr/local
by doing a cd /usr/local
then a sudo mkdir texlive && sudo chown `whoami` texlive
.
The install-tl
script will then run without a hitch.
Staying with the default folder location lets you write documentation and instructions (for your team) easier. The official guides for TeXLive uses that folder location, so your team can get some self-help browsing those guides themselves. Also, 3rd-party packages (like Atom editor) can be easily configured given standard TeX Live folder locations.
When you have no access to sudo
See answer from @PHPirate at here.
Using administration rights via sudo
sudo ./install-tl
You could also install texlive-full
or texlive
via the package manager by:
sudo apt-get install texlive-full
or:
sudo apt-get install texlive