I migrated from MiKTeX
on windows to TeXLive
in ubuntu. At first I installed texlive-full
from ubuntu repositories but I realized that I wanted to install more packages which isn't very convenient when there is no tlmgr
.
So I decided to removeTeXLive
and reinstall it from TUG. The installation had no problems. Then I added the following lines to bashrc
export PATH=$PATH:/usr/local/texlive/2014/bin/i386-linux
export PATH=$PATH:/usr/local/texlive/2014/tlpkg/
and then I run a simple document and it seemed to be working. I tried to install a package(i.e. units
) through tlmgr
but I don't have permission to write to a specific directory. What I did was to use sudo
privilleges but again no luck. My effort is the following
thanos@thanos-laptop:~$ tlmgr install units
You don't have permission to change the installation in any way,
specifically, the directory /usr/local/texlive/2014/tlpkg/ is not writable.
Please run this program as administrator, or contact your local admin.
thanos@thanos-laptop:~$ sudo tlmgr install units
[sudo] password for thanos:
sudo: tlmgr: command not found
I also tried through the relevant tlmgr's gui but I get the same message as above.
What can I do to install packages through tlmgr
?
Best Answer
What I did was to let
sudo
know about the modification of the$PATH
variable. This was done typing the following command on terminalIn this way, I somehow enabled
sudo
intlmgr
. After that packages can be installed using