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.
GENERAL MIKTEX INFORMATION
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
Invokers:
The following issues were detected:
1: major issue: User/administrator updates are out-of-sync.
ERROR DETAILS
Program: miktex-console.exe
Source: Libraries\MiKTeX\Core\LockFile\LockFile.cpp:115
Error: MiKTeX encountered an internal error.
MiKTeX and proTeXt ⇒ MiKTeX encountered an internal error
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
MiKTeX encountered an internal error
On MiKTeX you should always do the update twice:
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.
- Do an update in the Admin mode of the MiKTeX console.
- Do an update in the User mode of the MiKTeX console.
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. 
