Closed YamamotoKaderate closed 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.
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.
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.
@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.
Sorry, i ran the choco list after uninstalling the miktex packages. I'll bring the issue on the ChocolateyGUI repo
I resolved the issue by navigating to C:\ProgramData\chocolatey\lib
and removing the problematic installation.
I resolved the issue by navigating to
C:\ProgramData\chocolatey\lib
and removing the problematic installation.
this worked for me
@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 @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.
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.
Tbm foi o que resolveu pra mim..
@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?
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
Output Log
Additional Context
No response