当我高兴地更新软件包时,出现了以下错误:
Error: Windows API error 87: The parameter is incorrect.
包含此错误的完整更新报告如下:
MiKTeX Update Wizard Report
Version: 2.8.3553
Date: Friday, May 13, 2011
Time: 20:22:14
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-zzdb2-2.8.tar.lzma...
538036 bytes, 1199.60 KB/Sec
updating package definition directory ("C:\Program Files\MiKTeX 2.8\tpm\packages")...
installed 602 package definition files
visiting repository http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/...
repository type: remote package repository
loading lightweight database...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-zzdb1-2.8.tar.lzma...
106964 bytes, 392.70 KB/Sec
starting package maintenance...
installation directory: "C:\Program Files\MiKTeX 2.8"
package repository: http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/
lightweight database digest: eb1794ec380d1dad82ca309893aaa958
going to download 29222566 bytes
going to install 1046 file(s) (60 package(s))
unregistering C:\Program Files\MiKTeX 2.8\miktex\bin\MiKTeX208-core-PS.dll
unregistering C:\Program Files\MiKTeX 2.8\miktex\bin\MiKTeX208-core.dll
unregistering C:\Program Files\MiKTeX 2.8\miktex\bin\MiKTeX208-packagemanager-PS.dll
unregistering C:\Program Files\MiKTeX 2.8\miktex\bin\MiKTeX208-packagemanager.dll
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/expl3.tar.lzma...
3702662 bytes, 1322.56 KB/Sec
extracting files from expl3.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/latexmk.tar.lzma...
214019 bytes, 477.18 KB/Sec
extracting files from latexmk.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/mhchem.tar.lzma...
256063 bytes, 841.96 KB/Sec
extracting files from mhchem.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-arctrl-bin-2.8.tar.lzma...
15294 bytes, 317.78 KB/Sec
extracting files from miktex-arctrl-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-bibtex-bin-2.8.tar.lzma...
50296 bytes, 314.85 KB/Sec
extracting files from miktex-bibtex-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-bibtex8bit-bin-2.8.tar.lzma...
42207 bytes, 438.49 KB/Sec
extracting files from miktex-bibtex8bit-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-bin-2.8.tar.lzma...
1421335 bytes, 879.61 KB/Sec
extracting files from miktex-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-cjkutils-bin-2.8.tar.lzma...
32140 bytes, 154.61 KB/Sec
extracting files from miktex-cjkutils-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-config-2.8.tar.lzma...
2807 bytes, 88.43 KB/Sec
extracting files from miktex-config-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-cweb-bin-2.8.tar.lzma...
35078 bytes, 218.19 KB/Sec
extracting files from miktex-cweb-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-doc-2.8.tar.lzma...
2311080 bytes, 976.17 KB/Sec
extracting files from miktex-doc-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-dvicopy-bin-2.8.tar.lzma...
34386 bytes, 308.07 KB/Sec
extracting files from miktex-dvicopy-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-dvipdfmx-bin-2.8.tar.lzma...
221944 bytes, 462.14 KB/Sec
extracting files from miktex-dvipdfmx-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-dvipng-bin-2.8.tar.lzma...
33054 bytes, 187.67 KB/Sec
extracting files from miktex-dvipng-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-dvips-bin-2.8.tar.lzma...
77697 bytes, 538.13 KB/Sec
extracting files from miktex-dvips-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-findtexmf-bin-2.8.tar.lzma...
13762 bytes, 213.32 KB/Sec
extracting files from miktex-findtexmf-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-fontconfig-base.tar.lzma...
8819 bytes, 110.41 KB/Sec
extracting files from miktex-fontconfig-base.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-fontconfig-bin-2.8.tar.lzma...
92834 bytes, 413.96 KB/Sec
extracting files from miktex-fontconfig-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-fonts-bin-2.8.tar.lzma...
86402 bytes, 490.56 KB/Sec
extracting files from miktex-fonts-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-freetype-bin-2.8.tar.lzma...
100798 bytes, 572.30 KB/Sec
extracting files from miktex-freetype-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-freetype2-bin-2.8.tar.lzma...
195306 bytes, 642.18 KB/Sec
extracting files from miktex-freetype2-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-ghostscript-base.tar.lzma...
515717 bytes, 920.71 KB/Sec
extracting files from miktex-ghostscript-base.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-ghostscript-bin.tar.lzma...
1143434 bytes, 1231.13 KB/Sec
extracting files from miktex-ghostscript-bin.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-graphics-bin-2.8.tar.lzma...
279937 bytes, 876.21 KB/Sec
extracting files from miktex-graphics-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-gsf2pk-bin-2.8.tar.lzma...
18298 bytes, 283.64 KB/Sec
extracting files from miktex-gsf2pk-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-hunspell-bin-2.8.tar.lzma...
67100 bytes, 524.22 KB/Sec
extracting files from miktex-hunspell-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-icu-bin.tar.lzma...
1488401 bytes, 1477.15 KB/Sec
extracting files from miktex-icu-bin.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-makeindex-bin-2.8.tar.lzma...
20121 bytes, 316.93 KB/Sec
extracting files from miktex-makeindex-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-metafont-bin-2.8.tar.lzma...
122028 bytes, 692.84 KB/Sec
extracting files from miktex-metafont-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-metapost-bin-2.8.tar.lzma...
175368 bytes, 910.95 KB/Sec
extracting files from miktex-metapost-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-mfware-bin-2.8.tar.lzma...
65965 bytes, 515.35 KB/Sec
extracting files from miktex-mfware-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-mkfntmap-bin-2.8.tar.lzma...
37433 bytes, 388.89 KB/Sec
extracting files from miktex-mkfntmap-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-mktex-bin-2.8.tar.lzma...
35387 bytes, 317.04 KB/Sec
extracting files from miktex-mktex-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-mo-bin-2.8.tar.lzma...
78178 bytes, 610.77 KB/Sec
extracting files from miktex-mo-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-mpm-bin-2.8.tar.lzma...
53472 bytes, 474.72 KB/Sec
extracting files from miktex-mpm-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-mthelp-bin-2.8.tar.lzma...
25179 bytes, 264.40 KB/Sec
extracting files from miktex-mthelp-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-mtprint-bin-2.8.tar.lzma...
17507 bytes, 275.75 KB/Sec
extracting files from miktex-mtprint-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-omega-bin-2.8.tar.lzma...
312784 bytes, 1028.46 KB/Sec
extracting files from miktex-omega-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-pdftex-bin-2.8.tar.lzma...
410282 bytes, 1168.12 KB/Sec
extracting files from miktex-pdftex-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-poppler-bin-2.8.tar.lzma...
435648 bytes, 973.54 KB/Sec
extracting files from miktex-poppler-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-ps2pk-bin-2.8.tar.lzma...
58451 bytes, 607.25 KB/Sec
extracting files from miktex-ps2pk-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-psutils-bin-2.8.tar.lzma...
20291 bytes, 319.60 KB/Sec
extracting files from miktex-psutils-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-qt4-bin.tar.lzma...
3602404 bytes, 1230.49 KB/Sec
extracting files from miktex-qt4-bin.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-runtime-bin-2.8.tar.lzma...
795821 bytes, 1602.41 KB/Sec
extracting files from miktex-runtime-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-teckit-bin-2.8.tar.lzma...
23914 bytes, 248.44 KB/Sec
extracting files from miktex-teckit-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-tex-bin-2.8.tar.lzma...
137217 bytes, 1072.01 KB/Sec
extracting files from miktex-tex-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-tex4ht-bin-2.8.tar.lzma...
55626 bytes, 434.58 KB/Sec
extracting files from miktex-tex4ht-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-texify-bin-2.8.tar.lzma...
56469 bytes, 501.32 KB/Sec
extracting files from miktex-texify-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-texinfo-bin-2.8.tar.lzma...
80119 bytes, 717.81 KB/Sec
extracting files from miktex-texinfo-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-texware-bin-2.8.tar.lzma...
65985 bytes, 460.27 KB/Sec
extracting files from miktex-texware-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-texworks-bin-2.8.tar.lzma...
1206559 bytes, 1603.10 KB/Sec
extracting files from miktex-texworks-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-texworks-doc.tar.lzma...
1052987 bytes, 1462.74 KB/Sec
extracting files from miktex-texworks-doc.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-vc90-bin.tar.lzma...
2468035 bytes, 1021.70 KB/Sec
extracting files from miktex-vc90-bin.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-web-bin-2.8.tar.lzma...
52963 bytes, 276.59 KB/Sec
extracting files from miktex-web-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-xdvipdfmx-bin-2.8.tar.lzma...
243744 bytes, 725.71 KB/Sec
extracting files from miktex-xdvipdfmx-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-xetex-bin-2.8.tar.lzma...
428565 bytes, 1162.56 KB/Sec
extracting files from miktex-xetex-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-yap-bin-2.8.tar.lzma...
387449 bytes, 1103.11 KB/Sec
extracting files from miktex-yap-bin-2.8.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/miktex-zip-bin.tar.lzma...
137464 bytes, 855.05 KB/Sec
extracting files from miktex-zip-bin.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/siunitx.tar.lzma...
658093 bytes, 1177.05 KB/Sec
extracting files from siunitx.tar.lzma...
downloading http://ctan.unsw.edu.au/systems/win32/miktex/tm/packages/xpackages.tar.lzma...
3440188 bytes, 977.18 KB/Sec
extracting files from xpackages.tar.lzma...
Error: Windows API error 87: The parameter is incorrect.
发生了什么事?我该如何解决?谢谢。
答案1
该问题曾被报告给miktex-users
邮件列表(Nabble 存档:
http://old.nabble.com/Problem-Updating-%28Windows-API-error-87%29-td24971196.html)
最终的解决方案是:
问题出在我打开了一个 MikTex 实例,它阻止了安装所需的文件。我关闭 MikTex 实例后,安装工作正常。
通常,关闭 Windows 下的所有更新应用程序是个好主意。如果失败,请重新启动计算机并重试。
答案2
我遇到了同样的问题 - 上述解决方案对我来说不起作用,但可以在以下位置找到有效的方法http://comments.gmane.org/gmane.editors.lyx.general/69152.解决方法是:
问题解决了。PDFLatex 不会因为卸载软件包而导致运行出现问题而死机。它阻止了一些文件,我猜这些文件需要由软件包管理器进行修改。关闭 PDFLatex 后,安装运行顺利。
希望能帮助到你!
答案3
我发现,对于 MikTeX 中的任何“Windows API 错误 87”,删除以下文件夹中的所有文件都有效。
C:\Users\%USER%\AppData\Local\MiKTeX\2.9\miktex\data\le
C:\ProgramData\MiKTeX\2.9\miktex\data\le
答案4
我遇到了同样的问题,然后我尝试重新安装 MiKTeX。另一个问题是,由于“API 错误 87”,无法安装...
这是因为另一个程序正在使用该文件,就我而言是 Adobe Cloud Creative。
如果您关闭使用此 dll 的程序,那么您可以实现、安装或使用它...
另一个选项是寻找文件,如果没有出现在正确的位置,则使用acrobat的文件,是一样的。
粘贴到安装 MiKTeX 的根目录,通常是:c:program files/miktex2.9/miktex/bin/x64