Trying to upgrade dotnetcore and receiving multiple errors like:
~
The upgrade of dotnetcore was NOT successful.
dotnetcore not upgraded. An error occurred during installation:
Already referencing a newer version of 'chocolatey-core.extension'.
dotnetcore not upgraded. An error occurred during installation:
Already referencing a newer version of 'chocolatey-core.extension'.
~
dotnetcore should upgrade
Machine had dotnetcore v3.0.0 on it (installed a while ago)
Today, I did cinst dotnetcore --version 2.2.8 --sxs as I needed v2.2.8 and wanted the side-by-side install.
Then I did cup all and received these errors as chocolatey attempted to update dotnetcore to the latest version: v3.0.1
Full Log Output
~~~sh 2019-11-20 12:09:15,159 22236 [DEBUG] - XmlConfiguration is now operational 2019-11-20 12:09:15,195 22236 [DEBUG] - Evaluating license file found at 'C:\Users\Brandon\chocolatey.license.xml' 2019-11-20 12:09:15,225 22236 [DEBUG] - [Licensing] License expiration date is 05/22/2020 00:00:00 2019-11-20 12:09:17,822 22236 [DEBUG] - [Licensing] License expiration date is 05/22/2020 00:00:00 2019-11-20 12:09:17,877 22236 [DEBUG] - Loading Licensed Extensions and Commands 2019-11-20 12:09:17,986 22236 [INFO ] - ============================================================ 2019-11-20 12:09:18,118 22236 [DEBUG] - [Licensing] License expiration date is 05/22/2020 00:00:00 2019-11-20 12:09:18,227 22236 [INFO ] - Chocolatey v0.10.15 Professional 2019-11-20 12:09:18,240 22236 [DEBUG] - Chocolatey is running on Windows v 10.0.19018.0 2019-11-20 12:09:18,245 22236 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old". 2019-11-20 12:09:18,247 22236 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old". 2019-11-20 12:09:18,264 22236 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade dotnetcore -y --debug --verbose 2019-11-20 12:09:18,266 22236 [DEBUG] - Received arguments: upgrade dotnetcore -y --debug --verbose 2019-11-20 12:09:18,370 22236 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage. 2019-11-20 12:09:18,374 22236 [DEBUG] - CountdownTask is now ready and waiting for PostRunMessage. 2019-11-20 12:09:18,378 22236 [DEBUG] - Terminal services setup not necessary for this session. 2019-11-20 12:09:18,384 22236 [DEBUG] - SynchronizeTask is now ready and waiting for PreRunMessage. 2019-11-20 12:09:18,393 22236 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers... 2019-11-20 12:09:18,409 22236 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed... 2019-11-20 12:09:18,770 22236 [DEBUG] - [Synchronize] Updating packages with Programs and Features 2019-11-20 12:09:18,772 22236 [DEBUG] - [Synchronize] Currently only supports removals. Soon will handle updates. 2019-11-20 12:09:20,086 22236 [DEBUG] - 7zip 19.0 2019-11-20 12:09:20,148 22236 [DEBUG] - 7zip.install 19.0 2019-11-20 12:09:20,190 22236 [DEBUG] - adobereader 2019.021.20056 2019-11-20 12:09:20,219 22236 [DEBUG] - autohotkey.portable 1.1.31.01 2019-11-20 12:09:20,283 22236 [DEBUG] - azure-functions-core-tools 2.7.1846 2019-11-20 12:09:20,339 22236 [DEBUG] - beyondcompare 4.3.2.24472 2019-11-20 12:09:20,378 22236 [DEBUG] - BingDesktop 1.3.478.0 2019-11-20 12:09:20,405 22236 [DEBUG] - bot-framework-emulator 3.0.0.57-pre0 2019-11-20 12:09:20,432 22236 [DEBUG] - Boxstarter 2.12.0 2019-11-20 12:09:20,459 22236 [DEBUG] - Boxstarter.Bootstrapper 2.12.0 2019-11-20 12:09:20,484 22236 [DEBUG] - Boxstarter.Chocolatey 2.12.0 2019-11-20 12:09:20,518 22236 [DEBUG] - Boxstarter.Common 2.12.0 2019-11-20 12:09:20,542 22236 [DEBUG] - Boxstarter.HyperV 2.12.0 2019-11-20 12:09:20,566 22236 [DEBUG] - Boxstarter.WinConfig 2.12.0 2019-11-20 12:09:20,592 22236 [DEBUG] - BuildReq 2.2.97813 2019-11-20 12:09:20,615 22236 [DEBUG] - checksum 0.2.0 2019-11-20 12:09:20,643 22236 [DEBUG] - chocolatey 0.10.15 2019-11-20 12:09:20,671 22236 [DEBUG] - chocolatey-core.extension 1.3.5 2019-11-20 12:09:20,702 22236 [DEBUG] - chocolatey-dotnetfx.extension 1.0.1 2019-11-20 12:09:20,737 22236 [DEBUG] - chocolatey-windowsupdate.extension 1.0.4 2019-11-20 12:09:20,765 22236 [DEBUG] - chocolatey.extension 2.0.2 2019-11-20 12:09:20,797 22236 [DEBUG] - DotNet4.5.2 4.5.2.20140902 2019-11-20 12:09:20,821 22236 [DEBUG] - DotNet4.6.1 4.6.01055.20170308 2019-11-20 12:09:20,851 22236 [DEBUG] - dotnet4.7.1 4.7.2558.20190226 2019-11-20 12:09:20,885 22236 [DEBUG] - dotnet4.7.2 4.7.2.20180712 2019-11-20 12:09:20,916 22236 [DEBUG] - dotnetcore 3.0.0 2019-11-20 12:09:20,939 22236 [DEBUG] - dotnetcore-runtime 3.0.0 2019-11-20 12:09:20,980 22236 [DEBUG] - dotnetcore-runtime.install 3.0.0 2019-11-20 12:09:21,020 22236 [DEBUG] - dotnetcore-sdk 3.0.100 2019-11-20 12:09:21,045 22236 [DEBUG] - dotnetcore 2.2.8 2019-11-20 12:09:21,070 22236 [DEBUG] - dotnetfx 4.8.0.20190930 2019-11-20 12:09:21,106 22236 [DEBUG] - fiddler 5.0.20194.41348 2019-11-20 12:09:21,129 22236 [DEBUG] - FiraCode 2.0 2019-11-20 12:09:21,169 22236 [DEBUG] - franz 5.0.1 2019-11-20 12:09:21,171 22236 [DEBUG] - git 2.24.0.2 2019-11-20 12:09:21,213 22236 [DEBUG] - git-credential-manager-for-windows 1.20.0 2019-11-20 12:09:21,246 22236 [DEBUG] - git-fork 1.41.1 2019-11-20 12:09:21,280 22236 [DEBUG] - git.install 2.24.0.2 2019-11-20 12:09:21,342 22236 [DEBUG] - gitextensions 3.2.1 2019-11-20 12:09:21,391 22236 [DEBUG] - KB2533623 1.0.4 2019-11-20 12:09:21,453 22236 [DEBUG] - KB2670838 1.0.20181019 2019-11-20 12:09:21,609 22236 [DEBUG] - KB2919355 1.0.20160915 2019-11-20 12:09:21,712 22236 [DEBUG] - KB2919442 1.0.20160915 2019-11-20 12:09:21,780 22236 [DEBUG] - KB2999226 1.0.20181019 2019-11-20 12:09:21,853 22236 [DEBUG] - KB3033929 1.0.5 2019-11-20 12:09:21,887 22236 [DEBUG] - KB3035131 1.0.3 2019-11-20 12:09:21,946 22236 [DEBUG] - MarkdownMonster.Portable 1.20 2019-11-20 12:09:22,007 22236 [DEBUG] - microsoftazurestorageexplorer 1.7.0 2019-11-20 12:09:22,054 22236 [DEBUG] - ngrok 2.0 2019-11-20 12:09:22,097 22236 [DEBUG] - ngrok.portable 2.0.1 2019-11-20 12:09:22,151 22236 [DEBUG] - nodejs-lts 12.13.1 2019-11-20 12:09:22,198 22236 [DEBUG] - notepadplusplus 7.6.4 2019-11-20 12:09:22,266 22236 [DEBUG] - notepadplusplus.install 7.6.4 2019-11-20 12:09:22,316 22236 [DEBUG] - nuget.commandline 5.3.1 2019-11-20 12:09:22,367 22236 [DEBUG] - paint.net 4.2.5 2019-11-20 12:09:22,424 22236 [DEBUG] - phraseexpress.portable 14.0.157 2019-11-20 12:09:22,505 22236 [DEBUG] - poshgit 0.7.3.1 2019-11-20 12:09:22,538 22236 [DEBUG] - postman 7.0.6 2019-11-20 12:09:22,593 22236 [DEBUG] - procmon 3.52.0.20190928 2019-11-20 12:09:22,641 22236 [DEBUG] - putty.portable 0.73 2019-11-20 12:09:22,688 22236 [DEBUG] - renamer 7.1 2019-11-20 12:09:22,753 22236 [DEBUG] - renamer.install 7.1 2019-11-20 12:09:22,793 22236 [DEBUG] - Repo 0.8.32 2019-11-20 12:09:22,852 22236 [DEBUG] - servicebusexplorer 4.1.113 2019-11-20 12:09:22,940 22236 [DEBUG] - snagit 2020.0.2 2019-11-20 12:09:23,021 22236 [DEBUG] - SourceTree 3.0.17 2019-11-20 12:09:23,100 22236 [DEBUG] - tmpD859.tmp 1.0.0 2019-11-20 12:09:23,157 22236 [DEBUG] - typescript 3.7.2 2019-11-20 12:09:23,222 22236 [DEBUG] - vcredist140 14.23.27820 2019-11-20 12:09:23,281 22236 [DEBUG] - vcredist2015 14.0.24215.20170201 2019-11-20 12:09:23,352 22236 [DEBUG] - visualstudiocode-insiders 1.9.0-insider 2019-11-20 12:09:23,396 22236 [DEBUG] - vivaldi 2.9.1719.3-snapshot 2019-11-20 12:09:23,468 22236 [DEBUG] - vivaldi.portable 2.9.1719.3-snapshot 2019-11-20 12:09:23,556 22236 [DEBUG] - vlc 3.0.8 2019-11-20 12:09:23,965 22236 [DEBUG] - poshgit has a version out of sync 2019-11-20 12:09:24,019 22236 [DEBUG] - tmpD859.tmp has a version out of sync 2019-11-20 12:09:24,186 22236 [DEBUG] - Performing validation checks. 2019-11-20 12:09:24,195 22236 [DEBUG] - Global Configuration Validation Checks: 2019-11-20 12:09:24,199 22236 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked 2019-11-20 12:09:24,201 22236 [DEBUG] - System State Validation Checks: 2019-11-20 12:09:24,209 22236 [DEBUG] - Reboot Requirement Checks: 2019-11-20 12:09:24,216 22236 [DEBUG] - - Pending Computer Rename = Checked 2019-11-20 12:09:24,221 22236 [DEBUG] - - Pending Component Based Servicing = Checked 2019-11-20 12:09:24,223 22236 [DEBUG] - - Pending Windows Auto Update = Checked 2019-11-20 12:09:24,228 22236 [DEBUG] - - Pending File Rename Operations = Ignored 2019-11-20 12:09:24,231 22236 [DEBUG] - - Pending Windows Package Installer = Checked 2019-11-20 12:09:24,234 22236 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked 2019-11-20 12:09:24,242 22236 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s). 2019-11-20 12:09:24,250 22236 [DEBUG] - The source '[REDACTED]' evaluated to a 'normal' source type 2019-11-20 12:09:24,255 22236 [DEBUG] - [Licensing] License expiration date is 05/22/2020 00:00:00 2019-11-20 12:09:24,386 22236 [DEBUG] - 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. 2019-11-20 12:09:24,424 22236 [DEBUG] - Configuration: MaximumDownloadRateBitsPerSecond='0'| MaximumDownloadRateBitsPerSecondAutoSet='False'| LicensedInformation.LicenseType='Professional'| LicensedInformation.LicenseIsValid='True'| LicensedInformation.LicenseIsTrial='False'| LicensedInformation.PauseInTrial='False'| LicensedInformation.LicenseUserName='Brandon Hurlburt (a7009d22[at REDACTED])'| LicensedInformation.LicenseExpirationDate='5/22/2020 12:00:00 AM'| ChocolateyVersion.Version='0.10.15.0'| ChocolateyVersion.PackageReleaseVersion='0'| LicensedFeatures.UseDownloadCache='True'| LicensedFeatures.AllowSynchronization='True'| LicensedFeatures.UseBackgroundService='False'| LicensedFeatures.UseBackgroundServiceWithSelfServiceSourcesOnly='False'| LicensedFeatures.UseBackgroundServiceWithNonAdministratorsOnly='False'| LicensedFeatures.UseBackgroundServiceInteractively='False'| LicensedFeatures.UseBackgroundServiceWithEmptySessions='False'| LicensedFeatures.AllowBackgroundServiceUninstallsFromUserInstallsOnly='False'| LicensedFeatures.AllowPreviewFeatures='False'| LicensedFeatures.ShowAllPackagesInProgramsAndFeatures='False'| LicensedFeatures.AdminOnlyExecutionForAllChocolateyCommands='False'| LicensedFeatures.AdminOnlyExecutionForNewCommand='False'| LicensedFeatures.AdminOnlyExecutionForDownloadCommand='False'| LicensedFeatures.ReduceInstalledPackageSize='True'| LicensedFeatures.ReduceOnlyNupkgSize='False'| LicensedFeatures.UseLocalSystemForServiceInstalls='False'| LicensedFeatures.WarnOnUpcomingLicenseExpiration='False'| LicensedFeatures.UseChocolateyCentralManagement='False'| LicensedNewCommand.UseOriginalFilesLocation='False'| LicensedNewCommand.PauseOnError='False'| LicensedNewCommand.BuildPackage='False'| LicensedNewCommand.GeneratePackagesFromSoftwareInstalls='False'| LicensedNewCommand.IncludeArchitectureInPackageId='False'| LicensedNewCommand.GenerateForCommunityUse='False'| LicensedDownloadCommand.Internalize='False'| LicensedDownloadCommand.AppendUseOriginalLocation='False'| LicensedDownloadCommand.InternalizeAnyUrlFound='False'| LicensedDownloadCommand.DownloadInstalledPackages='False'| LicensedDownloadCommand.IgnoreUnfoundPackages='False'| LicensedListCommand.ShowAuditInformation='False'| LicensedListCommand.ShowDisplayVersion='False'| LicensedUninstallCommand.FromProgramsAndFeatures='False'| VirusConfiguration.VirusCheckMinimumPositives='4'| VirusConfiguration.VirusScannerType='VirusTotal'| VirusConfiguration.GenericVirusScannerArgs='[[File]]'| VirusConfiguration.GenericVirusScannerValidExitCodes='0'| CommandName='upgrade'| CacheLocation='C:\Users\Brandon\AppData\Local\Temp\chocolatey'| ContainsLegacyPackageInstalls='True'| CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'| Sources='[REDACTED]'| SourceType='normal'|Debug='True'|Verbose='True'|Trace='False'| Force='False'|Noop='False'|HelpRequested='False'| UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'| PromptForConfirmation='False'|AcceptLicense='True'| AllowUnofficialBuild='False'|Input='dotnetcore'|AllVersions='False'| SkipPackageInstallProvider='False'|PackageNames='dotnetcore'| Prerelease='False'|ForceX86='False'|OverrideArguments='False'| NotSilent='False'|ApplyPackageParametersToDependencies='False'| ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'| AllowMultipleVersions='False'|AllowDowngrade='False'| ForceDependencies='False'|Information.PlatformType='Windows'| Information.PlatformVersion='10.0.19018.0'| Information.PlatformName='Windows 10'| Information.ChocolateyVersion='0.10.15.0'| Information.ChocolateyProductVersion='0.10.15'| Information.FullName='choco, Version=0.10.15.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'| Information.Is64BitOperatingSystem='True'| Information.Is64BitProcess='True'|Information.IsInteractive='True'| Information.UserName='Brandon'| Information.UserDomainName='HURLBURB-BOOK15'| Information.IsUserAdministrator='True'| Information.IsUserSystemAccount='False'| Information.IsUserRemoteDesktop='False'| Information.IsUserRemote='True'| Information.IsProcessElevated='True'| Information.IsLicensedVersion='True'| Information.LicenseType='Professional'| Information.CurrentDirectory='C:\Users\Brandon'| 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='True'| Features.FailOnInvalidOrMissingLicense='False'| Features.IgnoreInvalidOptionsSwitches='True'| Features.UsePackageExitCodes='True'| Features.UseEnhancedExitCodes='False'| Features.UseFipsCompliantChecksums='False'| Features.ShowNonElevatedWarnings='True'| Features.ShowDownloadProgress='True'| Features.StopOnFirstPackageFailure='False'| Features.UseRememberedArgumentsForUpgrades='False'| Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'| Features.SkipPackageUpgradesWhenNotInstalled='False'| Features.RemovePackageInformationOnUninstall='False'| Features.ExitOnRebootDetected='False'| Features.LogValidationResultsOnWarnings='True'| Features.UsePackageRepositoryOptimizations='True'| Features.ScriptsCheckLastExitCode='False'| 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'| 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.Remove='False'|PinCommand.Command='unknown'| OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'| 2019-11-20 12:09:24,445 22236 [DEBUG] - _ Chocolatey:ProChocolateyUpgradeCommand - Normal Run Mode _ 2019-11-20 12:09:24,462 22236 [INFO ] - Upgrading the following packages: 2019-11-20 12:09:24,464 22236 [INFO ] - dotnetcore 2019-11-20 12:09:24,469 22236 [INFO ] - By upgrading you accept licenses for the packages. 2019-11-20 12:09:24,581 22236 [DEBUG] - Resolving reference to chocolatey.licensed... 2019-11-20 12:09:24,758 22236 [DEBUG] - Using '[REDACTED]'. 2019-11-20 12:09:25,271 22236 [DEBUG] - Attempting to gather credentials for '[REDACTED]' 2019-11-20 12:09:25,276 22236 [DEBUG] - Using saved credentials 2019-11-20 12:09:26,038 22236 [DEBUG] - - Supports prereleases? 'True'. 2019-11-20 12:09:26,042 22236 [DEBUG] - - Is ServiceBased? 'True'. 2019-11-20 12:09:26,570 22236 [DEBUG] - Using 'https://licensedpackages.chocolatey.org/api/v2/'. 2019-11-20 12:09:26,955 22236 [DEBUG] - - Supports prereleases? 'False'. 2019-11-20 12:09:26,962 22236 [DEBUG] - - Is ServiceBased? 'True'. 2019-11-20 12:09:27,149 22236 [DEBUG] - Using 'https://chocolatey.org/api/v2/'. 2019-11-20 12:09:27,511 22236 [DEBUG] - - Supports prereleases? 'True'. 2019-11-20 12:09:27,513 22236 [DEBUG] - - Is ServiceBased? 'True'. 2019-11-20 12:09:28,033 22236 [DEBUG] - Package 'dotnetcore' found on source 'https://chocolatey.org/api/v2/' 2019-11-20 12:09:28,038 22236 [WARN ] - You have dotnetcore v3.0.0 installed. Version 3.0.1 is available based on your source(s). 2019-11-20 12:09:28,121 22236 [DEBUG] - Backing up existing dotnetcore prior to operation. 2019-11-20 12:09:28,126 22236 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\dotnetcore' to 'C:\ProgramData\chocolatey\lib-bkp\dotnetcore' 2019-11-20 12:09:30,142 22236 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\dotnetcore". 2019-11-20 12:09:30,147 22236 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\dotnetcore\dotnetcore.nupkg" to "C:\ProgramData\chocolatey\lib\dotnetcore\dotnetcore.nupkg". 2019-11-20 12:09:30,154 22236 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\dotnetcore\dotnetcore.nuspec" to "C:\ProgramData\chocolatey\lib\dotnetcore\dotnetcore.nuspec". 2019-11-20 12:09:31,682 22236 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\dotnetcore' 2019-11-20 12:09:31,689 22236 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\dotnetcore\dotnetcore.nupkg' with checksum '4CCE14424B9D69176950EEEC6D7C2316' 2019-11-20 12:09:31,692 22236 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\dotnetcore\dotnetcore.nuspec' with checksum '6572D964F67C8097D8956F9416B5488D' 2019-11-20 12:09:33,049 22236 [INFO ] - [NuGet] Attempting to resolve dependency 'dotnetcore-runtime (= 3.0.1)'. 2019-11-20 12:09:33,463 22236 [INFO ] - [NuGet] Attempting to resolve dependency 'dotnetcore-runtime.install (= 3.0.1)'. 2019-11-20 12:09:33,824 22236 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey-core.extension (= 1.1.0)'. 2019-11-20 12:09:33,914 22236 [ERROR] - dotnetcore not upgraded. An error occurred during installation: Already referencing a newer version of 'chocolatey-core.extension'. 2019-11-20 12:09:33,942 22236 [INFO ] - dotnetcore package files upgrade completed. Performing other installation steps. 2019-11-20 12:09:33,966 22236 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\dotnetcore.3.0.1\.arguments". 2019-11-20 12:09:33,971 22236 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\dotnetcore.3.0.1\.extra". 2019-11-20 12:09:33,973 22236 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\dotnetcore.3.0.1\.version". 2019-11-20 12:09:33,976 22236 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\dotnetcore.3.0.1\.sxs". 2019-11-20 12:09:33,978 22236 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\dotnetcore.3.0.1\.pin". 2019-11-20 12:09:33,990 22236 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\dotnetcore". 2019-11-20 12:09:33,998 22236 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers... 2019-11-20 12:09:34,006 22236 [ERROR] - The upgrade of dotnetcore was NOT successful. 2019-11-20 12:09:34,010 22236 [ERROR] - dotnetcore not upgraded. An error occurred during installation: Already referencing a newer version of 'chocolatey-core.extension'. 2019-11-20 12:09:34,014 22236 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\dotnetcore' to 'C:\ProgramData\chocolatey\lib-bad\dotnetcore' 2019-11-20 12:09:36,041 22236 [DEBUG] - Attempting rollback 2019-11-20 12:09:36,044 22236 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib-bkp\dotnetcore' to 'C:\ProgramData\chocolatey\lib\dotnetcore' 2019-11-20 12:09:38,091 22236 [WARN ] - Chocolatey upgraded 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 2019-11-20 12:09:38,099 22236 [INFO ] - 2019-11-20 12:09:38,121 22236 [ERROR] - Failures 2019-11-20 12:09:38,145 22236 [ERROR] - - dotnetcore (exited 1) - dotnetcore not upgraded. An error occurred during installation: Already referencing a newer version of 'chocolatey-core.extension'. 2019-11-20 12:09:38,152 22236 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2019-11-20 12:09:38,158 22236 [DEBUG] - [Countdown] Determining how long until license expires 2019-11-20 12:09:38,263 22236 [DEBUG] - Exiting with 1 ~~~
same error occurring with git (git.install) and vcredist140 as well
There was an issue with chocolatey-core.extension. But for you this might be that you have two versions of chocolatey-core.extension installed. We've seen that before, and it causes the issue you have.
But this bothers me a bit - chocolatey-core.extension (= 1.1.0). I flowed all the way down dotnetcore-runtime.install, but never saw it requiring an exact version.
So it appears it might be environmental for your environment that is holding to an exact version.
Can you run the scripts at https://chocolatey.org/docs/troubleshooting#already-referencing-a-newer-version-of-packagename and https://chocolatey.org/docs/troubleshooting#chocolatey-is-attempting-to-downgrade-a-package-that-is-a-dependency-of-another-package-on-upgrade ?
Had the same problem today w/ gitextensions. Here are the outputs
Script 1
C:\Users\Brandon> Get-ChildItem -Path "$env:ChocolateyInstall\lib" -Recurse -Filter "*.nupkg" | Where-Object {
# Filter packages with version number
$_.Name -match "^.*.(\d+|.){2,}.nupkg"
} | Where-Object {
# whose parent directory does not contain the same version number
$_.Directory.BaseName -ne $_.BaseName
} | % {
# Remove -WhatIf after having run this script and having double-checked (!) each file listed in the previous >> # run if it is really supposed to be removed (check the wiki link for information).
Remove-Item $_.FullName -WhatIf
}
What if: Performing the operation "Remove File" on target "C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\templates\itemTemplates.2.0.10344.nupkg".
What if: Performing the operation "Remove File" on target "C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\templates\itemTemplates.2.0.10364.nupkg".
What if: Performing the operation "Remove File" on target "C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\templates\itemTemplates.2.0.10369.nupkg".
What if: Performing the operation "Remove File" on target "C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\templates\projectTemplates.2.0.10344.nupkg".
What if: Performing the operation "Remove File" on target "C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\templates\projectTemplates.2.0.10364.nupkg".
What if: Performing the operation "Remove File" on target "C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\templates\projectTemplates.2.0.10369.nupkg".
Script 2
C:\Users\Brandon> $nuspecs = gci $env:ChocolateyInstall\lib -recurse -filter *.nuspec
C:\Users\Brandon>
C:\Users\Brandon> foreach ($nuspec in $nuspecs) {
[xml]$nuspecContent = Get-Content $nuspec.FullName
$dependencies = $nuspecContent.package.metadata.dependencies.dependency
if ($dependencies -ne $null) {
Write-Host "$($nuspecContent.package.metadata.id) v$($nuspecContent.package.metadata.version) dependencies:" >> foreach ($dependency in $dependencies) {
$dependencyOperator = ">="
if (!$dependency.version) { $dependencyOperator = "" }
elseif ($dependency.version.Contains('[')) { $dependencyOperator = "=" }
$dependencyVersion = $dependency.version
if (!$dependencyVersion) { $dependencyVersion = "{Any Version}"}
Write-Host " - $($dependency.id) $dependencyOperator $($dependencyVersion)"
}
}
}
7zip v19.0 dependencies:
- 7zip.install = [19.0]
7zip.install v19.0 dependencies:- chocolatey-core.extension >= 1.3.3
adobereader v2019.021.20061 dependencies:- kb2919355 {Any Version}
beyondcompare v4.3.3.24545 dependencies:- chocolatey-core.extension >= 1.3.0
BingDesktop v1.3.478.2019 dependencies:- autohotkey.portable {Any Version}
boxstarter v2.12.0 dependencies:- Boxstarter.Common = [2.12.0]
- Boxstarter.WinConfig = [2.12.0]
- Boxstarter.Bootstrapper = [2.12.0]
- Boxstarter.Chocolatey = [2.12.0]
- Boxstarter.HyperV = [2.12.0]
boxstarter.bootstrapper v2.12.0 dependencies:- Boxstarter.Common = [2.12.0]
- Boxstarter.WinConfig = [2.12.0]
boxstarter.chocolatey v2.12.0 dependencies:- Boxstarter.Common = [2.12.0]
- Boxstarter.WinConfig = [2.12.0]
- Boxstarter.Bootstrapper = [2.12.0]
Boxstarter.HyperV v2.12.0 dependencies:- Boxstarter.Common = [2.12.0]
- Boxstarter.Chocolatey = [2.12.0]
BoxStarter.WinConfig v2.12.0 dependencies:- Boxstarter.Common = [2.12.0]
chocolatey.extension v2.0.2 dependencies:- chocolatey >= 0.10.13
DotNet4.6.1 v4.6.01055.20170308 dependencies:- KB2919355 >= 1.0.20160915
dotnet4.7.1 v4.7.2558.20190226 dependencies:- dotnetfx >= 4.7.1.20180317
dotnet4.7.2 v4.7.2.20180712 dependencies:- dotnetfx >= 4.7.2.20180712
dotnetcore v3.1.0 dependencies:- dotnetcore-runtime = [3.1.0]
dotnetcore-runtime v3.1.0 dependencies:- dotnetcore-runtime.install = [3.1.0]
dotnetcore-runtime v2.1.14 dependencies:- dotnetcore-runtime.install = [2.1.14]
dotnetcore-runtime v2.2.8 dependencies:- dotnetcore-runtime.install = [2.2.8]
dotnetcore-runtime.install v3.1.0 dependencies:- chocolatey-core.extension >= 1.1.0
- vcredist2015 >= 14.0.24215.20170201
- KB2533623 >= 1.0.1
dotnetcore-runtime.install v2.0.7 dependencies:- chocolatey-core.extension >= 1.1.0
- vcredist2015 >= 14.0.24215.20170201
- KB2533623 >= 1.0.1
dotnetcore-runtime.install v2.1.14 dependencies:- chocolatey-core.extension >= 1.1.0
- vcredist2015 >= 14.0.24215.20170201
- KB2533623 >= 1.0.1
dotnetcore-runtime.install v2.2.8 dependencies:- chocolatey-core.extension >= 1.1.0
- vcredist2015 >= 14.0.24215.20170201
- KB2533623 >= 1.0.1
dotnetcore-sdk v3.1.100 dependencies:- vcredist2015 >= 14.0.24215.20160928
- KB2533623 >= 1.0.2
dotnetcore-sdk v2.0.3 dependencies:- vcredist2015 >= 14.0.24215.20160928
- KB2533623 >= 1.0.2
dotnetcore-sdk v2.1.802 dependencies:- vcredist2015 >= 14.0.24215.20160928
- KB2533623 >= 1.0.2
dotnetcore-sdk v2.2.402 dependencies:- vcredist2015 >= 14.0.24215.20160928
- KB2533623 >= 1.0.2
dotnetcore v2.0.7 dependencies:- dotnetcore-runtime >= 2.0.7
dotnetcore v2.1.14 dependencies:- dotnetcore-runtime = [2.1.14]
dotnetcore v2.2.8 dependencies:- dotnetcore-runtime = [2.2.8]
dotnetfx v4.8.0.20190930 dependencies:- chocolatey-dotnetfx.extension >= 1.0.1
- KB2919355 >= 1.0.20160915
git v2.24.1.2 dependencies:- git.install = [2.24.1.2]
git-credential-manager-for-windows v1.20.0 dependencies:- git {Any Version}
git-fork v1.41.1 dependencies:- dotnet4.7.1 >= 4.7.2558.0
git.install v2.24.1.2 dependencies:- chocolatey-core.extension >= 1.3.3
- chocolatey >= 0.10.7
gitextensions v3.2.1 dependencies:- git >= 2.17.1.2
- chocolatey-core.extension >= 1.3.3
- dotnet4.6.1 >= 4.6.01055.20170308
KB2533623 v1.0.4 dependencies:- chocolatey-windowsupdate.extension >= 1.0.4
KB2533623 v1.0.4 dependencies:- chocolatey-windowsupdate.extension >= 1.0.4
KB2670838 v1.0.20181019 dependencies:- chocolatey-windowsupdate.extension >= 1.0.2
KB2919355 v1.0.20160915 dependencies:- KB2919442 >= 1.0.20160915
KB2919355 v1.0.20160915 dependencies:- KB2919442 >= 1.0.20160915
KB2999226 v1.0.20181019 dependencies:- kb2919355 >= 1.0.20160915
- chocolatey-windowsupdate.extension >= 1.0.2
KB2999226 v1.0.20181019 dependencies:- kb2919355 >= 1.0.20160915
- chocolatey-windowsupdate.extension >= 1.0.2
KB3033929 v1.0.5 dependencies:- chocolatey-windowsupdate.extension >= 1.0.4
- KB3035131 >= 1.0.3
KB3033929 v1.0.5 dependencies:- chocolatey-windowsupdate.extension >= 1.0.4
- KB3035131 >= 1.0.3
KB3035131 v1.0.3 dependencies:- chocolatey-windowsupdate.extension >= 1.0.4
KB3035131 v1.0.3 dependencies:- chocolatey-windowsupdate.extension >= 1.0.4
ngrok v2.0 dependencies:- ngrok.portable = [2.0.1]
notepadplusplus v7.6.4 dependencies:- notepadplusplus.install = [7.6.4]
notepadplusplus.install v7.6.4 dependencies:- chocolatey-core.extension >= 1.3.3
paint.net v4.2.5 dependencies:- chocolatey-core.extension >= 1.3.3
- dotnet4.7.2 >= 4.7.2.20180712
- KB2670838 >= 1.0.20170428
poshgit v0.7.3.1 dependencies:- chocolatey >= 0.9.10
- git {Any Version}
renamer v7.1 dependencies:- renamer.install = [7.1]
snagit v2019.1.3 dependencies:- dotnet4.6.1 {Any Version}
SourceTree v3.0.17 dependencies:- dotnet4.7.1 >= 4.7.2558.0
typescript v3.7.3 dependencies:- nodejs-lts >= 6.9.2
vcredist140 v14.24.28127.4 dependencies:- chocolatey-core.extension >= 1.3.3
- KB3033929 >= 1.0.3
- KB2919355 >= 1.0.20160915
- kb2999226 >= 1.0.20170509
vcredist140 v14.23.27820 dependencies:- chocolatey-core.extension >= 1.3.3
- KB3033929 >= 1.0.3
- KB2919355 >= 1.0.20160915
- kb2999226 >= 1.0.20170509
vcredist2015 v14.0.24215.20170201 dependencies:- vcredist140 >= 14.0.24215.1
vcredist2015 v14.0.24215.20170201 dependencies:- vcredist140 >= 14.0.24215.1
vivaldi v2.10.1745.21 dependencies:- vivaldi.portable = [2.10.1745.21]
vlc v3.0.8 dependencies:- chocolatey-core.extension >= 1.3.3
For now, I'm getting around this problem by doing cup ... --ignore-dependencies
Any update on this? Seeing it every time w/ dotnetcore, beyondcompare, git, and others
I experienced the same problem when I tried to upgrade git from version 2.26.0 to latest (2.27.0). I mentioned it on Gitter in channel chocolatey/chocolatey.org. I ran the command choco upgrade git and this is what happened:
John@~$ choco upgrade git
Chocolatey v0.10.15
Upgrading the following packages:
git
By upgrading you accept licenses for the packages.
You have git v2.26.0 installed. Version 2.27.0 is available based on your source(s).
git not upgraded. An error occurred during installation:
Already referencing a newer version of 'chocolatey'.
git package files upgrade completed. Performing other installation steps.
The upgrade of git was NOT successful.
git not upgraded. An error occurred during installation:
Already referencing a newer version of 'chocolatey'.
Chocolatey upgraded 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- git (exited 1) - git not upgraded. An error occurred during installation:
Already referencing a newer version of 'chocolatey'.
@pauby helped me with running choco uninstall git and cohco install git which solved the problem.
In the chocolatey.log I found the same strange dependency problem mentioned earlier in this issue:
2020-07-10 11:49:36,055 34832 [DEBUG] - Package 'git' found on source 'https://chocolatey.org/api/v2/'
2020-07-10 11:49:36,059 34832 [WARN ] -
You have git v2.26.0 installed. Version 2.27.0 is available based on your source(s).
2020-07-10 11:49:36,138 34832 [DEBUG] - Backing up existing git prior to operation.
2020-07-10 11:49:36,140 34832 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\git'
to 'C:\ProgramData\chocolatey\lib-bkp\git'
2020-07-10 11:49:38,157 34832 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\git".
2020-07-10 11:49:38,159 34832 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git\git.nupkg"
to "C:\ProgramData\chocolatey\lib\git\git.nupkg".
2020-07-10 11:49:38,162 34832 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git\git.nuspec"
to "C:\ProgramData\chocolatey\lib\git\git.nuspec".
2020-07-10 11:49:39,670 34832 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\git'
2020-07-10 11:49:39,672 34832 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\git\git.nupkg'
with checksum '5B6FB8C17E4B50A55FA2067A41B62D54'
2020-07-10 11:49:39,673 34832 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\git\git.nuspec'
with checksum '7ED1EF06F92A780217269C0E25221176'
2020-07-10 11:49:42,302 34832 [INFO ] - [NuGet] Attempting to resolve dependency 'git.install (= 2.27.0)'.
2020-07-10 11:49:45,033 34832 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey-core.extension (= 1.3.3)'.
2020-07-10 11:49:45,079 34832 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey (= 0.10.7)'.
2020-07-10 11:49:45,121 34832 [ERROR] - git not upgraded. An error occurred during installation:
Already referencing a newer version of 'chocolatey'.
2020-07-10 11:49:45,131 34832 [INFO ] - git package files upgrade completed. Performing other installation steps.
2020-07-10 11:49:45,145 34832 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\git.2.27.0\.arguments".
2020-07-10 11:49:45,146 34832 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\git.2.27.0\.extra".
2020-07-10 11:49:45,147 34832 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\git.2.27.0\.version".
2020-07-10 11:49:45,147 34832 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\git.2.27.0\.sxs".
2020-07-10 11:49:45,148 34832 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\git.2.27.0\.pin".
2020-07-10 11:49:45,152 34832 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\git".
2020-07-10 11:49:45,155 34832 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2020-07-10 11:49:45,156 34832 [ERROR] - The upgrade of git was NOT successful.
2020-07-10 11:49:45,160 34832 [ERROR] - git not upgraded. An error occurred during installation:
Already referencing a newer version of 'chocolatey'.
See dependency 'chocolatey (= 0.10.7)'. As @mkevenaar mentioned the package git.install dependency is correctly chocolatey (>= 0.10.7).
Most helpful comment
Any update on this? Seeing it every time w/
dotnetcore,beyondcompare,git, and others