我安装了 TexStudio,每当我尝试编译 .tex 文件时,编译器都会运行一段时间,然后出现上述错误。这种情况发生在 TexStudio 中,以及在使用 pdflatex 的终端中。有什么线索吗?我使用的是 Pop!_Os 20.04
以下是 pdflatex 输出:
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./tables.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the \?' option.`
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amscls/amsthm.sty)
(/usr/share/texlive/texmf-dist/tex/latex/booktabs/booktabs.sty)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def)
(./tables.aux) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}pdflatex: tables: Illegal seek
答案1
我在尝试使用 rclone 安装的 OneDrive 进行编译时遇到了同样的问题。当我按照此处的建议实施解决方案以使 Libre Office 与 rclone 配合使用时,问题消失了https://github.com/rclone/rclone/issues/2906#issuecomment-574741176。
解决方法是在挂载云存储时添加一个标志
rclone mount remote:path_to_remote path_to_local_folder --vfs-cache-mode writes
rclone 的挂载选项限制中也提到了这一点 http://manpages.ubuntu.com/manpages/cosmic/man1/rclone.1.html