LaTeX forum ⇒ MiKTeX and proTeXtMiKTeX encountered an internal error

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Posts: 1
Joined: Thu Nov 18, 2021 3:54 am

MiKTeX encountered an internal error

Postby JimmyHu » Thu Nov 18, 2021 4:20 am

I am using MPM(MiKTeX package manager) and the error "MiKTeX encountered an internal error" happened. Can anyone help me to solve this? Thank you.

ReportDate: 2021-11-18 10:16:29
CurrentVersion: 21.2
SetupDate: 2021-08-28 16:21:00
SetupVersion: 2.9
Configuration: Regular
GitInfo: 7a7e645 / 2021-02-20 10:38:14
OS: Windows 10 Pro, 64-bit, build 19043
SharedSetup: yes
LinkTargetDirectory: C:\Program Files\MiKTeX 2.9\miktex\bin\x64
PathOkay: yes
LastUpdateCheckAdmin: 2021-08-28 16:22:19
LastUpdateAdmin: not yet
LastUpdateDbAdmin: 2021-08-28 16:22:16
LastUpdateCheck: 2021-11-18 09:05:55
LastUpdate: 2021-11-18 08:50:24
LastUpdateDb: 2021-11-18 09:06:49
SystemAdmin: yes
RootPrivileges: yes
AdminMode: no
Root0: C:\Users\jimmyhu\AppData\Roaming\MiKTeX\2.9
Root1: C:\Users\jimmyhu\AppData\Local\MiKTeX\2.9
Root2: C:\ProgramData\MiKTeX\2.9
Root3: C:\Program Files\MiKTeX 2.9
UserInstall: C:\Users\jimmyhu\AppData\Roaming\MiKTeX\2.9
UserConfig: C:\Users\jimmyhu\AppData\Roaming\MiKTeX\2.9
UserData: C:\Users\jimmyhu\AppData\Local\MiKTeX\2.9
CommonInstall: C:\Program Files\MiKTeX 2.9
CommonConfig: C:\ProgramData\MiKTeX\2.9
CommonData: C:\ProgramData\MiKTeX\2.9

The following issues were detected:
1: major issue: User/administrator updates are out-of-sync.

Program: miktex-console.exe
Source: Libraries\MiKTeX\Core\LockFile\LockFile.cpp:115
Error: MiKTeX encountered an internal error.

Recommended reading 2021: •
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

MiKTeX encountered an internal error

Postby Ijon Tichy » Thu Nov 18, 2021 8:50 am

On MiKTeX you should always do the update twice:
  1. Do an update in the Admin mode of the MiKTeX console.
  2. Do an update in the User mode of the MiKTeX console.
It seems you never have done an update in admin mode.
So you should try to switch to the Admin mode of the MiKTeX console and make an update, before you try to make another update in user mode.

The file lock error can occur, if another program, e.g. an antivirus software,currently has locked one of the files of the MiKTeX installation. Sometimes waiting does help, sometimes a restart of windows is needed. Sometimes the locking process has to be deactivated. For average users it is a bit tricky to identify the locking process. For more information about windows file locking ask a windows forum.

Caveat: I'm neither a windows nor a MiKTeX expert.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:

Return to “MiKTeX and proTeXt”

Who is online

Users browsing this forum: No registered users and 2 guests