Blog 1

Random Talk on Random Thoughts

Mik$\rm \TeX$ Update (2)

| Comments |

Background

I need to write something in $\rm \LaTeX$.

Problem

I can’t get any update by clicking “Update Mik$\rm \TeX$” in the icon triggered by miktex-portable.cmd. I faced the same problem as rantrave’s.

Discussion

If one urgently needs to get the updated version of a particular package, one may directly download the LZMA file.1 Actually, the remote package repositories are still online. I guess the problem is in Mik$\rm \TeX$ update tool. Anyways, I am still grateful for the effort of its developers.

Resolution

The easiest way is to sit there and wait for a day. Then the problem will be gone. It is possible that some difficulties occur, but they can be overcome.

</source> Windows API error 145
I clicked "Copy Info" and got this. (err-2016-02-22-22-00.txt) download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
MiKTeX Problem Report
Message: Windows API error 145: The directory is not empty.

Data: C:\Temp\MikTeXPortable\miktex\temp\mik8012
Source: Libraries\MiKTeX\Core\win\winFile.cpp
Line: 115
MiKTeX: 2.9
OS: Microsoft Windows 7 Home Premium Edition, 64-bit Service Pack 1 (build 7601)
Invokers: non-existing/miktex-taskbar-icon
SystemAdmin: no
PowerUser: no
Root0: C:\Temp\MikTeXPortable
Root1: C:\localtexmf
UserInstall: C:\Temp\MikTeXPortable
UserConfig: C:\Temp\MikTeXPortable
UserData: C:\Temp\MikTeXPortable
CommonInstall: C:\Temp\MikTeXPortable
CommonConfig: C:\Temp\MikTeXPortable
CommonData: C:\Temp\MikTeXPortable

From Mik$\rm \LaTeX$ Update, I know that only the “Update Mik$\rm \TeX$” in the menu triggered by clicking the small icon will work. The update wizard inside the big window for the package manager won’t.

Sometimes, the chosen remote package repository can fail. In this case, just click the button and search for another one.

An example of failed update. (update-2016-02-21-20-19.txt) download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
MiKTeX Update Wizard Report

Version: 2.9.4913
Date: Sunday, February 21, 2016
Time: 20:19:02
starting package maintenance...
installation directory: C:\Temp\MikTeXPortable
package repository: http://ftp.yzu.edu.tw/CTAN/systems/win32/miktex/tm/packages/
lightweight database digest: d913ba0ad3c9c47c3e7a3e6e11863874
going to download 6130048 bytes
going to install 10 file(s) (1 package(s))
going to remove 35 file(s) (4 package(s))
downloading http://ftp.yzu.edu.tw/CTAN/systems/win32/miktex/tm/packages/miktex-bin-2.9.tar.lzma...
6130048 bytes, 1452.65 KB/Sec
extracting files from miktex-bin-2.9.tar.lzma...
removing package miktex-freetype-bin-2.9...
removing package miktex-qt4-bin-2.9...
removing package miktex-texinfo-bin-2.9...
removing package miktex-vc100-bin...

Error: The MiKTeX package management utility could not be found.

Lessons learnt

When there’s nothing can be done, then one needs the mind of non-action or non-being.


  1. For example, the situation described in Mik$\rm \LaTeX$ Update

Comments