How to update MikTeX please? In the second picture I tried this opportunity and the update not succed. I read that admin update help, but I cannot it open. I have nothing ticked and select all is grey. Thank you.

enter image description here

enter image description here

enter image description here

  • 1
    What is your version of MikTeX and what is your operating system? – AndréC Nov 25 '18 at 19:58
  • I have Windows 7 and 2.7s version of MikTeX – Elisabeth Nov 25 '18 at 20:05
  • 2
    Your miktex looks quite outdated. You can try to update first with update admin, but such large update jumps are often quite difficult. – Ulrike Fischer Nov 25 '18 at 20:13
  • I cannot open admin update. There is a error in the first picture – Elisabeth Nov 25 '18 at 20:19
  • I would uninstall the old version and reinstall a fresh version. – Dr. Manuel Kuehner Nov 25 '18 at 20:41

Updating older versions of MiKTeX is problematic you can attempt it however see the following comment.

Note what is written on the MiKTeX 2.8 Status Page:

This version has reached the ‘end-of-life’ status. It will not be possible to install packages from the remote package repository. The current release is 2.9.

The main reason for API 87 error is there is an open file blocking the install. This could be another application or two instances of MiKTeX app or even a stuck part from previous running compilation.

If you are confident about "killing" windows tasks, you could try to remove them. Otherwise you need to use Windows 7 Start button to "reboot" i.e. Shut down then restart

However in Windows 10 it may be better to "Restart" Windows (NOT Shut down)

When you restart avoid using any related commands (exit/close any adobe background task or other pdf handler app). Close any editor e.g. TeXworks and do not run any command line tex compilation as many users have found simply running pdfLaTeX can initiate the file locking and that is what can be causing open files to block MiKTeX updating them.

Run MiKTeX console (IF you have dual install use admin first) under "Tasks" Refresh the filename database and try selecting updates again.

The console is usually seen in the Icon tray as a small blue circle or a shortcut from installation, you should be able to run it from a command prompt by typing > miktex-console
If you can't then your install may be out of date or is not correct as it should be on your system path. To check from command prompt run> mpm --print-package-info=miktex-console-bin-2.9 there should be three run-time files listed, if not try> mpm --install=miktex-console-bin-2.9

Some users have found closing MiKTeX console fully and re-entering triggers the update process. Other command line sequences that may help are

initexmf --update-fndb
initexmf --mkmaps  
initexmf --mklinks --force  
mpm --find-updates  
mpm --update  

If you have dual (admin and basic user) then you may need to add --admin after initexmf and mpm with the commands above like this mpm --admin --update

If console is working but updates are not the final suggestion is

  1. Start MiKTeX console
  2. Click Cleanup to navigate to the cleanup page.
  3. Click Reset the MiKTeX installation to factory defaults
  4. In "Tasks" refresh the filename database and the font map files
  • You mean this? wintip.cz/585-jak-provest-cisty-restart-windows – Elisabeth Nov 25 '18 at 20:22
  • So I should open cmd and write "DO Shut down and restart"? – Elisabeth Nov 25 '18 at 20:46
  • Sorry no simply use the normal end of day close and switch on – user170109 Nov 25 '18 at 20:47
  • I hhut down the computer and switch on, but the error is still there. – Elisabeth Nov 25 '18 at 20:55
  • when you started computer what sequence of commands did you use, what I am trying to understand is do you have an editor or compilation (pdfLaTeX) running ? it must only be one MiKTeX update not a competing command – user170109 Nov 25 '18 at 21:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.