I am trying to install packages from the MiKTeX console. I keep getting an error that "Couldn't connect to server."
I then went to "Packages" and tried to change the repository from "a random package repository on the Internet," but it does not load and other repositories. It just says, "Couldn't connect to server."
However, my internet is working. Any idea what is going on?
Best Answer
If you want to install packages from a local repository, you can download the packages you're interested in from CTAN, more precisely from this directory:
https://ctan.org/tex-archive/systems/win32/miktex/tm/packages
add the four files:
pr.ini
,miktex-zzdb1-2.9.tar.lzma
,miktex-zzdb2-2.9.tar.lzma
andfiles.csv.lzma
and install them in a directory on your system. Then, choose to install from a local repository, and declare the installation directory as your local repository.