英文:
ERROR: Your TexLive version is not updated enough
问题
我想使用Quarto
创建一个PDF文档。当我运行以下简单的代码时,它返回以下错误:
title: "Test"
format: pdf
示例文档
输出错误:
运行xelatex - 1
找不到xelatex命令,尝试安装
查找xelatex包
错误:您的TexLive版本未更新到足以连接到远程存储库并下载包。请更新TexLive或TinyTex的安装。
底层消息:本地TeX Live(2020年)早于远程存储库(2022年)。跨版本更新仅受支持于update-tlmgr-latest(.sh/.exe)--update
请参阅https://tug.org/texlive/upgrade.html了解详细信息。
我不明白为什么会发生这个错误。我尝试按照这里中描述的方式使用tinytex::install_tinytex()
,但在安装后错误仍然相同。我还更新了tlmgr,似乎像这里描述的那样工作:
tinytex::tlmgr_update()
tlmgr update --all --self
我还尝试像这样重新安装tinytex::reinstall_tinytex()
:
tinytex::reinstall_tinytex()
如果重新安装失败,请再次尝试install_tinytex()。然后安装以下包:
tinytex::tlmgr_install(c("amscls", "amsfonts", "amsmath", "atbegshi", "atveryend", "auxhook", "babel", "bibtex", "bigintcalc", "bitset", "booktabs", "cm", "ctablestack", "dehyph", "dvipdfmx", "dvips", "ec", "epstopdf-pkg", "etex", "etexcmds", "etoolbox", "euenc", "everyshi", "fancyvrb", "filehook", "firstaid", "float", "fontspec", "framed", "geometry", "gettitlestring", "glyphlist", "graphics", "graphics-cfg", "graphics-def", "helvetic", "hycolor", "hyperref", "hyph-utf8", "hyphen-base", "iftex", "inconsolata", "infwarerr", "intcalc", "knuth-lib", "kpathsea", "kvdefinekeys", "kvoptions", "kvsetkeys", "l3backend", "l3kernel", "l3packages", "latex", "latex-amsmath-dev", "latex-bin", "latex-fonts", "latex-tools-dev", "latexconfig", "latexmk", "letltxmacro", "lm", "lm-math", "ltxcmds", "lua-alt-getopt", "lua-uni-algos", "luahbtex", "lualatex-math", "lualibs", "luaotfload", "luatex", "luatexbase", "mdwtools", "metafont", "mfware", "modes", "natbib", "pdfescape", "pdftex", "pdftexcmds", "plain", "psnfss", "refcount", "rerunfilecheck", "scheme-infraonly", "selnolig", "stringenc", "symbol", "tex", "tex-ini-files", "texlive-scripts", "texlive.infra", "times", "tipa", "tools", "unicode-data", "unicode-math", "uniquecounter", "url", "xcolor", "xetex", "xetexconfig", "xkeyval", "xunicode", "zapfding"))
目录/home/quinten/.TinyTeX/texmf-local不为空。它将被备份到/tmp/Rtmp6FzD8d/file2890646844830b并稍后恢复。
找到'/usr/bin/tlmgr',这表明系统中可能存在LaTeX发行版。无论如何继续安装?(Y/N)Y
tlmgr选项sys_bin~/bin
tlmgr:将选项sys_bin设置为/home/quinten/bin。
tlmgr:更新/home/quinten/.TinyTeX/tlpkg/texlive.tlpdb
tlmgr选项存储库'https://mirrors.evoluso.com/CTAN/systems/texlive/tlnet'
tlmgr:将默认包存储库设置为https://mirrors.evoluso.com/CTAN/systems/texlive/tlnet
tlmgr:更新/home/quinten/.TinyTeX/tlpkg/texlive.tlpdb
tlmgr update --list
tlmgr:包存储库https://mirrors.evoluso.com/CTAN/systems/texlive/tlnet(已验证)
update: texlive-scripts [112k]: local: 66415, source: 66467
但错误仍然存在。所以我想知道是否有人知道如何修复这个错误?
请注意:我目前正在使用Linux。
英文:
I would like to create a pdf document using Quarto
. When I run the following simple code it returns the following error:
---
title: "Test"
format: pdf
---
Example document
Output error:
running xelatex - 1
command xelatex not found, attempting install
finding package for xelatex
ERROR: Your TexLive version is not updated enough to connect to the remote repository and download packages. Please update your installation of TexLive or TinyTex.
Underlying message: Local TeX Live (2020) is older than remote repository (2022).
Cross release updates are only supported with
update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
I don't understand why this error is happening. I tried using tinytex::install_tinytex()
like described here, but after installing the error stays the same. I also updated the tlmgr which seems to work like described here:
> tinytex::tlmgr_update()
tlmgr update --all --self
I also tried to tinytex::reinstall_tinytex()
like this:
> tinytex::reinstall_tinytex()
If reinstallation fails, try install_tinytex() again. Then install the following packages:
tinytex::tlmgr_install(c("amscls", "amsfonts", "amsmath", "atbegshi", "atveryend", "auxhook", "babel", "bibtex", "bigintcalc", "bitset", "booktabs", "cm", "ctablestack", "dehyph", "dvipdfmx", "dvips", "ec", "epstopdf-pkg", "etex", "etexcmds", "etoolbox", "euenc", "everyshi", "fancyvrb", "filehook", "firstaid", "float", "fontspec", "framed", "geometry", "gettitlestring", "glyphlist", "graphics", "graphics-cfg", "graphics-def", "helvetic", "hycolor", "hyperref", "hyph-utf8", "hyphen-base", "iftex", "inconsolata", "infwarerr", "intcalc", "knuth-lib", "kpathsea", "kvdefinekeys", "kvoptions", "kvsetkeys", "l3backend", "l3kernel", "l3packages", "latex", "latex-amsmath-dev", "latex-bin", "latex-fonts", "latex-tools-dev", "latexconfig", "latexmk", "letltxmacro", "lm", "lm-math", "ltxcmds", "lua-alt-getopt", "lua-uni-algos", "luahbtex", "lualatex-math", "lualibs", "luaotfload", "luatex", "luatexbase", "mdwtools", "metafont", "mfware", "modes", "natbib", "pdfescape", "pdftex", "pdftexcmds", "plain", "psnfss", "refcount", "rerunfilecheck", "scheme-infraonly", "selnolig", "stringenc", "symbol", "tex", "tex-ini-files", "texlive-scripts", "texlive.infra", "times", "tipa", "tools", "unicode-data", "unicode-math", "uniquecounter", "url", "xcolor", "xetex", "xetexconfig", "xkeyval", "xunicode", "zapfding"))
The directory /home/quinten/.TinyTeX/texmf-local is not empty. It will be backed up to /tmp/Rtmp6FzD8d/file2890646844830b and restored later.
Found '/usr/bin/tlmgr', which indicates a LaTeX distribution may have existed in the system.
Continue the installation anyway? (Y/N) Y
tlmgr option sys_bin ~/bin
tlmgr: setting option sys_bin to /home/quinten/bin.
tlmgr: updating /home/quinten/.TinyTeX/tlpkg/texlive.tlpdb
tlmgr option repository 'https://mirrors.evoluso.com/CTAN/systems/texlive/tlnet'
tlmgr: setting default package repository to https://mirrors.evoluso.com/CTAN/systems/texlive/tlnet
tlmgr: updating /home/quinten/.TinyTeX/tlpkg/texlive.tlpdb
tlmgr update --list
tlmgr: package repository https://mirrors.evoluso.com/CTAN/systems/texlive/tlnet (verified)
update: texlive-scripts [112k]: local: 66415, source: 66467
But the errors is still there. So I was wondering if anyone knows how to fix this error?
Please note: I am currently using Linux.
答案1
得分: 0
以下是翻译好的内容:
For me, it was probably fixed by installing Tex Live on Ubuntu via a terminal session like described here. First, you should update the apt packages running this:
对我来说,问题可能已通过在Ubuntu上通过终端会话安装Tex Live来解决,方法如下所述 这里。首先,您应该运行以下命令来更新apt软件包:
sudo apt update
To install Tex Live you should run the following:
要安装Tex Live,您应该运行以下命令:
sudo apt install texlive-full -y
After installing this, run tinytex::install_tinytex()
in your Rstudio console and the error should be gone.
安装完成后,在您的Rstudio控制台中运行tinytex::install_tinytex()
,错误应该消失了。
I also made sure that I have installed Quarto on my machine like described here.
我还确保我已经像这里描述的那样在我的计算机上安装了Quarto。
英文:
For me, it was probably fixed by installing Tex Live on Ubuntu via a terminal session like described here. First, you should update the apt packages running this:
sudo apt update
To install Tex Live you should run the following:
sudo apt install texlive-full -y
After installing this, run tinytex::install_tinytex()
in your Rstudio console and the error should be gone.
I also made sure that I have installed Quarto on my machine like described here.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论