Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.22k stars 968 forks source link

MikTex fail to install geometry #146

Closed helenxu closed 4 years ago

helenxu commented 4 years ago

Hi, I am using Windows 10 and have installed MikTex 2.9. I was trying to run

pandoc basic-example.md -o test.pdf --from markdown --template eisvogel --listings

but it says

Unfortunately, the package geometry-de could not be installed.
Please check the log file

I checked the log file:

2020-01-30 11:30:39,995+0800 INFO  pdflatex - installing package geometry-de triggered by tex/latex/geometry-de\geometry.sty
2020-01-30 11:30:46,709+0800 INFO  pdflatex - mpm: starting package maintenance...
2020-01-30 11:30:46,709+0800 INFO  pdflatex - mpm: installation directory: "C:\Users\Angel\AppData\Local\Programs\MiKTeX 2.9"
2020-01-30 11:30:46,709+0800 INFO  pdflatex - mpm: package repository: https://mirrors.cqu.edu.cn/CTAN/systems/win32/miktex/tm/packages/
2020-01-30 11:30:46,709+0800 INFO  pdflatex - mpm: visiting repository https://mirrors.cqu.edu.cn/CTAN/systems/win32/miktex/tm/packages/...
2020-01-30 11:30:46,709+0800 INFO  pdflatex - mpm: repository type: remote package repository
2020-01-30 11:30:46,709+0800 INFO  pdflatex - mpm: loading package repository manifest...
2020-01-30 11:30:46,709+0800 INFO  pdflatex - mpm: downloading https://mirrors.cqu.edu.cn/CTAN/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma...
2020-01-30 11:30:47,211+0800 INFO  pdflatex - mpm: 0.20 MB, 3.27 Mbit/s
2020-01-30 11:30:47,384+0800 INFO  pdflatex - mpm: package repository digest: 498d1111335cf2fa3fddb12ad2aee195
2020-01-30 11:30:47,384+0800 FATAL pdflatex - Unknown archive file size.
2020-01-30 11:30:47,384+0800 FATAL pdflatex - Info: package="geometry-de"
2020-01-30 11:30:47,384+0800 FATAL pdflatex - Source: Libraries\MiKTeX\PackageManager\RepositoryManifest.h
2020-01-30 11:30:47,384+0800 FATAL pdflatex - Line: 95
2020-01-30 11:30:47,394+0800 INFO  pdflatex - finishing with exit code 1

Does anyone have the same problem or detailed solution to solve the problem? Thank you very much.

MaxFabris commented 4 years ago

Run the MikTek console, select Task and then Refresh file name database. This should solve the issue.

helenxu commented 4 years ago

Run the MikTek console, select Task and then Refresh file name database. This should solve the issue.

Thank you!

Wandmalfarbe commented 4 years ago

@MaxFabris thank you for the help!