If you have installed MiKTeX through
Chocolatey, it won't work properly until some updates to the toolkits have been installed. Since this requires at least partial access to the internet, some configuration needs to be done beforehand. This article aims to give a step-by-step instruction on how to set up MiKTeX in your virtual machine so you can make proper use of this toolkit.
This list is up to date as of April 2024! Please keep in mind that, as MiKTeX receives new updates which might be hosted on different domains, these additional domains also have to be added to the allowlist. The MiKTeX console will provide the information on which domains it couldn't access in such a case.
Configuring the proxy-settings for MiKTeX
1. Go to your virtual machine which has MiKTeX installed.
2. Open the MiKTeX console. Make sure you do this with 'Run as administrator' by right-clicking the application launcher.
3. You will be greeted with an error that no administrator has checked for updates yet. Click OK.
4. In the MiKTeX console, click on 'Switch to MiKTeX administrator mode'.
5. The console will now restart and give the same error as before.
6. On the left side, click on 'Updates' and then on the button 'Change...' on the right side. This will open another window to change the package repository.
7. Click on 'Connection Settings' and change it to the following:
8. Click OK and close all the configuration windows to go back to the console's update menu. There, click on 'Check for updates'. This process can take up to a minute to complete.
9. Once all the updates have been collected, click on 'Update Now'. The console will restart itself after the updating is complete. The error pop-up should not reappear.
10. To mitigate any potential security risk, remove the domains listed under Prerequisites from the allowlist again.