※ 引述《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