※ 引述《hau (小豪)》之銘言:
: 我用
: \usepackage{fancyhdr}
: \pagestyle{fancy}
: 它會出現沒發現 fancyhdr.sty ,然後要我安裝。
: 我就點安裝。
: 最後還是出現下面的錯誤訊息
: ! LaTeX Error: File `fancyhdr.sty' not found.
: Type X to quit or <RETURN> to proceed,
: or enter new name. (Default extension: sty)
: 我重編譯,還是一樣要我安裝 fancyhdr.sty。看起來像是安裝失敗。
: 可是我不會手動安裝,不知是哪出了問題??
我到 MiKTex Console 去看發現更新的地方有錯誤。
後來我直接移除 MiKTex,並重新安裝basic-miktex-22.10-x64.exe
安裝完後,自動更新還是有問題,我到 MiKTex Console 去看。
更新錯誤的詳細說明是:
SetupVersion: 22.10
Configuration: Regular
GitInfo: f9aad01 / 2022-10-15 09:37:00
OS: Windows 10.0.19045
SharedSetup: no
LinkTargetDirectory:
C:\Users\admin\AppData\Local\Programs\MiKTeX\miktex\bin\x64
PathOkay: yes
LastUpdateCheck: not yet
LastUpdate: not yet
LastUpdateDb: not yet
SystemAdmin: yes
RootPrivileges: no
AdminMode: no
Root0: C:\Users\admin\AppData\Roaming\MiKTeX
Root1: C:\Users\admin\AppData\Local\MiKTeX
Root2: C:\Users\admin\AppData\Local\Programs\MiKTeX
UserInstall: C:\Users\admin\AppData\Local\Programs\MiKTeX
UserConfig: C:\Users\admin\AppData\Roaming\MiKTeX
UserData: C:\Users\admin\AppData\Local\MiKTeX
Invokers: non-existing/explorer
The following issues were detected:
1: major issue: So far, you have not checked for MiKTeX updates.
ERROR DETAILS
Program: miktex-console
Source: Libraries\MiKTeX\PackageManager\CurlWebSession.cpp:247
Error: Failure when receiving data from the peer
Details:
code: 56
url:
https://mirrors.sustech.edu.cn/CTAN/systems/win32/miktex/tm/packages/miktex-zzdb3-2.9.tar.lzma