我安装了 TexLive 2021,并通过更新~/.bashrc
文件来设置我的 PATH。所以我可以运行所有命令,但不能运行sudo
:
~$ tlmgr install book
You don't have permission to change the installation in any way,
specifically, the directory /usr/local/texlive/2021/tlpkg/ is not writable.
Please run this program as administrator, or contact your local admin.
tlmgr: An error has occurred. See above messages. Exiting.
~$ sudo tlmgr install book
sudo: tlmgr: command not found
这个怎么可能?
尝试完整路径
tlmgr
,即将路径调整为您的设置。