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

dotnet4.5.2 was not found with the source(s) listed #3443

Closed
6 tasks done
1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP opened this issue May 16, 2024 · 5 comments
Closed
6 tasks done

Comments

@1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

dotnet4.5.2 was not found with the source(s) listed.
If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
Version: ""; Source(s): "https://community.chocolatey.org/api/v2/"

What is Expected?

when it detects a newer version it should install it.

How Did You Get This To Happen?

  1. sudo choco upgrade dotnet4.5.2 -dv

System Details

  • Operating System: 10.0.22631.0
  • Windows PowerShell version:
Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
  • Chocolatey CLI Version: 2.2.2
  • Chocolatey Licensed Extension version: N/A
  • Chocolatey License type: None
  • Terminal/Emulator: Windows Terminal

Installed Packages

Chocolatey v2.2.2
3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).

Validation Warnings:
 - A pending system reboot request has been detected, however, this is
   being ignored due to the current command being used 'list'.
   It is recommended that you reboot at your earliest convenience.

7zip 23.1.0
7zip.install 23.1.0
adb 34.0.5
advancedrun 1.51.0
autohotkey 1.1.37.1
autohotkey.install 1.1.37.1
autohotkey.portable 2.0.14
blender 4.1.1
chocolatey 2.2.2
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolatey-fastanswers.extension 0.0.2.2
chocolatey-font-helpers.extension 0.0.4
chocolatey-os-dependency.extension 0.0.1
chocolatey-visualstudio.extension 1.11.1
chocolatey-windowsupdate.extension 1.0.5
chromium 124.0.6367.202
dbeaver 24.0.4
dependency-scanner 0.2.0.1
diff-pdf 0.5.1
dnspyex 6.4.1
DotNet4.5 4.5.20120822
DotNet4.5.2 4.5.2.20140902
DotNet4.6.1 4.6.1055.20170308
dotnet-7.0-desktopruntime 7.0.19
dotnet-8.0-desktopruntime 8.0.5
dotnet-desktopruntime 8.0.5
dotnetfx 4.8.0.20220524
Everything 1.4.11024
ghidra 11.0.3
gimp 2.10.38
gsudo 2.4.4
gtypist 2.9.5
h2testw 1.4.20180717
helix 23.10.0
insomnia-designer 2020.5.2
insomnia-rest-api-client 2023.9.1.1
intel-graphics-driver 31.0.101.3790
intunewinapputil 1.8.6
iperf3 3.16.0
jadx 1.5.0
javaruntime 8.0.411
jetbrainsmono 2.304.0
jetbrainstoolbox 2.3.1.31116
jre8 8.0.411
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
KB3063858 1.0.0
KB3118401 1.0.5
keepassxc 2.7.8
languagetool 6.2.0
lanmonitor 10.80.18
Lazydocker 0.23.1
libreoffice-fresh 7.6.5
mailslurper 1.14.1
master-pdf-editor 5.9.40
microsoft-teams 1.7.0.10152
miktex.install 24.4.0
netfx-4.7.2 4.7.2
nmap 7.93.0
NSwagStudio 14.0.7
nuget.commandline 6.9.1
okular 23.8.4
onenote 16.0.15330.20246
openjdk 21.0.2
openjdk11 11.0.16.20220913
opensans 3.3.0
pdf24 11.17.0
pdftk 2.2.0
PowerShell 5.1.14409.20180811
powershell-core 7.4.2
programmer-dvorak 1.2.8
putty.install 0.81.0
RobotoFonts 4.0.0.1
rufus 4.4.0
runassystem 1.1.0
shutup10 1.9.1436
spicetify-cli 2.36.11
sublimemerge 0.0.2083
sysinternals 2024.2.13
Temurin11 11.0.22
texstudio.install 4.8.0
thunderbird 115.10.2
tipp10 2.1.0.20170126
tomighty 0.7.1.300
uefitool 0.28.0
vagrant 2.4.1
Vale 3.4.2
vcredist140 14.38.33135
vcredist2008 9.0.30729.616104
vcredist2010 10.0.40219.32503
vcredist2017 14.16.27033
vcxsrv 21.1.10
ventoy 1.0.97.20240415
virtualbox 7.0.18
visualstudio-installer 2.0.3
vlc 3.0.20
vlc.install 3.0.20
vscode.install 1.89.1
wincompose.install 0.9.11
windows-performance-toolkit 8.1.0
winfile 10.3.0
WinPcap 4.1.3.20161116
WSLGit 1.0.1
xournal 0.4.8
xournalplusplus 1.2.2
yed 3.23.2
yq 4.40.2
yt-dlp 2024.4.9
zebradesigner 3.322649.0
zint 2.13.0
zotero 6.0.36
116 packages installed.

Output Log

Chocolatey v2.2.2
Chocolatey is running on Windows v 10.0.22631.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade dotnet4.5.2 -dv
Received arguments: upgrade dotnet4.5.2 -dv
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
Performing validation checks.
Global Configuration Validation Checks:
 - Package Exit Code / Exit On Reboot = Checked
System State Validation Checks:
 Reboot Requirement Checks:
 - Pending Computer Rename = Checked
 - Pending Component Based Servicing = Checked
 - Pending Windows Auto Update = Flagged
Cache Folder Lockdown Checks:
 - Elevated State = Checked
 - Folder Exists = Checked
 - Folder lockdown = Checked
3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).

Validation Warnings:
 - A pending system reboot request has been detected, however, this is
   being ignored due to the current Chocolatey configuration.  If you
   want to halt when this occurs, then either set the global feature
   using:
     choco feature enable --name="exitOnRebootDetected"
   or pass the option --exit-when-reboot-detected.

The source 'https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type

NOTE: Hiding sensitive configuration data! Please double and triple
 check to be sure no sensitive data is shown, especially if copying
 output to a gist for review.
Configuration: CommandName='upgrade'|
CacheLocation='C:\Users\PC\AppData\Local\Temp\chocolatey'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://community.chocolatey.org/api/v2/'|SourceType='normal'|
ShowOnlineHelp='False'|Debug='True'|Verbose='True'|Trace='False'|
Force='False'|Noop='False'|HelpRequested='False'|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='True'|DisableCompatibilityChecks='False'|
AcceptLicense='False'|AllowUnofficialBuild='False'|Input='dotnet4.5.2'|
AllVersions='False'|SkipPackageInstallProvider='False'|
SkipHookScripts='False'|PackageNames='dotnet4.5.2'|Prerelease='False'|
ForceX86='False'|OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
CacheExpirationInMinutes='30'|AllowDowngrade='False'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.22631.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='2.2.2.0'|
Information.ChocolateyProductVersion='2.2.2'|
Information.FullName='choco, Version=2.2.2.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='PC'|Information.UserDomainName='JENDRIK'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='False'|Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|
Information.IsLicensedAssemblyLoaded='False'|
Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\Users\PC'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='True'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='True'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
ListCommand.LocalOnly='False'|ListCommand.IdOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.ByTagOnly='False'|ListCommand.IdStartsWith='False'|
ListCommand.OrderByPopularity='False'|ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='Unknown'|
ApiKeyCommand.Command='Unknown'|PinCommand.Command='Unknown'|
OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'|
_ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _
Upgrading the following packages:
dotnet4.5.2
By upgrading, you accept licenses for the packages.
Running list with the following filter = ''
--- Start of List ---
Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
7zip 23.1.0
7zip.install 23.1.0
adb 34.0.5
advancedrun 1.51.0
autohotkey 1.1.37.1
autohotkey.install 1.1.37.1
autohotkey.portable 2.0.14
blender 4.1.1
chocolatey 2.2.2
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolatey-fastanswers.extension 0.0.2.2
chocolatey-font-helpers.extension 0.0.4
chocolatey-os-dependency.extension 0.0.1
chocolatey-visualstudio.extension 1.11.1
chocolatey-windowsupdate.extension 1.0.5
chromium 124.0.6367.202
dbeaver 24.0.4
dependency-scanner 0.2.0.1
diff-pdf 0.5.1
dnspyex 6.4.1
DotNet4.5 4.5.20120822
DotNet4.5.2 4.5.2.20140902
DotNet4.6.1 4.6.1055.20170308
dotnet-7.0-desktopruntime 7.0.19
dotnet-8.0-desktopruntime 8.0.5
dotnet-desktopruntime 8.0.5
dotnetfx 4.8.0.20220524
Everything 1.4.11024
ghidra 11.0.3
gimp 2.10.38
gsudo 2.4.4
gtypist 2.9.5
h2testw 1.4.20180717
helix 23.10.0
insomnia-designer 2020.5.2
insomnia-rest-api-client 2023.9.1.1
intel-graphics-driver 31.0.101.3790
intunewinapputil 1.8.6
iperf3 3.16.0
jadx 1.5.0
javaruntime 8.0.411
jetbrainsmono 2.304.0
jetbrainstoolbox 2.3.1.31116
jre8 8.0.411
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
KB3063858 1.0.0
KB3118401 1.0.5
keepassxc 2.7.8
languagetool 6.2.0
lanmonitor 10.80.18
Lazydocker 0.23.1
libreoffice-fresh 7.6.5
mailslurper 1.14.1
master-pdf-editor 5.9.40
microsoft-teams 1.7.0.10152
miktex.install 24.4.0
netfx-4.7.2 4.7.2
nmap 7.93.0
NSwagStudio 14.0.7
nuget.commandline 6.9.1
okular 23.8.4
onenote 16.0.15330.20246
openjdk 21.0.2
openjdk11 11.0.16.20220913
opensans 3.3.0
pdf24 11.17.0
pdftk 2.2.0
PowerShell 5.1.14409.20180811
powershell-core 7.4.2
programmer-dvorak 1.2.8
putty.install 0.81.0
RobotoFonts 4.0.0.1
rufus 4.4.0
runassystem 1.1.0
shutup10 1.9.1436
spicetify-cli 2.36.11
sublimemerge 0.0.2083
sysinternals 2024.2.13
Temurin11 11.0.22
texstudio.install 4.8.0
thunderbird 115.10.2
tipp10 2.1.0.20170126
tomighty 0.7.1.300
uefitool 0.28.0
vagrant 2.4.1
Vale 3.4.2
vcredist140 14.38.33135
vcredist2008 9.0.30729.616104
vcredist2010 10.0.40219.32503
vcredist2017 14.16.27033
vcxsrv 21.1.10
ventoy 1.0.97.20240415
virtualbox 7.0.18
visualstudio-installer 2.0.3
vlc 3.0.20
vlc.install 3.0.20
vscode.install 1.89.1
wincompose.install 0.9.11
windows-performance-toolkit 8.1.0
winfile 10.3.0
WinPcap 4.1.3.20161116
WSLGit 1.0.1
xournal 0.4.8
xournalplusplus 1.2.2
yed 3.23.2
yq 4.40.2
yt-dlp 2024.4.9
zebradesigner 3.322649.0
zint 2.13.0
zotero 6.0.36
--- End of List ---
DotNet4.5.2 - Adding remembered arguments for upgrade:  --cache-location="'C:\Users\PC\AppData\Local\Temp\chocolatey'"
Resolving resource ListResource for source https://community.chocolatey.org/api/v2/
[NuGet]   CACHE https://community.chocolatey.org/api/v2/$metadata
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages()?$filter=(tolower(Id)%20eq%20'dotnet4.5.2')%20and%20IsLatestVersion&semVerLevel=2.0.0

dotnet4.5.2 was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""; Source(s): "https://community.chocolatey.org/api/v2/"

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

Warnings:
 - dotnet4.5.2 - dotnet4.5.2 was not found with the source(s) listed.
Sending message 'PostRunMessage' out if there are subscribers...
Exiting with 0

Additional Context

No response

@pauby
Copy link
Member

pauby commented May 16, 2024

This works fine here. I'm assuming it's related to a caching issue or something local.

image

@1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP
Copy link
Author

How would I debug it? I can rule out wonky internet, because it works fine in browser and powershell.

PS C:\Users\PC> curl https://community.chocolatey.org/api/v2/; choco upgrade dotnet4.5.2
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<service xml:base="http://community.chocolatey.org/api/v2/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app">
  <workspace>
    <atom:title>Default</atom:title>
    <collection href="Packages">
      <atom:title>Packages</atom:title>
    </collection>
  </workspace>
</service>Chocolatey v2.2.2
3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).

Validation Warnings:
 - A pending system reboot request has been detected, however, this is
   being ignored due to the current Chocolatey configuration.  If you
   want to halt when this occurs, then either set the global feature
   using:
     choco feature enable --name="exitOnRebootDetected"
   or pass the option --exit-when-reboot-detected.

Upgrading the following packages:
dotnet4.5.2
By upgrading, you accept licenses for the packages.

dotnet4.5.2 was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""; Source(s): "https://community.chocolatey.org/api/v2/"

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

Warnings:
 - dotnet4.5.2 - dotnet4.5.2 was not found with the source(s) listed.

@pauby
Copy link
Member

pauby commented May 16, 2024

because it works fine in browser and powershell.

Browsing the endpoint is not the same as finding the particular package.

What are the results of:

  1. choco search dotnet4.5.2
  2. choco search dotnet4.5.2 --source https://community.chocolatey.org/api/v2/
  3. choco install dotnet4.5.2
  4. choco install dotnet4.5.2 --source https://community.chocolatey.org/api/v2/

@1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP

The issue seems to have fixed itself.

PS C:\Users\PC> choco upgrade dotnet4.5.2
Chocolatey v2.2.2
Upgrading the following packages:
dotnet4.5.2
By upgrading, you accept licenses for the packages.
DotNet4.5.2 v4.5.2.20140902 is the latest version available based on your source(s).

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

Sorry for bothering.

@pauby pauby closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
@pauby
Copy link
Member

pauby commented May 17, 2024

It was likely due to caching.

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

No branches or pull requests

2 participants