aronovgj / choco-auto

auto packages
10 stars 16 forks source link

MiKTeX package broken #41

Open donpatzone opened 4 years ago

donpatzone commented 4 years ago

Hi,

the MiKTeX package is currently broken since the referenced version is not hosted on CTAN anymore.

"GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
Downloading miktex 64 bit
  from 'https://ctan.net/systems/win32/miktex/setup/windows-x64/basic-miktex-2.9.7269-x64.exe'
Using system proxy server 'x.x.x.x'.
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://ctan.net/systems/win32/miktex/setup/windows-x64/basic-miktex-2.9.7269-x64.exe'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
This package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn.
The install of miktex.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\miktex.install\tools\chocolateyInstall.ps1'.
 See log for details.
donpatzone commented 4 years ago

I have tried several mirrors now across the globe. Those that I have tested did not host this specific version.

beniwa commented 4 years ago

I can confirm it, same problem here (Switzerland). I get redirected to http://ftp.snt.utwente.nl/pub/software/tex/systems/win32/miktex/setup/windows-x64/basic-miktex-2.9.7269-x64.exe

but on this mirror are only the following available: https://ftp.snt.utwente.nl/pub/software/tex/systems/win32/miktex/setup/windows-x64/basic-miktex-2.9.7351-x64.exe https://ftp.snt.utwente.nl/pub/software/tex/systems/win32/miktex/setup/windows-x64/basic-miktex-2.9.7386-x64.exe

Braintelligence commented 4 years ago

2.9.7417 is the current version, I don't get how it's so hard to update the PackageVersion in the script.

I would like to contribute but all I see is a placeholder in the code and I can't find the place where the placeholder is defined.

EDIT: Actually it looks like KetarinPackage is fetching the current version in a scripted way. Does it mean the maintainer just failed to run the script for 3 months now?

FrancescElies commented 4 years ago

When I do choco install --force miktex following link is not found basic-miktex-2.9.7269-x64.exe, the follwing exists though basic-miktex-2.9.7442-x64.exe

The mirror looks as follows image

I also run into trouble when running choco install --force miktex --version=2.9.7442, see logs below.

I tried to find where could I replace the right version, but (like @Braintelligence) I also found it difficult to make a tiny patch for that version number. Could someone help here?

logs

choco install --force miktex

CLICK ME

``` PS C:\Windows\System32> choco install --force miktex -y Chocolatey v0.10.15 Installing the following packages: miktex By installing you accept licenses for the packages. miktex v2.9.7219 (forced) [Approved] miktex package files install completed. Performing other installation steps. The install of miktex was successful. Software install location not explicitly set, could be in package or default install location if installer. Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). PS C:\Windows\System32> choco install --force miktex Chocolatey v0.10.15 [Pending] Removing incomplete install for 'miktex.install' Installing the following packages: miktex By installing you accept licenses for the packages. miktex v2.9.7219 already installed. Forcing reinstall of version '2.9.7219'. Please use upgrade if you meant to upgrade to a new version. Progress: Downloading miktex 2.9.7219... 100% miktex.install v2.9.7269 (forced) [Approved] miktex.install package files install completed. Performing other installation steps. The package miktex.install wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): A Attempt to get headers for http://packages.oth-regensburg.de/ctan/systems/win32/miktex/setup/windows-x64/basic-miktex-2.9.7269-x64.exe failed. The remote file either doesn't exist, is unauthorized, or is forbidden for url 'http://packages.oth-regensburg.de/ctan/systems/win32/miktex/setup/windows-x64/basic-miktex-2.9.7269-x64.exe'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found." Downloading miktex 64 bit from 'http://packages.oth-regensburg.de/ctan/systems/win32/miktex/setup/windows-x64/basic-miktex-2.9.7269-x64.exe' ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'http://packages.oth-regensburg.de/ctan/systems/win32/miktex/setup/windows-x64/basic-miktex-2.9.7269-x64.exe'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found." This package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn. The install of miktex.install was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\miktex.install\tools\chocolateyInstall.ps1'. See log for details. miktex v2.9.7219 (forced) [Approved] miktex package files install completed. Performing other installation steps. The install of miktex was successful. Software install location not explicitly set, could be in package or default install location if installer. Chocolatey installed 1/2 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). Failures - miktex.install (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\miktex.install\tools\chocolateyInstall.ps1'. See log for details. ```

choco install --force miktex --version=2.9.7442

CLICK ME

``` Chocolatey v0.10.15 Installing the following packages: miktex By installing you accept licenses for the packages. miktex not installed. The package was not found with the source(s) listed. Source(s): 'https://chocolatey.org/api/v2/' NOTE: When you specify explicit sources, it overrides default sources. If the package version is a prerelease and you didn't specify `--pre`, the package may not be found. Version was specified as '2.9.7442'. It is possible that version does not exist for 'miktex' at the source specified. Please see https://chocolatey.org/docs/troubleshooting for more assistance. Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). Failures - miktex - miktex not installed. The package was not found with the source(s) listed. Source(s): 'https://chocolatey.org/api/v2/' NOTE: When you specify explicit sources, it overrides default sources. If the package version is a prerelease and you didn't specify `--pre`, the package may not be found. Version was specified as '2.9.7442'. It is possible that version does not exist for 'miktex' at the source specified. Please see https://chocolatey.org/docs/troubleshooting for more assistance. ```