我确实使用 MikTeX(带有 MikTeX Console 2.9.6888),今天我尝试更新我的软件包。我在更新过程中遇到了一些错误,但在重新启动并运行另一次更新后,单个软件包更新得以安装。
但是,更新后,pdflatex
似乎不再起作用。我在mwe.tex
\documentclass{article}
\begin{document}
Hello World!
\end{document}
pdflatex
在控制台上测试
pdflatex -halt-on-error mwe.tex
我得到的唯一输出是:
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6880 64-bit)
之后什么都没发生。我可以退出 shell,但正如前面提到的,没有任何输出这里。
我确实拥有系统管理员权限,并已尝试按照建议删除用户和管理员的 FNDB这里
C:\ProgramData\MiKTeX\2.9\miktex\data\le
C:\Users\[USER]\AppData\Local\MiKTeX\2.9\miktex\data\le
并使用 MikTeX 控制台以及重建initexmf
:
initexmf --update-fndb
initexmf --mklinks
对于用户和管理员来说都是如此--admin
。但是,什么也没有发生。
我注意到,当我pdflatex
在命令行上执行时,pdflatex
会创建 2 个任务并在任务管理器中可见:
用户和管理员是否可能同时执行一个实例pdflatex
并相互锁定?我该如何摆脱这个问题?
如果我终止pdflatex
使用较少内存的运行的 PID 的执行,另一个进程将继续运行并从上面的路径锁定管理 fndb,所以我猜剩下的进程是管理运行。如果我终止pdflatex
使用更多内存的进程,两个进程都会终止。
pdflatex.log
仅供参考pdflatex.log
2018-12-19 17:12:00,793+0100 INFO pdflatex - starting with command line: pdflatex -halt-on-error mwe.tex
2018-12-19 17:12:00,793+0100 INFO pdflatex - allowing known shell commands
2018-12-19 17:12:00,793+0100 INFO pdflatex - enabling input (output) from (to) processes
2018-12-19 17:12:00,823+0100 INFO pdflatex - going to create file: pdflatex.fmt
2018-12-19 17:12:07,863+0100 ERROR pdflatex - D:\Programme\MiKTeX\2.9\miktex\bin\x64\initexmf.exe did not succeed; exitCode: 1
2018-12-19 17:12:07,863+0100 ERROR pdflatex - output:
2018-12-19 17:12:07,863+0100 ERROR pdflatex -
Sorry, but "MiKTeX Configuration Utility" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\[USER]\AppData\Local\MiKTeX\2.9\miktex\log\initexmf.log
2018-12-19 17:12:07,863+0100 FATAL pdflatex - The memory dump file could not be found.
2018-12-19 17:12:07,863+0100 FATAL pdflatex - Info: fileName="pdflatex.fmt"
2018-12-19 17:12:07,863+0100 FATAL pdflatex - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp
2018-12-19 17:12:07,863+0100 FATAL pdflatex - Line: 689
2018-12-19 17:12:07,873+0100 INFO pdflatex - finishing with exit code 1
初始化日志文件
2018-12-19 17:12:01,043+0100 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6888 (MiKTeX 2.9.6880 64-bit)
2018-12-19 17:12:01,043+0100 INFO initexmf - Operating on the private (per-user) MiKTeX setup
2018-12-19 17:12:01,043+0100 INFO initexmf - starting with command line: initexmf --dump-by-name=pdflatex --engine=pdftex
2018-12-19 17:12:01,053+0100 INFO initexmf - running: miktex-makefmt.exe --engine=pdftex --dest-name=pdflatex --no-dump pdflatex.ini --engine-option=-tcx=cp227.tcx
2018-12-19 17:12:07,853+0100 ERROR initexmf - sub-process error output has been saved to 'C:\Users\[USER]\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makefmt_2018-12-19-171207.out'
2018-12-19 17:12:07,853+0100 FATAL initexmf - The executed process did not succeed.
2018-12-19 17:12:07,853+0100 FATAL initexmf - Info: fileName="D:\Programme\MiKTeX\2.9\miktex\bin\x64\miktex-makefmt.exe", exitCode="1"
2018-12-19 17:12:07,853+0100 FATAL initexmf - Source:
2018-12-19 17:12:07,853+0100 FATAL initexmf - Line: 0
miktex-makefmt_2018-12-19-171207.out
Running miktex-pdftex.exe...
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6880 64-bit) (INITEX)
entering extended mode
(D:/Programme/MiKTeX/2.9/tex/latex/00miktex/pdflatex.ini
(C:\Users\raed_ma\AppData\Roaming\MiKTeX\2.9\tex\generic\config\pdftexconfig.te
x)
(D:\Programme\MiKTeX\2.9\tex/latex\base\latex.ltx
(D:\Programme\MiKTeX\2.9\tex/latex\base\texsys.cfg)
./texsys.aux found
\@currdir set to: ./.
Assuming \openin and \input
have the same search path.
Defining UNIX/DOS style filename parser.
catcodes, registers, parameters,
LaTeX2e <2018-12-01>
hacks, control, par, spacing, files, font encodings, lengths,
====================================
Local config file fonttext.cfg used
====================================
(D:\Programme\MiKTeX\2.9\tex/latex\base\fonttext.cfg
(D:\Programme\MiKTeX\2.9\tex/latex\base\fonttext.ltx
=== Don't modify this file, use a .cfg file instead ===
(D:\Programme\MiKTeX\2.9\tex/latex\base\omlenc.def)
(D:\Programme\MiKTeX\2.9\tex/latex\base\t1enc.def)
(D:\Programme\MiKTeX\2.9\tex/latex\base\ot1enc.def)
(D:\Programme\MiKTeX\2.9\tex/latex\base\omsenc.def)
(D:\Programme\MiKTeX\2.9\tex/latex\base\t1cmr.fd)
(D:\Programme\MiKTeX\2.9\tex/latex\base\ot1cmr.fd)
(D:\Programme\MiKTeX\2.9\tex/latex\base\ot1cmss.fd)
(D:\Programme\MiKTeX\2.9\tex/latex\base\ot1cmtt.fd)))
====================================
Local config file fontmath.cfg used
====================================
(D:\Programme\MiKTeX\2.9\tex/latex\base\fontmath.cfg
(D:\Programme\MiKTeX\2.9\tex/latex\base\fontmath.ltx
=== Don't modify this file, use a .cfg file instead ===
(D:\Programme\MiKTeX\2.9\tex/latex\base\omlcmm.fd)
(D:\Programme\MiKTeX\2.9\tex/latex\base\omscmsy.fd)
(D:\Programme\MiKTeX\2.9\tex/latex\base\omxcmex.fd)
(D:\Programme\MiKTeX\2.9\tex/latex\base\ucmr.fd)))
====================================
Local config file preload.cfg used
=====================================
(D:\Programme\MiKTeX\2.9\tex/latex\base\preload.cfg
(D:\Programme\MiKTeX\2.9\tex/latex\base\preload.ltx)) page nos., x-ref,
environments, center, verbatim, math definitions, boxes, title, sectioning,
contents, floats, footnotes, index, bibliography, output,
===========================================
Local configuration file hyphen.cfg used
===========================================
(D:\Programme\MiKTeX\2.9\tex/generic\babel\hyphen.cfg
(D:\Programme\MiKTeX\2.9\tex/generic\babel\switch.def)
(D:\Programme\MiKTeX\2.9\tex/generic\knuth-lib\hyphen.tex)
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\loadhyph\loadhyph-af.tex
EC Afrikaans hyphenation patterns
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\conversions\conv-utf8-ec.tex)
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\patterns\tex\hyph-af.tex))
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\loadhyph\loadhyph-grc.tex
Hyphenation patterns for Ancient Greek
(D:\Programme\MiKTeX\2.9\tex/generic\elhyphen\grahyph5.tex
Hyphenation patterns for Ancient Greek))
(D:\Programme\MiKTeX\2.9\tex/generic\hyphen\zerohyph.tex)
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\loadhyph\loadhyph-hy.tex
No Armenian hyphenation patterns - only for Unicode engines)
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\loadhyph\loadhyph-as.tex
No Assamese hyphenation patterns - only for Unicode engines)
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\loadhyph\loadhyph-eu.tex
EC Basque hyphenation patterns
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\conversions\conv-utf8-ec.tex)
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\patterns\tex\hyph-eu.tex))
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\loadhyph\loadhyph-bn.tex
No Bengali hyphenation patterns - only for Unicode engines)
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\loadhyph\loadhyph-nb.tex
EC Norwegian Bokmal hyphenation patterns
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\conversions\conv-utf8-ec.tex)
(D:\Programme\MiKTeX\2.9\tex/generic\hyph-utf8\patterns\tex\hyph-nb.tex
(
好像停在中间。
编辑
今天,我尝试解决这个问题并进行了 MikTeX 更新。我收到以下错误提示:
同时出现如下错误报告:
Windows API error 127: Die angegebene Prozedur wurde nicht gefunden.
细节:
dllName="D:\Programme\MiKTeX\2.9\miktex/bin/x64\MiKTeX209-packagemanager.dll"
附带问题: 处的斜线有问题吗/bin/
?
答案1
问题无法解决。我最终重新安装了新版 MikTeX。