Skip to content
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

Miktex Update removes essential packages #376

Closed
bilal-saleem opened this issue Sep 26, 2019 · 13 comments
Closed

Miktex Update removes essential packages #376

bilal-saleem opened this issue Sep 26, 2019 · 13 comments

Comments

@bilal-saleem
Copy link

I have a fairly fresh install of Miktex (last two weeks or so). I tried to update Miktex today, and it failed with error:

2019-09-26 10:51:02,624-0400 ERROR mainwindow - Libraries\MiKTeX\Core\Process\win\winProcess.cpp:292: Windows API error 2: The system cannot find the file specified.
(commandLine="mpm --register-components --verbose", fileName="C:\Users\my_username\AppData\Local\Programs\MiKTeX 2.9\miktex/bin/x64\mpm.exe")

After the failed update, xelatex no longer works. If i run "xelatex somedoc.tex", there will be no output, it will do nothing and no error message. I have attached some of the logs.
miktex-report.log
miktex-console.log

@bilal-saleem bilal-saleem changed the title Miktex Update Break XeLaTeX Miktex Update Breaks XeLaTeX Sep 26, 2019
@edocevoli
Copy link
Member

The update wizard has removed 9852 files in 202 packages. That's a disaster. Can you explain what you did? To investigate this issue, I need all/complete log files.

@bilal-saleem
Copy link
Author

All I did was "Check for Updates" and then "Update Now" in the Miktex console. Here are the rest of the logs.

miktex_logs.zip

@edocevoli
Copy link
Member

Thank you. When you "Check for Updates", you will be presented with a list of update-able packages. Do you remember whether this list was short/long?

@bilal-saleem
Copy link
Author

bilal-saleem commented Sep 26, 2019

It was long, it was a couple of scrolls worth of updates. When I do "Check for Updates" at this time, no updates are found. Actually, I just closed the console, and tried to open it again - Windows says that it cannot be found.

@edocevoli
Copy link
Member

Thank you. This long list was actually a list removals. Only one package (namely l3build) was updated.

@edocevoli edocevoli changed the title Miktex Update Breaks XeLaTeX Miktex Update removes essential packages Sep 27, 2019
@edocevoli edocevoli added the high label Sep 27, 2019
@edocevoli edocevoli pinned this issue Sep 27, 2019
@edocevoli edocevoli self-assigned this Sep 27, 2019
@edocevoli
Copy link
Member

Please check if these files exist and attach them (if they exist):

  • C:\Program Files\MiKTeX 2.9\miktex\config\packages.ini
  • %LOCALAPPDATA%\Programs\MiKTeX 2.9\miktex\packages.ini

@bilal-saleem
Copy link
Author

C:\Program Files\MiKTeX 2.9\miktex\config\packages.ini exists, the other one does not.

I put it in a zip, as github doesn't like the .ini extension.

packages.zip

@edocevoli
Copy link
Member

C:\Program Files\MiKTeX 2.9\miktex\config\packages.ini should not exist because you have installed MiKTeX for your private use. Is this an leftover from an old MiKTeX installation?

@bilal-saleem
Copy link
Author

I uninstalled Miktex prior to my fresh install a couple of weeks ago, although it is possible that the uninstaller did not delete everything.

@edocevoli
Copy link
Member

Thank you. This has been fixed with the latest update: MiKTeX now ignores C:\Program Files\MiKTeX 2.9\miktex\config\packages.ini if this is a single-user installation.

@bilal-saleem
Copy link
Author

Thanks, Christian! When should we expect to see the changes reflected in the windows installer on miktex.org? (I can't build it on my system unfortunately).

@edocevoli
Copy link
Member

Thanks, the installer will be available soon.

@edocevoli edocevoli reopened this Oct 4, 2019
@edocevoli
Copy link
Member

The installer is now available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants