OneGet / oneget

PackageManagement (aka OneGet) is a package manager for Windows
MIT License
2.38k stars 189 forks source link

Use Chocolatey not NuGet #504

Open Sifna opened 2 years ago

Sifna commented 2 years ago

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 commented 2 years ago

Hey @Sifna

The actual 'Chocolatey' package provider doesn't actually work (see https://github.com/chocolatey-community/chocolatey-oneget/issues/5#issuecomment-275404099).

You might give the ChocolateyGet provider a try

Disclaimer - I help maintain the ChocolateyGet provider.