我想安装一个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
然而,我似乎没有这样的文件夹..。
(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我正在运行LinuxMint19.3肉桂,我使用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以便安装软件包(并完成作业)?谢谢!
发布于 2020-02-03 17:25:42
从Debian包TeX Live开始,我建议您始终自己运行tlmgr,而不是根:
tlmgr init-usertree将设置用户树,然后
tlmgr option repository ftp://tug.org/historic/systems/texlive/2017/tlnet-final应该将tlmgr指向与安装相匹配的存储库( Linux为2017,Debian 10为2018,等等)。
一旦做完了,
tlmgr install ...将安装您想要的包,前提是它是可用的(无论是code还是ttquot,情况都不是这样)。
https://unix.stackexchange.com/questions/565477
复制相似问题