7

我在为 TeXLive 配置自动更新时遇到问题,即使我很确定我已经下载了 2018 TeXLive 版本我得到的是这个错误

$ ls -l /usr/local/texlive$ sudo tlmgr update --self --all
[sudo] Passwort : 
(running on Debian, switching to user mode!)
tlmgr: Remote repository is newer than local (2017 < 2018)
Cross release updates are only supported with
update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.

正在寻找我的 TexLive 版本,它显示它是 2018 版本

$ ls -l /usr/local/texlive
insgesamt 8
drwxr-xr-x 9 root root 4096 Nov 20 17:50 2018
drwxr-xr-x 10 root root 4096 Nov 20 16:13 texmf-local


$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

但是运行这个命令它会显示它的另一个版本

$ tlmgr version
(running on Debian, switching to user mode!)
tlmgr revision 46207 (2018-01-04 19:34:36 +0100)
tlmgr using installation: /usr/share/texlive
TeX Live (http://tug.org/texlive) version 2017

$ tex --version
TeX 3.14159265 (TeX Live 2017/Debian)
kpathsea version 6.2.3
Copyright 2017 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.

$ latex --version
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.34; using libpng 1.6.34
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with poppler version 0.62.0
4

1 回答 1

1

将存储库更改为旧版本为我解决了这个问题。

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

之后,我可以运行更新命令。

在 stackoverflow.com 的评论中找到了这个解决方案,但我不再知道这个线程了。

于 2019-11-25T15:47:26.597 回答