Linux Mint(Debian)でTLMGRを更新する

Linux Mint(Debian)でTLMGRを更新する

我想安装 Latex包、所以我运行:

(env) mvh:~$ tlmgr install verbatim
(running on Debian, switching to user mode!)
tlmgr: Remote repository is newer than local (2017 < 2019)
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.

私に行く上記リンク先のホームページダウンロードして実行すると、update-tlmgr-latest.sh次のようになります。

(env) mvh:Downloads$ bash update-tlmgr-latest.sh 
Verifying archive integrity... All good.
Uncompressing TeX Live Manager Updater  100%  
./runme.sh: Cannot find TeX Live root using kpsewhich --var-value=SELFAUTOPARENT.
./runme.sh: (no tlpkg/texlive.tlpdb and/or tlpkg/tlpobj/.)
./runme.sh: Please set your PATH as needed, otherwise it's hopeless.

./bashrc私の中には以下があるという事実にもかかわらず:

export PATH=$PATH:/usr/share/texlive/

実際にtexliveを使って位置を確認すると、上記whereisのようなディレクトリが出ます。興味深いことに、上記の手順では、インストール時に名前にtexlive年を含むフォルダがあると予想しているようです。

Unix

  1. 現在のインストールの親ディレクトリを探します。デフォルトは /usr/local/texlive です。

  2. 完全なディレクトリ2018を2019にコピーし、シンボリックリンクを維持します。例:cp -a 2018 2019この内容がわからない場合は、ここで停止して通常のインストールを実行してください。

しかし、そのようなフォルダがないようです...

(env) mvh:texlive$ whereis texlive
texlive: /usr/share/texlive
(env) mvh:texlive$ cd
(env) mvh:~$ whereis texlive
texlive: /usr/share/texlive
(env) mvh:~$ cd /usr/share/texlive
(env) mvh:texlive$ ls
debian  doc.html  index.html  LICENSE.CTAN  LICENSE.TL  README  readme-html.dir  readme-txt.dir  README.usergroups  release-texlive.txt  texmf-dist  tlpkg

私はLinux Mint 19.3 Cinnamonを実行しており、texlive-fullこれsudo apt-get install texlive-fullまで成功していませんでした。これ)、(これ)、2項の指示。 (ここ)、最大(これ)、そして(これ)。私も試しましたこのソリューション、役に立たない:

(env) root:texlive# sudo tlmgr option repository ftp://tug.org/historic/systems/texlive/2017/tlnet-final
(running on Debian, switching to user mode!)
tlmgr: setting default package repository to ftp://tug.org/historic/systems/texlive/2017/tlnet-final
(env) root:texlive# tlmgr update --self
(running on Debian, switching to user mode!)
/usr/bin/tlmgr: open tlpdb(ftp://tug.org/historic/systems/texlive/2017/tlnet-final/tlpkg/texlive.tlpdb) failed:  at /usr/share/texlive/tlpkg/TeXLive/TLPDB.pm line 362.

tlmgrパッケージをインストールして宿題をするように更新するにはどうすればよいですか?ありがとうございます!

ベストアンサー1

Debian-packages TeX Liveのインストールから始めて、常にtlmgrrootではなくユーザー自身で実行することをお勧めします。

tlmgr init-usertree

ユーザーツリーを設定してから

tlmgr option repository ftp://tug.org/historic/systems/texlive/2017/tlnet-final

tlmgrインストールと一致するリポジトリ(Linux Mintの場合は2017、Debian 10の場合は2018など)を指すために使用する必要があります。

完了したら、

tlmgr install ...

利用可能であると仮定し、必要なパッケージをインストールします。codeまたはttquot)。

おすすめ記事