New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest MiKTeX update breaks everything #53
Comments
This seems to be a dup of #52. Please try to execute the workaround. |
I don't think this is a dup of #52. I tried the proposed workaround before posting this one, and just tried it again (and failed all the same). First, my installation path is not ended with |
You are right. Then please attach the log files (esp. the mpm log file). |
Where could I find the requested log files, please? The |
You can find it in
|
Thanks for the guidance! Found them under The following logs are not attached, because they end with "finishing with exit code 0": initexmf.log, mkfntmap.log, miktex-fc-cache.log, fc-cache.log. In
Each time, |
Thank you. But the mpm log file does not contain an error messages. Can you take a look at |
I just added a little detail in the previous reply. Unfortunately there is no directory |
You can inspect the actual root directories with |
The
And I just searched in Everything using a combination of "mpm log". The attached |
You are running the update wizard as administrator. In order to isolate the problem, we can try the following:
|
Thanks for your patient guidance.
The cause is mpmcli.log:
xelatex.log:
|
Tested on the deskop, same outcome. |
Good, so everything looks okay. Seems that the error does not occur anymore. If it happens again, you should make sure that you give all information I need to reproduce the bug on my machine. At the moment I cannot, i.e., this is no a bug I can fix. Also, I would recommend that you don't run the programs as administrator. I will soon close this ticket. |
Sorry, the problem is still there, please see my previous reply... |
I see. But you should understand that I cannot fix ghost bugs, Show me how to reproduce the bug and I can continue to work on a bug fix. At the moment, I have no clues. |
OK, but that's all I can provide to reproduce it. I'll stick to v2.9.6520 and only update non-MiKTeX packages, before the cause becomes clear and a fix is ready. Thanks for your effort. |
Hello, if this means anything, I reinstalled v2.9.6520 and ran Update Wizard twice, this time avoiding |
Yes, that helps. I will try further to replicate your MiKTeX setup. IMHO running update wizard as administrator is/was the cause of the failure. You have a private MiKTeX setup. Running as administrator absolutely makes no sense in this situation. But of course, MiKTeX should be robust enough to handle this. |
Thanks a lot. Indeed I don't understand MiKTeX's user modes well enough. When switching to MiKTeX from W32TeX, I just checked this post and thought:
Maybe it makes some sense now. I guess more than a few users set up this way, on purpose or by accident. Admittedly, running as a regular user is much saner, but I really hate to see UAC alerts. If only it's as sweet as sudo... |
The problem is not that you are administrator (I am an admin too). The problem is, that you start the update wizard in elevated mode. I often see this in the log files:
This indicates that the programs run elevated (with full administrator privileges). If this was malware, you would be in big trouble now. Running programs unconditionally in elevated mode is not a good practice. If you run update wizard in user mode (non-elevated), the update will succeed (I am sure). As I said in my last comment, I will make the software more robust and a fix will be made available later this week. |
OK, that explains the problem. UAC is turned off on my machine, so the updater always runs elevated. There is a peculiar reason why I choose to take such a risk, but that's off topic. Thanks for your time and all the effort! |
Very good. This explains a lot. |
I think this has been fixed. The updater should now finish without an error if you run it elevated on a private MiKTeX installation. |
Fix confirmed on my laptop and deskop machines. Thank you so much! |
Bug report
Sorry for this alarming title, but let's reproduce:
When this pass is almost finished, an error happens:
update.log:
After this, latex, pdflatex, xelatex etc. fail to work (
xelatex --version
is fine, though):I tried on my laptop (update from a healthy installation) and a desktop (clean installation and update), both running Windows 10. Sometimes the second pass goes as far as extracting zhnumber.tar.lzma:
I guess it's the latest change to mpm that causes such errors. Any suggestion is welcome. Thanks!
My check list
The text was updated successfully, but these errors were encountered: