Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails because fzf zip files are missing #40

Closed
stinos opened this issue Mar 29, 2017 · 5 comments
Closed

Installation fails because fzf zip files are missing #40

stinos opened this issue Mar 29, 2017 · 5 comments
Labels

Comments

@stinos
Copy link

stinos commented Mar 29, 2017

Using Powershell 5.1:

Find-Package fzf | Install-Package -Verbose
VERBOSE: Performing the operation "Install Package" on target "Package 'fzf' version '0.16.6' from 'chocolatey'.".
VERBOSE: NuGet: Installing 'fzf 0.16.6'.
VERBOSE: NuGet: Successfully installed 'fzf 0.16.6'.
VERBOSE:
VERBOSE: CreateFolder -- Already Exists C:\Chocolatey\lib\fzf.0.16.6
VERBOSE: Taking Snapshot «C:\Chocolatey\lib\fzf.0.16.6\tools»
VERBOSE: CreateFolder -- Already Exists C:\Chocolatey\lib\fzf.0.16.6\tools
Install-Package : The archive file type is not supported.
At line:1 char:20
+ Find-Package fzf | Install-Package -Verbose
+                    ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotImplemented: (False C:\Chocol...s_amd64_x64.zip:String) [Install-Package], Exception
    + FullyQualifiedErrorId : UnsupportedArchive,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

and the C:\Chocolatey\lib\fzf.0.16.6\tools directory only contains chocolateyInstall.ps1 but not the zip files (which I assume should be there). The C:\Chocolatey\lib\fzf.0.16.6 does zontain afile named fzf-0.16.6-windows_amd64_x64.zip.txt with this content:

C:\Chocolatey\lib\fzf.0.16.6\tools\chocolateyInstall.ps1
C:\Chocolatey\lib\fzf.0.16.6\tools\fzf-0.16.6-windows_386_x32.zip
C:\Chocolatey\lib\fzf.0.16.6\tools\fzf-0.16.6-windows_amd64_x64.zip
@majkinetor
Copy link
Owner

Existence is totally not the problem because they do exist, you can see that on the gallery
https://chocolatey.org/packages/fzf

You can also download the nuget package from there and see for yourself.

Install-Package : The archive file type is not supported.

Can you try with just cinst fzf?

@majkinetor
Copy link
Owner

This is how it looks like:

PS > cinst fzf --force
Chocolatey v0.10.3
Installing the following packages:
fzf
By installing you accept licenses for the packages.

fzf v0.16.6 (forced) [Approved]
fzf package files install completed. Performing other installation steps.
Installing 64 bit version
Extracting C:\ProgramData\chocolatey\lib\fzf\tools\fzf-0.16.6-windows_amd64_x64.zip to C:\ProgramData\chocolatey\lib\fzf\tools...
C:\ProgramData\chocolatey\lib\fzf\tools
 ShimGen has successfully created a shim for fzf.exe
 The install of fzf was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\fzf\tools'

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

@stinos
Copy link
Author

stinos commented Mar 29, 2017

Using cinst works ok, it's just Install-Package which doesn't. Here's debug output if that helps:

...
DEBUG: 00:00:00.0778368 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1
DEBUG: 00:00:00.0782275 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0815189 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:02.7491830 Calling 'Chocolatey::GetInstalledPackages' 'fzf','0.16.6','',''

Confirm
Are you sure you want to perform this action?
Performing the operation "Install Package" on target "Package 'fzf' version '0.16.6' from 'chocolatey'.".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
DEBUG: 00:00:05.0233652 Calling 'Chocolatey::InstallPackage' '$aHR0cDovL2Nob2NvbGF0ZXkub3JnL2FwaS92Mi8=\Znpm\MC4xNi42\'
VERBOSE: NuGet: Installing 'fzf 0.16.6'.
VERBOSE: NuGet: Successfully installed 'fzf 0.16.6'.
VERBOSE:
DEBUG: 00:00:05.3833097 Calling 'ChocolateyRequest::GetChocolateyUnzip' 'False
C:\Chocolatey\lib\fzf.0.16.6\tools\fzf-0.16.6-windows_amd64_x64.zip','C:\Chocolatey\lib\fzf.0.16.6\tools','','fzf'
DEBUG: 00:00:05.3833524 Calling 'ProviderService::CreateFolder'
VERBOSE: CreateFolder -- Already Exists C:\Chocolatey\lib\fzf.0.16.6
VERBOSE: Taking Snapshot «C:\Chocolatey\lib\fzf.0.16.6\tools»
DEBUG: 00:00:05.3834412 Calling 'ProviderService::CreateFolder'
VERBOSE: CreateFolder -- Already Exists C:\Chocolatey\lib\fzf.0.16.6\tools

Confirm
The archive file type is not supported.
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"):
Install-Package : The archive file type is not supported.
At line:1 char:20
+ find-package fzf | Install-Package -verbose -Force -Debug
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotImplemented: (False C:\Chocol...s_amd64_x64.zip:String) [Install-Package], Exception
    + FullyQualifiedErrorId : UnsupportedArchive,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

@ferventcoder
Copy link

@stinos If you want to use PowerShell PackageManagement (OneGet), please ensure you are using Chocolatey-Get until the official Chocolatey provider is available. For more information, please see chocolatey-community/chocolatey-oneget#5 (comment)

@stinos
Copy link
Author

stinos commented Mar 30, 2017

@ferventcoder thanks! Using ChocolateyGet instead of built-in (I assume?) Chocolatey indeed makes Install-Package fzf work. I'd really wish information around OneGet and companions was less shattered..

@stinos stinos closed this as completed Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants