我正在尝试编译一个 stnaderd 文档,直到昨天它都很好,现在我打开了该文件,当我尝试编译它时出现以下消息:
Unfortunately, the package latex-tools could not be installed. Please check the log file: C:\Users\matte\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log
这是日志文件:
2021-01-25 16:42:10,917+0100 INFO pdflatex - this process (18884) started by 'texstudio' with command line: pdflatex.exe -synctex=1 -interaction=nonstopmode PhD_Thesis.tex
2021-01-25 16:42:10,926+0100 INFO pdflatex - allowing known shell commands
2021-01-25 16:42:13,135+0100 INFO pdflatex - installing package latex-tools triggered by tex/latex/latex-tools\indentfirst.sty
2021-01-25 16:42:13,135+0100 INFO pdflatex.core - turning on administrator mode
2021-01-25 16:42:13,180+0100 FATAL pdflatex.core - Cannot start MiKTeX package manager.
2021-01-25 16:42:13,180+0100 FATAL pdflatex.core - Data: hr="0x800401e4"
2021-01-25 16:42:13,180+0100 FATAL pdflatex.core - Source: Libraries\MiKTeX\PackageManager\PackageInstallerImpl.cpp:1291
2021-01-25 16:42:13,180+0100 FATAL pdflatex - Cannot start MiKTeX package manager.
2021-01-25 16:42:13,180+0100 FATAL pdflatex - Info: hr="0x800401e4"
2021-01-25 16:42:13,180+0100 FATAL pdflatex - Source: Libraries\MiKTeX\PackageManager\PackageInstallerImpl.cpp
2021-01-25 16:42:13,181+0100 FATAL pdflatex - Line: 1291
2021-01-25 16:42:13,183+0100 INFO pdflatex.core - turning off administrator mode
2021-01-25 16:42:14,030+0100 INFO pdflatex - this process (18884) finishes with exit code 1
2021-01-25 16:42:14,032+0100 WARN miktex.core - still open: PhD_Thesis.tex
编辑:
现在,每次我尝试编译某些内容时都会显示此消息:
抱歉,pdflatex.exe 未能成功。希望日志文件包含让 MiKTeX 再次运行的信息:C:/Users/matte/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log 如果您需要帮助,您可能需要访问 MiKTeX 项目页面。
这是日志文件:
2021-01-25 18:53:44,061+0100 INFO pdflatex - running 'initexmf --quiet --update-fndb' to refresh the file name database
2021-01-25 18:53:49,112+0100 INFO pdflatex - 将创建文件:pdflatex.fmt 2021-01-25 18:53:52,257+0100 FATAL pdflatex - 找不到内存转储文件。 2021-01-25 18:53:52,257+0100 FATAL pdflatex - 信息:fileName="pdflatex.fmt" 2021-01-25 18:53:52,257+0100 FATAL pdflatex - 来源:Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp 2021-01-25 18:53:52,257+0100 FATAL pdflatex - 行:649 2021-01-25 18:54:19,077+0100 INFO pdflatex - 运行“initexmf --quiet --update-fndb”以刷新文件名数据库 2021-01-25 18:54:23,961+0100 INFO pdflatex - 正在进行创建文件:pdflatex.fmt 2021-01-25 18:54:27,470+0100 FATAL pdflatex - 找不到内存转储文件。 2021-01-25 18:54:27,470+0100 FATAL pdflatex - 信息:fileName="pdflatex.fmt" 2021-01-25 18:54:27,470+0100 FATAL pdflatex - 来源:Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp 2021-01-25 18:54:27,470+0100 FATAL pdflatex - 行:649 2021-01-25 18:55:37,251+0100 INFO pdflatex - 运行“initexmf --quiet --update-fndb”以刷新文件名数据库 2021-01-25 18:55:41,911+0100 INFO pdflatex - 正在进行创建文件:pdflatex.fmt 2021-01-25 18:55:44,975+0100 FATAL pdflatex - 找不到内存转储文件。 2021-01-25 18:55:44,975+0100 FATAL pdflatex - 信息:fileName="pdflatex.fmt" 2021-01-25 18:55:44,975+0100 FATAL pdflatex - 来源:Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp 2021-01-25 18:55:44,975+0100 FATAL pdflatex - 行:649 2021-01-25 18:56:13,083+0100 INFO pdflatex - 运行“initexmf --quiet --update-fndb”以刷新文件名数据库 2021-01-25 18:56:17,743+0100 INFO pdflatex - 正在进行创建文件:pdflatex.fmt 2021-01-25 18:56:20,854+0100 FATAL pdflatex - 找不到内存转储文件。 2021-01-25 18:56:20,854+0100 FATAL pdflatex - 信息:fileName="pdflatex.fmt" 2021-01-25 18:56:20,854+0100 FATAL pdflatex - 来源:Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp 2021-01-25 18:56:20,854+0100 FATAL pdflatex - 行:649