Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 937  / 2 Years ago, fri, june 10, 2022, 12:24:06

I tried to run this program (texlive package manager):



tlmgr install 


and got this error:



You don't have permission to change the installation in any way,
specifically, the directory /usr/local/texlive/2012/tlpkg/ is not writable.
Please run this program as administrator, or contact your local admin.


So I tried:



sudo tlmgr install


and got:



sudo: tlmgr: command not found


Why doesn't sudo find the program? And what can I do about it?


More From » sudo

 Answers
6

Sudo seems to change your environment. You can try to run the command with full path:



sudo /usr/bin/tlmgr install


Also worth a try is to run sudo with -E:



sudo -E tlmgr install

[#22290] Sunday, June 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fieldcheon

Total Points: 24
Total Questions: 105
Total Answers: 109

Location: Western Sahara
Member since Tue, Feb 16, 2021
3 Years ago
;