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

Use Chocolatey not NuGet #504

Open
Sifna opened this issue Jul 17, 2021 · 1 comment
Open

Use Chocolatey not NuGet #504

Sifna opened this issue Jul 17, 2021 · 1 comment

Comments

@Sifna
Copy link

Sifna commented Jul 17, 2021

OneGet doesn't seem to be working for me at all, and when I try to use Chocolatey, it defaults to using NuGet instead and then fails. Further, when I repeat the process it tells me the package is already installed, but the program itself is not available.

install-package angryip -source chocolatey -verbose
VERBOSE: Using the provider 'Chocolatey' for searching packages.
VERBOSE: Performing the operation "Install Package" on target "Package 'angryip' version '3.7.6' from 'chocolatey'.".

The package(s) come(s) from a package source that is not marked as trusted.
Are you sure you want to install software from 'chocolatey'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y
VERBOSE: NuGet: WARNING: The request was aborted: Could not create SSL/TLS secure channel.
WARNING: NuGet: System.InvalidOperationException: Unable to find version '8.0.291' of package 'jre8'.
WARNING: NuGet: at NuGet.PackageRepositoryHelper.ResolvePackage(IPackageRepository sourceRepository,
IPackageRepository localRepository, IPackageConstraintProvider constraintProvider, String packageId, SemanticVersion
version, Boolean allowPrereleaseVersions)
WARNING: NuGet: at NuGet.PackageManager.InstallPackage(String packageId, SemanticVersion version, Boolean
ignoreDependencies, Boolean allowPrereleaseVersions)
WARNING: NuGet: at NuGet.Commands.InstallCommand.InstallPackage(IFileSystem fileSystem, String packageId,
SemanticVersion version)
WARNING: NuGet: at NuGet.Program.Main(String[] args)
VERBOSE: Skipped Package 'jre8 v8.0.291' already installed
VERBOSE: NuGet: WARNING: The request was aborted: Could not create SSL/TLS secure channel.
WARNING: NuGet: System.InvalidOperationException: Unable to find version '8.0.231' of package 'javaruntime'.
VERBOSE: Skipped Package 'javaruntime v8.0.231' already installed
VERBOSE: NuGet: WARNING: The request was aborted: Could not create SSL/TLS secure channel.
WARNING: NuGet: System.InvalidOperationException: Unable to find version '3.7.6' of package 'angryip'.
VERBOSE: Skipped Package 'angryip v3.7.6' already installed
PS C:\WINDOWS\system32> get-packagesource

Name ProviderName IsTrusted Location


nuget.org NuGet False https://api.nuget.org/v3/index.json
PSGallery PowerShellGet False https://www.powershellgallery.com/api/v2
chocolatey Chocolatey False http://chocolatey.org/api/v2/

@ethanbergstrom
Copy link

Hey @Sifna

The actual 'Chocolatey' package provider doesn't actually work (see chocolatey-community/chocolatey-oneget#5 (comment)).

You might give the ChocolateyGet provider a try

Disclaimer - I help maintain the ChocolateyGet provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants