Elektroda.pl
Elektroda.pl
X
Elektroda.pl
PCBway
Proszę, dodaj wyjątek dla www.elektroda.pl do Adblock.
Dzięki temu, że oglądasz reklamy, wspierasz portal i użytkowników.

chocolatey - pierwsze doświadczenia i kłopotliwe paczki

MES Mariusz 02 Lut 2018 22:18 813 0
  • #1
    MES Mariusz
    Poziom 36  
    Witam.

    Od niedawna bawię się menadżerem pakietów dla Windows Chocolately (funkcjonalny odpowiednik linuksowego apt-get-a), a przy okazji coś o dużo większych możliwościach niż ograniczone do kilkunastu aplikacji Ninite.

    Napisałem sobie kilka skryptów, których uruchomienie (jako administrator) na świeżo postawionym systemie spowoduje zainstalowanie wybranych pakietów oprogramowania:

    instalacja_oprogramowania_biuro.bat
    Kod: dos
    Zaloguj się, aby zobaczyć kod



    instalacja_oprogramowania_elektronika.bat
    Kod: dos
    Zaloguj się, aby zobaczyć kod



    instalacja_oprogramowania_internet.bat
    Kod: dos
    Zaloguj się, aby zobaczyć kod


    instalacja_oprogramowania_multimedia.bat
    Kod: dos
    Zaloguj się, aby zobaczyć kod


    instalacja_oprogramowania_system.bat
    Kod: dos
    Zaloguj się, aby zobaczyć kod



    Odnotowałem, że niektóre paczki nie chcą się zainstalować, i zwracane są błędy, podczas, gdy niektóre instalują się, mimo zgłoszonych błędów.
    Dodatkowo obsługa instalatorów nie zawsze dopracowana jest na tip-top. W przypadku niektórych paczek pojawia się okno instalatora, które (niedociągnięcia w shellowych skryptach?) nie zostają obsłużone przez chockolatey i czekają na kliknięcie "ok" przez użytkownika.

    Przykładowe problemowe paczki (spośród wielu powyższych) to:

    adobereader - instaluje się wersja 2015.007.20033.02, podczas gdy dostępna wersja na stronie producenta to: 2018.009.20044.
    foxitreader
    kicad
    arduino
    arduinoidegalileo
    freecad
    directx
    adobeshockvaweplayer
    teamviewer
    bitnami-xampp
    vlc
    lame
    paint.net
    inkscape

    W pierwszej wolnej chwili będę edytował temat i opiszę błędy powyższych paczek.


    Edit:

    Log z instalacji problemowych paczek:

    adobereader

    Code:
    C:\WINDOWS\system32>choco install adobereader -y
    
    Chocolatey v0.10.8
    Installing the following packages:
    adobereader
    By installing you accept licenses for the packages.
    Progress: Downloading adobereader 2015.007.20033.02... 100%

    adobereader v2015.007.20033.02 [Approved]
    adobereader package files install completed. Performing other installation steps.
    File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
    Hashes match.
    Hashes match.
    Installing adobereader...
    ERROR: Running ["x:\Pobrane\Programy\Chocolatey\adobereader\2015.007.20033.02\AcroRdrDC1500720033_MUI.exe" /sAll /rs /rps /msi /norestart /quiet ALLUSERS=1 EULA_ACCEPT=YES ] was not successful. Exit code was '1603'. See log for possible error messages.
    The install of adobereader was NOT successful.
    Error while running 'C:\ProgramData\chocolatey\lib\adobereader\tools\chocolateyInstall.ps1'.
    See log for details.

    Chocolatey installed 0/1 packages. 1 packages failed.
    See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

    Failures
    - adobereader (exited 1603) - Error while running 'C:\ProgramData\chocolatey\lib\adobereader\tools\chocolateyInstall.ps1'.
    See log for details.

    C:\WINDOWS\system32>


    adobereader-update

    Code:
    C:\WINDOWS\system32>choco install adobereader-update -y
    
    Chocolatey v0.10.8
    Installing the following packages:
    adobereader-update
    By installing you accept licenses for the packages.
    Progress: Downloading adobereader 2015.007.20033.02... 100%
    Progress: Downloading adobereader-update 18.009.20050... 100%

    adobereader v2015.007.20033.02 [Approved]
    adobereader package files install completed. Performing other installation steps.
    File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
    Hashes match.
    Hashes match.
    Installing adobereader...
    ERROR: Running ["x:\Pobrane\Programy\Chocolatey\adobereader\2015.007.20033.02\AcroRdrDC1500720033_MUI.exe" /sAll /rs /rps /msi /norestart /quiet ALLUSERS=1 EULA_ACCEPT=YES ] was not successful. Exit code was '1603'. See log for possible error messages.
    The install of adobereader was NOT successful.
    Error while running 'C:\ProgramData\chocolatey\lib\adobereader\tools\chocolateyInstall.ps1'.
    See log for details.

    adobereader-update v18.009.20050 [Approved]
    adobereader-update package files install completed. Performing other installation steps.
    File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
    Hashes match.
    Hashes match.
    x:\Pobrane\Programy\Chocolatey\acroreadupdater.msp
    ERROR: Running ["C:\WINDOWS\System32\msiexec.exe" /p x:\Pobrane\Programy\Chocolatey\acroreadupdater.msp /quiet] was not successful. Exit code was '1642'. See log for possible error messages.
    The install of adobereader-update was NOT successful.
    Error while running 'C:\ProgramData\chocolatey\lib\adobereader-update\tools\chocolateyInstall.ps1'.
    See log for details.

    Chocolatey installed 0/2 packages. 2 packages failed.
    See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

    Failures
    - adobereader (exited 1603) - Error while running 'C:\ProgramData\chocolatey\lib\adobereader\tools\chocolateyInstall.ps1'.
    See log for details.
    - adobereader-update (exited 1642) - Error while running 'C:\ProgramData\chocolatey\lib\adobereader-update\tools\chocolateyInstall.ps1'.
    See log for details.

    C:\WINDOWS\system32>



    foxitreader

    Code:
    C:\WINDOWS\system32>choco install foxitreader -y
    
    Chocolatey v0.10.8
    Installing the following packages:
    foxitreader
    By installing you accept licenses for the packages.
    Progress: Downloading FoxitReader 9.0.1.1050... 100%

    FoxitReader v9.0.1.1050 [Approved]
    foxitreader package files install completed. Performing other installation steps.
    File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
    Hashes match.
    Hashes match.
    Installing foxitreader...
    ERROR: Running ["x:\Pobrane\Programy\Chocolatey\FoxitReader\9.0.1.1050\FoxitReader901_enu_Setup_Prom.exe" /verysilent ] was not successful. Exit code was '1'. See log for possible error messages.
    The install of foxitreader was NOT successful.
    Error while running 'C:\ProgramData\chocolatey\lib\FoxitReader\tools\chocolateyInstall.ps1'.
    See log for details.

    Chocolatey installed 0/1 packages. 1 packages failed.
    See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

    Failures
    - foxitreader (exited 1) - Error while running 'C:\ProgramData\chocolatey\lib\FoxitReader\tools\chocolateyInstall.ps1'.
    See log for details.

    C:\WINDOWS\system32>



    kicad

    Code:
    C:\WINDOWS\system32>choco install kicad -y
    
    Chocolatey v0.10.8
    Installing the following packages:
    kicad
    By installing you accept licenses for the packages.
    Progress: Downloading kicad 4.0.2... 100%

    kicad v4.0.2 [Approved] - Likely broken for FOSS users (due to download location changes)
    kicad package files install completed. Performing other installation steps.
    File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
    Error - hashes do not match. Actual value was '00C101264DE0657139F41FC88AB1A0CB51C8DF14'.
    Downloading kicad 64 bit
      from 'http://downloads.kicad-pcb.org/windows/stable/kicad-product-4.0.2-x86_64.exe'
    Progress: 100% - Completed download of x:\Pobrane\Programy\Chocolatey\kicad\4.0.2\kicad-product-4.0.2-x86_64.exe (232.62 MB).
    Download of kicad-product-4.0.2-x86_64.exe (232.62 MB) completed.
    Error - hashes do not match. Actual value was '00C101264DE0657139F41FC88AB1A0CB51C8DF14'.
    ERROR: Checksum for 'x:\Pobrane\Programy\Chocolatey\kicad\4.0.2\kicad-product-4.0.2-x86_64.exe' did not meet 'd250e5806f46c86b87ac697ebdc1713ecce278b2' for checksum type 'sha1'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary.
    The install of kicad was NOT successful.
    Error while running 'C:\ProgramData\chocolatey\lib\kicad\tools\chocolateyInstall.ps1'.
     See log for details.

    Chocolatey installed 0/1 packages. 1 packages failed.
     See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

    Failures
     - kicad (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\kicad\tools\chocolateyInstall.ps1'.
     See log for details.

    C:\WINDOWS\system32>
  • PCBway