Debian 系统升级到 2019 出错

Debian 系统升级到 2019 出错

我听从了 tlmgr:远程存储库比本地存储库新(2017 < 2018)并按照以下教程升级了我的 TeX 安装https://www.tug.org/texlive/upgrade.html

当我运行update-tlmgr-latest.sh脚本时,使用

sh update-tlmgr-latest.sh

我获得了:

sh update-tlmgr-latest.sh 
Verifying archive integrity... All good.
Uncompressing TeX Live Manager Updater  100%  
./runme.sh: updating in /usr/local/texlive/2019...
./runme.sh: tlmgr version says this is TeX Live 2018,
./runme.sh: and this updater script created: Thu Feb  7 02:56:31 CET 2019.
./runme.sh: proceeding with tlmgr update.
./runme.sh: updating /usr/local/texlive/2019/bin/x86_64-linux ...
./runme.sh: /usr/local/texlive/2019/bin/x86_64-linux/tlmgr including objects: master/tlpkg/tlpobj/texlive.infra.tlpobj master/tlpkg/tlpobj/texlive.infra.x86_64-linux.tlpobj
D:tlmgr:main: ::tldownload_server defined: TeXLive::TLDownload=HASH(0x5631e5578850)
D:setup_programs: preferring system versions
D:trying to set up system curl, arg --version
D:program curl found in the path
D:trying to set up system wget, arg --version
D:program wget found in the path
D:trying to set up system lz4, arg --version
D:program lz4 not usable from path
D:(unix) trying to set up lz4, default /usr/local/texlive/2019/tlpkg/installer/lz4/lz4.x86_64-linux, arg --version
D:Using shipped /usr/local/texlive/2019/tlpkg/installer/lz4/lz4.x86_64-linux for lz4 (tested).
D:trying to set up system gzip, arg --version
D:program gzip found in the path
D:trying to set up system xz, arg --version
D:program xz found in the path
DD:dumping $::progs = {
  'compressor' => 'lz4',
  'curl' => 'curl',
  'gzip' => 'gzip',
  'lz4' => '/usr/local/texlive/2019/tlpkg/installer/lz4/lz4.x86_64-linux',
  'tar' => 'tar',
  'wget' => 'wget',
  'working_compressors' => [
    'lz4',
    'gzip',
    'xz'
  ],
  'working_downloaders' => [
    'curl',
    'wget'
  ],
  'xz' => 'xz'
};
./runme.sh: done.

“完成”让我认为升级进展顺利,但恐怕并非如此。

tlmgr update --self --all 返回

tlmgr: Remote repository is newer than local (2018 < 2019)
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.

并由tex -v开始TeX 3.14159265 (TeX Live 2018)

怎么了?

答案1

我不确定我是如何解决我的问题的,但是我做到了:

  1. 删除update-tlmgr-latest.sh
  2. 重新update-tlmgr-latest.sh下载http://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh
  3. /usr/local/texlive/2019/bin/x86_64-linux/从文件夹使用 (以 root 身份)再次运行脚本sh update-tlmgr-latest.sh
  4. 与问题中发布的输出相同。
  5. 运行(仍然以 root 身份运行,仍在同一文件夹中)tlmgr update --self --all

这次成功了:

> tlmgr update --self --all 
tlmgr: package repository http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet (verified)
tlmgr: saving backups to /usr/local/texlive/2019/tlpkg/backups
[  1/489] auto-remove: psu-thesis ... done
[  2/489] auto-remove: mbenotes ... done

ETC。

我不知道为什么这次成功了,我的PATH变量设置正确

  • /etc/login.defs
  • / etc/environment
  • /etc/profile
  • ~/.bashrc

相关内容