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

Unable to resolve dependency errors is stopping upgrade #3323

Closed
5 tasks done
aetonsi opened this issue Sep 14, 2023 · 5 comments
Closed
5 tasks done

Unable to resolve dependency errors is stopping upgrade #3323

aetonsi opened this issue Sep 14, 2023 · 5 comments

Comments

@aetonsi
Copy link

aetonsi commented Sep 14, 2023

Checklist

  • 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?

I am no longer able to update almost anything, but i can't understand why. A very small group of package still updates, but most of them don't.
It seems to me that the problem originates from dotnetfx, but i am not sure.
I tried uninstalling the package completely, but after it reinstalled, the problems persisted.
I tried to install the 4.7.2 version alongside the 4.8.0 version, but it didn't make a difference.
I don't know what to do anymore.
This is the result of a choco upgrade all (everyday the list of packages not updating gets bigger):

Chocolatey upgraded 3/155 packages. 18 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Upgraded:
 - ccleaner v6.16.10662
 - obsidian v1.4.12
 - teamviewer v15.45.4

Warnings:
 - brave - brave is pinned. Skipping pinned package.
 - GoogleChrome - GoogleChrome is pinned. Skipping pinned package.

Failures
 - autohotkey.portable - Unable to resolve dependency 'dotnetfx': Unable to resolve dependencies. 'dotnetfx 4.8.0.20220524' is not compatible with 'royalserver 5.0.50904 constraint: dotnetfx (= 4.7.2.20180712)'.
 - cpu-z - Unable to resolve dependency 'dotnetfx': Unable to resolve dependencies. 'dotnetfx 4.8.0.20220524' is not compatible with 'royalserver 5.0.50904 constraint: dotnetfx (= 4.7.2.20180712)'.
 - cpu-z.install - Unable to resolve dependency 'dotnetfx': Unable to resolve dependencies. 'dotnetfx 4.8.0.20220524' is not compatible with 'royalserver 5.0.50904 constraint: dotnetfx (= 4.7.2.20180712)'.
 - docker-desktop - Unable to resolve dependency: Unable to find a version of 'chocolatey-dotnetfx.extension' that is compatible with 'dotnetfx 4.8.0.20190930 constraint: chocolatey-dotnetfx.extension (>= 1.0.1)'.
 - dotnet-6.0-aspnetruntime - Unable to resolve dependency 'KB2919442': Unable to find a version of 'KB2919442' that is compatible with 'KB2919355 1.0.20160915 constraint: KB2919442 (>= 1.0.20160915)'.
 - dotnet-6.0-desktopruntime - Unable to resolve dependency 'KB2919442': Unable to find a version of 'KB2919442' that is compatible with 'KB2919355 1.0.20160915 constraint: KB2919442 (>= 1.0.20160915)'.
 - dotnet-7.0-desktopruntime - Unable to resolve dependency 'KB2919442': Unable to find a version of 'KB2919442' that is compatible with 'KB2919355 1.0.20160915 constraint: KB2919442 (>= 1.0.20160915)'.
 - dotnet-desktopruntime - Unable to resolve dependency: Unable to find a version of 'chocolatey-core.extension' that is compatible with 'dotnet-7.0-desktopruntime 7.0.0 constraint: chocolatey-core.extension (>= 1.3.5.1)'.
 - nirlauncher - Unable to resolve dependency 'dotnetfx': Unable to resolve dependencies. 'dotnetfx 4.8.0.20220524' is not compatible with 'royalserver 5.0.50904 constraint: dotnetfx (= 4.7.2.20180712)'.
 - nodejs.install - Unable to resolve dependency 'dotnetfx': Unable to resolve dependencies. 'dotnetfx 4.8.0.20220524' is not compatible with 'royalserver 5.0.50904 constraint: dotnetfx (= 4.7.2.20180712)'.
 - protonvpn - Unable to resolve dependency 'KB2919442': Unable to find a version of 'KB2919442' that is compatible with 'KB2919355 1.0.20160915 constraint: KB2919442 (>= 1.0.20160915)'.
 - rclone - Unable to resolve dependency 'dotnetfx': Unable to resolve dependencies. 'dotnetfx 4.8.0.20220524' is not compatible with 'royalserver 5.0.50904 constraint: dotnetfx (= 4.7.2.20180712)'.
 - rclone.portable - Unable to resolve dependency 'dotnetfx': Unable to resolve dependencies. 'dotnetfx 4.8.0.20220524' is not compatible with 'royalserver 5.0.50904 constraint: dotnetfx (= 4.7.2.20180712)'.
 - royalserver - Unable to resolve dependency: Unable to find a version of 'chocolatey-dotnetfx.extension' that is compatible with 'dotnetfx 4.8.0.20190930 constraint: chocolatey-dotnetfx.extension (>= 1.0.1)'.
 - skype (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\skype\tools\chocolateyInstall.ps1'.
 See log for details.
 - thunderbird - Unable to resolve dependency 'dotnetfx': Unable to resolve dependencies. 'dotnetfx 4.8.0.20220524' is not compatible with 'royalserver 5.0.50904 constraint: dotnetfx (= 4.7.2.20180712)'.
 - vscode - Unable to resolve dependency 'dotnetfx': Unable to resolve dependencies. 'dotnetfx 4.8.0.20220524' is not compatible with 'royalserver 5.0.50904 constraint: dotnetfx (= 4.7.2.20180712)'.
 - vscode.install - Unable to resolve dependency 'dotnetfx': Unable to resolve dependencies. 'dotnetfx 4.8.0.20220524' is not compatible with 'royalserver 5.0.50904 constraint: dotnetfx (= 4.7.2.20180712)'.

What is Expected?

simply being able to upgrade all

How Did You Get This To Happen?

i run choco upgrade all every day. that's it. from one day to the other, many packages stopped updating

System Details

  • Operating System: win11 pro N (10.0.22631.0)
  • Windows PowerShell version: 7.3.6 / 5.1.22621.1830
  • Chocolatey CLI Version: 2.2.2
  • Chocolatey Licensed Extension version: not installed
  • Chocolatey License type: free
  • Terminal/Emulator: windows terminal

Installed Packages

Chocolatey v2.2.2
7zip 23.1.0
7zip.install 23.1.0
advanced-port-scanner 2.5.3869
android-sdk 26.1.1
attributechanger 11.20.2
audacity 3.3.3
autohotkey 1.1.37.1
autohotkey.install 1.1.37.1
autohotkey.portable 2.0.7
avidemux 2.8.1
brave 1.51.118
bulk-crap-uninstaller 5.6.0
bulkrenameutility 3.4.4
ccleaner 6.16.10662
choco-cleaner 1.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-misc-helpers.extension 0.0.4
chocolatey-visualstudio.extension 1.11.0
chocolatey-windowsupdate.extension 1.0.5
chrome-remote-desktop-host 116.0.5845.9
cmdutils 1.5.0
composer 6.3.0
coretemp 1.18.0
cpu-z 2.6.0.20230617
cpu-z.install 2.6.0.20230617
crystaldiskmark 8.0.4.99
cs-script 4.8.1
docker-desktop 4.22.1
DotNet3.5 3.5.20160716
DotNet4.5 4.5.20120822
DotNet4.5.2 4.5.2.20140902
dotnet-6.0-aspnetruntime 6.0.21
dotnet-6.0-desktopruntime 6.0.21
dotnet-7.0-desktopruntime 7.0.10
dotnet-desktopruntime 7.0.10
dotnetfx 4.8.0.20220524
echoargs 3.2.0
encfsmp 0.99.1-beta
es 1.1.0.26
Everything 1.4.11024
ffmpeg 6.0.0
fiddler 5.0.20211.51073
FsResizer.install 4.4.0
fsviewer 7.7.0
gcloudsdk 0.0.0.20220203
gh 2.34.0
git 2.42.0
git.install 2.42.0
git-lfs 3.4.0
git-lfs.install 3.4.0
go 1.21.1
golang 1.21.1
GoogleChrome 116.0.5845.111
gpu-z 2.54.0
gradle 8.3.0
greenshot 1.2.10.6
gsudo 2.4.0
hashcheck 2.5.0
hwinfo 7.62.0
hwinfo.install 7.62.0
hxd 2.5.0
jdownloader 2.0.0.2023
joplin 2.11.11
just 1.14.0
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
kdenlive 23.8.0
keepassxc 2.7.6
laragon.install 4.0.15.20210114
libreoffice-fresh 7.5.3
LinkShellExtension 3.9.3.5
megasync 4.9.6
meld 3.22.0
mono 6.12.0.199
mpc-hc-clsid2 2.0.0
mRemoteNG 1.76.20.24615
msys2 20230718.0.0
ngrok 3.3.4
nirlauncher 1.30.4
nodejs 20.6.0
nodejs.install 20.6.0
notepadplusplus 8.5.7
notepadplusplus.install 8.5.7
NTop.Portable 0.3.4
obsidian 1.4.12
obs-studio 29.1.3
obs-studio.install 29.1.3
openjdk 20.0.2
open-shell 4.4.190
openshot 3.1.1
paint.net 5.0.9
partitionwizard 12.8.0
php 8.2.10
postman 10.17.3
powershell-core 7.3.6
prime95 30.8.17
protonmailbridge 3.3.2
protonvpn 3.1.0
python311 3.11.5
Qemu 2023.8.22
rainmeter 4.3.0.3321
rclone 1.63.1
rclone.portable 1.63.1
royalserver 5.0.50904
royalts-v5 5.4.60415
rufus 4.2.0
rustdesk 1.2.2
rustdesk.install 1.2.2
setacl 3.1.2.86
setacl-studio 1.2.4
Shotcut 23.7.29
shotcut.install 23.7.29
skype 8.98.0.206
speccy 1.32.803
sysinternals 2023.7.26
teamviewer 15.45.4
testdisk-photorec 7.1.0
thunderbird 115.2.0
tortoisegit 2.14.0.1
tortoisesvn 1.14.5.29465
vcredist140 14.36.32532
vcredist2008 9.0.30729.616104
vcredist2015 14.0.24215.20170201
vcredist2017 14.16.27033
veracrypt 1.25.9.20230710
visualstudio2022buildtools 117.7.3
visualstudio-installer 2.0.3
vmware-workstation-player 17.0.2.21581411
vnc-viewer 7.6.0
vscode 1.82.0
vscode.install 1.82.0
winaero-tweaker 1.55.0
winaero-tweaker.install 1.55.0
wincdemu 4.1.0.20171221
winfetch 2.5.1
winfsp 2.0.23075
winmerge 2.16.32
WinPcap 4.1.3.20161116
winscp 6.1.1
winscp.install 6.1.1
wireguard 0.5.3
wireshark 4.0.8
wiztree 4.15.0
wox 1.3.524.20180714
yumi 2.0.9.4
yumi-uefi 0.0.4.6
zettlr 2.3.0
156 packages installed.

Output Log

https://gist.github.com/aetonsi/174e9860f14458d7f1517644337dd378

Additional Context

No response

@aetonsi aetonsi added the Bug label Sep 14, 2023
@pauby
Copy link
Member

pauby commented Sep 14, 2023

We have documentation around this issue.

I'm going to go ahead and close this, but we can reopen it if necessary.

@pauby pauby closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2023
@pauby pauby changed the title Unable to update anything, but can't understand why Unable to resolve dependency issues stopping upgrade Sep 14, 2023
@pauby pauby changed the title Unable to resolve dependency issues stopping upgrade Unable to resolve dependency errors is stopping upgrade Sep 14, 2023
@aetonsi
Copy link
Author

aetonsi commented Sep 15, 2023

hi, i run the following trying to fix the problem:

choco install dotnetfx --version=4.8.0.20220524 --ignore-dependencies --force
choco install dotnetfx --version=4.7.2.20180712 --ignore-dependencies --force

but i ended up breaking even more things, apparently:

# choco upgrade rclone
Chocolatey v2.2.2
Upgrading the following packages:
rclone
By upgrading, you accept licenses for the packages.

You have rclone v1.63.1 installed. Version 1.64.0 is available based on your source(s).
[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'protonvpn 3.1.0 constraint: dotnetfx (>= 4.8.0.20190930)', 'visualstudio2022buildtools 117.7.3 constraint: dotnetfx (>= 4.8.0)'
Re-attempting package dependency resolution using additional available package information...
[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'protonvpn 3.1.0 constraint: dotnetfx (>= 4.8.0.20190930)', 'visualstudio2022buildtools 117.7.3 constraint: dotnetfx (>= 4.8.0)'
Unable to resolve dependency: Unable to find a version of 'chocolatey-core.extension' that is compatible with '7zip.install 23.1.0 constraint: chocolatey-core.extension (>= 1.3.3)', 'audacity 3.3.3 constraint: chocolatey-core.extension (>= 1.3.3)', 'autohotkey.install 1.1.37.1 constraint: chocolatey-core.extension (>= 1.3.3)', 'avidemux 2.8.1 constraint: chocolatey-core.extension (>= 1.3.3)', 'cpu-z.install 2.6.0.20230617 constraint: chocolatey-core.extension (>= 1.3.1)', 'dotnet-7.0-desktopruntime 7.0.10 constraint: chocolatey-core.extension (>= 1.3.5.1)', 'encfsmp 0.99.1-beta constraint: chocolatey-core.extension (>= 1.3.3)', 'Everything 1.4.11024 constraint: chocolatey-core.extension (>= 1.3.3)', 'git.install 2.42.0 constraint: chocolatey-core.extension (>= 1.3.3)', 'GoogleChrome 116.0.5845.111 constraint: chocolatey-core.extension (>= 1.3.3)', 'msys2 20230718.0.0 constraint: chocolatey-core.extension (>= 1.3.3)', 'nirlauncher 1.30.4 constraint: chocolatey-core.extension (>= 1.3.3)', 'notepadplusplus.install 8.5.7 constraint: chocolatey-core.extension (>= 1.3.3)', 'paint.net 5.0.9 constraint: chocolatey-core.extension (>= 1.3.3)', 'php 8.2.10 constraint: chocolatey-core.extension (>= 1.3.3)', 'sysinternals 2023.7.26 constraint: chocolatey-core.extension (>= 1.3.3)', 'thunderbird 115.2.0 constraint: chocolatey-core.extension (>= 1.3.3)', 'vcredist140 14.36.32532 constraint: chocolatey-core.extension (>= 1.3.3)', 'vscode.install 1.82.0 constraint: chocolatey-core.extension (>= 1.3.3)', 'winscp.install 6.1.1 constraint: chocolatey-core.extension (>= 1.3.3)'.

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

Failures
 - rclone - Unable to resolve dependency: Unable to find a version of 'chocolatey-core.extension' that is compatible with '7zip.install 23.1.0 constraint: chocolatey-core.extension (>= 1.3.3)', 'audacity 3.3.3 constraint: chocolatey-core.extension (>= 1.3.3)', 'autohotkey.install 1.1.37.1 constraint: chocolatey-core.extension (>= 1.3.3)', 'avidemux 2.8.1 constraint: chocolatey-core.extension (>= 1.3.3)', 'cpu-z.install 2.6.0.20230617 constraint: chocolatey-core.extension (>= 1.3.1)', 'dotnet-7.0-desktopruntime 7.0.10 constraint: chocolatey-core.extension (>= 1.3.5.1)', 'encfsmp 0.99.1-beta constraint: chocolatey-core.extension (>= 1.3.3)', 'Everything 1.4.11024 constraint: chocolatey-core.extension (>= 1.3.3)', 'git.install 2.42.0 constraint: chocolatey-core.extension (>= 1.3.3)', 'GoogleChrome 116.0.5845.111 constraint: chocolatey-core.extension (>= 1.3.3)', 'msys2 20230718.0.0 constraint: chocolatey-core.extension (>= 1.3.3)', 'nirlauncher 1.30.4 constraint: chocolatey-core.extension (>= 1.3.3)', 'notepadplusplus.install 8.5.7 constraint: chocolatey-core.extension (>= 1.3.3)', 'paint.net 5.0.9 constraint: chocolatey-core.extension (>= 1.3.3)', 'php 8.2.10 constraint: chocolatey-core.extension (>= 1.3.3)', 'sysinternals 2023.7.26 constraint: chocolatey-core.extension (>= 1.3.3)', 'thunderbird 115.2.0 constraint: chocolatey-core.extension (>= 1.3.3)', 'vcredist140 14.36.32532 constraint: chocolatey-core.extension (>= 1.3.3)', 'vscode.install 1.82.0 constraint: chocolatey-core.extension (>= 1.3.3)', 'winscp.install 6.1.1 constraint: chocolatey-core.extension (>= 1.3.3)'.

what can i try? could you kindly please help me out? thanks

@pauby
Copy link
Member

pauby commented Sep 15, 2023

@aetonsi As this isn't an issue in Chocolatey CLI, can you please ask over on Discord?

@aetonsi
Copy link
Author

aetonsi commented Sep 24, 2023

hi, apparently it was chocolatey related, since by uninstalling chocolatey then reinstalling every package again (except for the choco ones) with the -n parameter solved my problem

@dazzo31
Copy link

dazzo31 commented Dec 5, 2023

Run the MS .NET Framework Repair Tool, worked for me

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

3 participants