"tlmgr" on "Ubuntu 22.04"
peacecop kalmer:
kalmer at test.tennis24.ee
Fri Jul 29 02:36:23 CEST 2022
After following your last suggestion, /sudo tlmgr/ works and not the
full path must be given.
On 29.07.22 03:11, Max Chernoff wrote:
>> 4. peacecop at peacecop-HP-ProBook-4520s:~$ mkdir -p ~/.config/environment.d/
>> peacecop at peacecop-HP-ProBook-4520s:~$ echo
>> 'PATH=/usr/local/texlive/2022/bin/x86_64-linux/:${PATH}' >
>> ~/.config/environment.d/texlive-path.conf
>> After reboot, /TeXstudio/ works like before and no /sudo/ is needed.
>> Even /tex-locale/ is found. However, /tlmgr/ still acts weird:
>> peacecop at peacecop-HP-ProBook-4520s:~$ tlmgr install tex-locale
>> You don't have permission to change the installation in any way,
>> specifically, the directory /usr/local/texlive/2022/tlpkg/ is not
>> writable.
>> Please run this program as administrator, or contact your local admin.
>> tlmgr: An error has occurred. See above messages. Exiting.
>> peacecop at peacecop-HP-ProBook-4520s:~$ sudo tlmgr install tex-locale
>> [sudo] password for peacecop:
>> sudo: tlmgr: command not found
>> peacecop at peacecop-HP-ProBook-4520s:~$ which tlmgr
>> /usr/local/texlive/2022/bin/x86_64-linux/tlmgr
>> If i do just /tlmgr list/ then i get the list.
> Alright, so it looks like the path is set correctly for your user now.
> Sudo resets most of the environment when it's ran, so it can't find
> tlmgr.
>
> Probably the easiest way to fix this is to run
>
> sudo visudo
>
> then add your TL bin path to the path list, which is on the line beginning
> with:
>
> Defaults secure_path
>
> -- Max
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20220729/b42f8b9d/attachment.html>
More information about the tex-live
mailing list.