我安装了TexLive 2021,并通过更新~/.bashrc文件来设置路径。因此,我可以运行所有命令,但不能使用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这怎么可能呢?
发布于 2021-04-03 22:04:20
尝试tlmgr的完整路径,即
sudo /usr/local/bin/tlmgr install book调整设置的路径。
https://askubuntu.com/questions/1329077
复制相似问题