texlive update - 他のユーザーが所有するディレクトリを更新するコマンドがchdirに失敗します。

texlive update - 他のユーザーが所有するディレクトリを更新するコマンドがchdirに失敗します。

Tex Liveを手動でインストールしました。更新するには、一部のドキュメントではインストールディレクトリをユーザー(tex)に割り当て、次の方法で更新することをお勧めします。 alias update-tex='sudo -u tex -E $(which tlmgr) update --self --all'

私は/usr/local/texlive/をユーザーtexのホームディレクトリとして使用します。

ユーザーのホームディレクトリ(waymore)でコマンドを実行すると、「chdir error」エラーが表示されますが、/usr/local/teliveにある場合は表示されません。

どこからでもコマンドを実行できるように、この問題をどのように解決しますか?

以下は私の結果です

[waymore@archlaptop ~]$ update-tex 
tlmgr: package repository https://mirror.quantum5.ca/CTAN/systems/texlive/tlnet (verified)
tlmgr: saving backups to /usr/local/texlive/2023/tlpkg/backups
tlmgr: no self-updates for tlmgr available
/usr/local/texlive/2023/bin/x86_64-linux/tlmgr: chdir(/home/waymore) failed: Permission denied at /usr/local/texlive/2023/tlpkg/TeXLive/TLUtils.pm line 714.
[waymore@archlaptop ~]$ cd /usr/local/texlive/
[waymore@archlaptop texlive]$ update-tex 
tlmgr: package repository https://mirror.quantum5.ca/CTAN/systems/texlive/tlnet (verified)
tlmgr: saving backups to /usr/local/texlive/2023/tlpkg/backups
tlmgr: no self-updates for tlmgr available
[1/4, ??:??/??:??] update: babel [2106k] (69050 -> 69085) ... done
[2/4, 00:04/00:06] update: bookmark [491k] (69081 -> 69084) ... done

ベストアンサー1

おすすめ記事