Tex Live 2016 - tlmgr 问题

Tex Live 2016 - tlmgr 问题

我已经安装了 Tex Live 2016install-tl以获取最新版本,但是我遇到了命令问题tlmgr。如果我使用该命令启动应用程序, tlmgr -gui 则看不到已安装的软件包:获取的错误是

Tk::Error: /usr/bin/tlmgr: open(/usr/share/texlive/tlpkg/texlive.tlpdb) failed: No such file or directory at /usr/share/texlive/tlpkg/TeXLive/TLPDB.pm line 416.
 TeXLive::TLPDB::from_file at /usr/share/texlive/tlpkg/TeXLive/TLPDB.pm line 416
 TeXLive::TLPDB::new at /usr/share/texlive/tlpkg/TeXLive/TLPDB.pm line 146
 main::reinit_local_tlpdb at /usr/share/texlive/texmf-dist/scripts/texlive/tlmgrgui.pl line 2024
 main::update_all_packages at /usr/share/texlive/texmf-dist/scripts/texlive/tlmgrgui.pl line 1970
 main::__ANON__ at /usr/share/texlive/texmf-dist/scripts/texlive/tlmgrgui.pl line 436

texlive.tlpdb文件未安装在/usr/share/texlive/tlpkg/,而是安装在

/root/texmf/tlpkg/texlive.tlpdb
/usr/local/texlive/2016/tlpkg/texlive.tlpdb

我该如何正确重新配置tlmgr才能走正确的路径?谢谢

答案1

您可以尝试运行:

sudo tlmgr backup --clean --all

相关内容