chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.34k stars 903 forks source link

Unable to resolve dependency after V2.0.0 upgrade #3176

Closed YamamotoKaderate closed 1 year ago

YamamotoKaderate commented 1 year ago

Checklist

What You Are Seeing?

After upgrading cli and gui to v2.0.0 i can't upgrade packages. On the GUI it just closed saying it's impossible

What is Expected?

Upgrading googleChrome shouldn't depend on miktex to upgrade

How Did You Get This To Happen?

On the CLI I have more details: choco outdated ... miktex|22.10|23.5|false miktex.install|21.8|23.5|false ... GoogleChrome|113.0.5672.127|114.0.5735.91|false ...

choco upgrade GoogleChrome Chocolatey v2.0.0 Upgrading the following packages: GoogleChrome By upgrading, you accept licenses for the packages.

You have GoogleChrome v113.0.5672.127 installed. Version 114.0.5735.91 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: 'miktex 22.10.0 constraint: miktex.install (= 22.10.0)' Unable to resolve dependency: Unable to resolve dependencies. 'miktex.install 21.8.0' is not compatible with 'miktex 22.10.0 constraint: miktex.install (= 22.10.0)'.

Chocolatey upgraded 0/1 packages. 1 packages failed.

after uninstalling miktex and miktex.install, it all went to normal

System Details

Installed Packages

after miktex and miktex.install uninstall and googleChrome upgrade:
7zip.install 22.1.0
AdoptOpenJDK8 8.292.10.901
agentransack 2022.3349.0
aimp 5.11.2421.20230213
amazon-music 7.13.0.2210
ant-renamer 2.12.0.20170526
audacity 3.2.3
autohotkey 1.1.36.2
autohotkey.install 1.1.36.2
autohotkey.portable 2.0.2
avidemux 2.8.1
avisynthplus 3.7.2
chocolatey 2.0.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolateygui 2.0.0
chocolatey-misc-helpers.extension 0.0.4
chocolatey-windowsupdate.extension 1.0.5
ConEmu 22.12.18
cports 2.65.0
crystaldiskinfo 8.17.13
crystaldiskinfo.portable 8.17.13
crystaldiskmark 8.0.4.99
directx 9.29.1974.20210222
discord.install 1.0.9005
DotNet3.5 3.5.20160716
DotNet4.0 4.0.30319.20141222
DotNet4.5 4.5.20120822
DotNet4.5.2 4.5.2.20140902
DotNet4.6.1 4.6.1055.20170308
dotnet-6.0-desktopruntime 6.0.13
dotnetfx 4.8.0.20220524
eac 1.6.0
emule 0.50.1
epicgameslauncher 1.3.51
f.lux.install 4.120.0
ffmpeg-shared 5.1.2
filezilla 3.62.2
Firefox 113.0.1
gimp 2.10.32.1
goggalaxy 2.0.55.99
golang 1.19.4
GoogleChrome 114.0.5735.91
gtk-runtime 2.24.10.20121010
gtksharp 2.12.45
handbrake 1.6.0
handbrake.install 1.6.0
hxd 2.5.0
hybrid 2023.3.17.1
imagemagick 7.1.0.57
imagemagick.app 7.1.0.57
jdownloader 2.0.0
joytokey 6.9.1
jre8 8.0.351
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
KB3063858 1.0.0
keepass 2.53.1
keepass.install 2.53.1
k-litecodecpackmega 17.5.5
libreoffice-still 7.4.7
meld 3.22.0
mobaxterm 23.1.0
mp3directcut 2.36.0
msys2 20221216.0.0
musicbee 3.4.8033
netfx-4.5.2-devpack 4.5.5165101.20180721
netfx-4.8 4.8.0.20220524
netfx-4.8-devpack 4.8.0.20190930
nirlauncher 1.30.2
notepadplusplus.install 8.5.2
origin 10.5.116.52126
paint.net 5.0.1
picard 2.8.5
putty 0.78.0
putty.portable 0.78.0
python 3.11.0
python3 3.11.0
qbittorrent 4.5.0
rambox 0.8.0
sgt-puzzles 2023.1.3
simplednscrypt 0.6.6
skype 8.92.0.401
sysinternals 2023.4.12
tagscanner 6.1.14
Temurin8 8.352.8
thunderbird 102.10.1
tor-browser 12.0.4
ultracopier 2.2.6.6
vcredist140 14.36.32532
vcredist2008 9.0.30729.616104
vcredist2010 10.0.40219.32503
vcredist2013 12.0.40660.20180427
vcredist2015 14.0.24215.20170201
vcredist2017 14.16.27033
vlc 3.0.17.4
vlc.install 3.0.17.4
windirstat 1.1.2.20161210
winmerge 2.16.10
WinPcap 4.1.3.20161116
wireshark 3.6.6
yacreader 9.8.0
youtube-dl 2021.12.17

Output Log

choco upgrade GoogleChrome
Chocolatey v2.0.0
Upgrading the following packages:
GoogleChrome
By upgrading, you accept licenses for the packages.

You have GoogleChrome v113.0.5672.127 installed. Version 114.0.5735.91 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: 'miktex 22.10.0 constraint: miktex.install (= 22.10.0)'
Unable to resolve dependency: Unable to resolve dependencies. 'miktex.install 21.8.0' is not compatible with 'miktex 22.10.0 constraint: miktex.install (= 22.10.0)'.

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

Failures
 - GoogleChrome - Unable to resolve dependency: Unable to resolve dependencies. 'miktex.install 21.8.0' is not compatible with 'miktex 22.10.0 constraint: miktex.install (= 22.10.0)'.

Additional Context

No response

pauby commented 1 year ago

Please see the upgrading guide around version constraints.

To resolve the version constraint, miktex and miktex.install should be at the same version.

'miktex.install 21.8.0' is not compatible with 'miktex 22.10.0 constraint: miktex.install (= 22.10.0)'.

It looks like you have miktex.install 21.8.0 and miktex 22.10.0. But miktex 22.10.0 needs miktex 22.10.0, and you have 21.8.0. Upgrade miktex.install to 22.10.0 using choco upgrade miktex --version 22.10.0 to resolve it.

Upgrading googleChrome shouldn't depend on miktex to upgrade

googlechrome doesn't depend on miktex. miktex and miktex.install have a dependency constraint that cannot be resolved, so you need to resolve it manually. Chocolatey CLI is telling you something is broken, and it cannot fix it for you.

YamamotoKaderate commented 1 year ago

Ok, so it's a feature, not a bug. I think that the fact that unrelatable packages block an upgrade is debatable, but I'm sure there's a serious reason behind it. What is really annoying is that you can't understand the problem when you're using the gui: if I remember well, when i clicked console output, the windows closed before I had the chance to see the underlying problem (edit: and the error message after didn't mention this conflict), and there was no visual cue on the miktex icons either to indicate a conflict to resolve.

TheCakeIsNaOH commented 1 year ago

What is really annoying is that you can't understand the problem when you're using the gui: if I remember well, when i clicked console output, the windows closed before I had the chance to see the underlying problem (edit: and the error message after didn't mention this conflict), and there was no visual cue on the miktex icons either to indicate a conflict to resolve.

This would be something to bring up on the ChocolateyGUI repository.

gep13 commented 1 year ago

@YamamotoKaderate would it be possible for you to run the following command:

Get-ChildItem $env:chocolateyinstall/lib

And then provide the output here in this issue?

The reason that I ask is that the miktex packages are not being shown in the output that you provided for installed packages, which we are assuming you got from running the choco list command. We want to confirm what folders are contained within your chocolatey/lib folder.

YamamotoKaderate commented 1 year ago

Sorry, i ran the choco list after uninstalling the miktex packages. I'll bring the issue on the ChocolateyGUI repo

Julibe commented 11 months ago

I resolved the issue by navigating to C:\ProgramData\chocolatey\lib and removing the problematic installation.

jpdralc commented 11 months ago

I resolved the issue by navigating to C:\ProgramData\chocolatey\lib and removing the problematic installation.

this worked for me

pauby commented 11 months ago

@Julibe @jpdralc I'm glad you got this resolved, but doing this is going to break your system at some point and is unsupported.

Julibe commented 11 months ago

@Julibe @jpdralc I'm glad you got this resolved, but doing this is going to break your system at some point and is unsupported.

Thanks, that could be true, but I struggled with this issue for multiple days, searched extensively, and surprisingly, by simply removing one installation, it was fixed, and nothing else broke.

OSmall commented 8 months ago

I resolved the issue by navigating to C:\ProgramData\chocolatey\lib and removing the problematic installation.

This also worked for me. Offending library was winscp. I deleted both the winscp and winscp.install folders. Then, choco install winscp -y

@Julibe @jpdralc I'm glad you got this resolved, but doing this is going to break your system at some point and is unsupported.

I probably should have taken the below approach.

It looks like you have miktex.install 21.8.0 and miktex 22.10.0. But miktex 22.10.0 needs miktex 22.10.0, and you have 21.8.0. Upgrade miktex.install to 22.10.0 using choco upgrade miktex --version 22.10.0 to resolve it.

atevilson commented 6 months ago

Tbm foi o que resolveu pra mim..

pauby commented 6 months ago

@fantasticworldofpandas we use English for all communication in issues as this is what the team universally speak. This also allows searching to be performed more easily for similar or related issues.

Can you please edit your comment to replace it with its English translation?