Comments (9)
I have found the work around by specifying the dependency in the ansible playbook.
- name: Installing dependency packages.
win_chocolatey:
name: '{{ item }}'
state: present
loop:- chocolatey-windowsupdate.extension
- kb2919442
- kb2919355
- kb3118401
But again , its like before installing any packge using chocolatey via ansible, I have to confirm the dependency first from the portal , ensure they are added and then run the playbook.
Whereas this was not required earlier . Does anyone aware why the dependency are not getting resolved by the "win_chocolatey" module?
from choco.
There were updates yesterday to the Chocolatey Community Repository that could have caused this and then some updates later that could have fixed this. Can you:
- Try again?
- Try it with Chocolatey CLI directly and see if you get the same results?
The issue may also be down to caching.
from choco.
hello @pauby
I have tried to re-run the code with the previous logic and its failing for installing "powershell-core" package, but that gives dependency issue. I have checked on the portal and their are update with its dependency.
from choco.
Did you 'Try it with Chocolatey CLI directly and see if you get the same results'?
from choco.
hello @pauby
I was able to install PowerShell Core by first installing the missing dependency via the CLI (command-line interface). While this is a workaround, I'm interested in knowing if there are any alternative solutions to avoid the dependency issue altogether.
from choco.
There were issues with the site last week which could have caused this. These were resolved. Thats why I asked if you could try again to run directly using Chocolatey CLI.
Im unable to reproduce the issue. Without that there isn't anything we can 'fix'.
from choco.
I am trying with Ansible logic, which is failing with below error. Do they still have issue with their website ?
Ansible logic:
- name: Ensure Chocolatey is on the latest version
win_chocolatey:
name: chocolatey
state: latest
register: choco_update_result
Error message:
FAILED! => {"changed": false, "command": "C:\ProgramData\chocolatey\bin\choco.exe upgrade chocolatey --fail-on-unfound --yes --no-progress --limit-output --timeout 2700", "msg": "Error updating package(s) 'chocolatey'", "rc": 1, "stderr": "", "stderr_lines": [], "stdout": "Upgrading the following packages:\r\nchocolatey\r\nBy upgrading, you accept licenses for the packages.\r\nError retrieving packages from source 'https://community.chocolatey.org/api/v2/':\r\n Exception has been thrown by the target of an invocation.\r\n\r\nChocolatey upgraded 0/1 packages. 1 packages failed.\r\n See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).\r\n\r\nFailures\r\n - chocolatey - chocolatey was not found with the source(s) listed.\r\n If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.\r\n Version: ""; Source(s): "[https://community.chocolatey.org/api/v2/](https://community.chocolatey.org/api/v2//)"\r\n", "stdout_lines": ["Upgrading the following packages:", "chocolatey", "By upgrading, you accept licenses for the packages.", "Error retrieving packages from source 'https://community.chocolatey.org/api/v2/':", " Exception has been thrown by the target of an invocation.", "", "Chocolatey upgraded 0/1 packages. 1 packages failed.", " See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).", "", "Failures", " - chocolatey - chocolatey 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/](https://community.chocolatey.org/api/v2//)""]}
from choco.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue will be closed in 14 days if it continues to be inactive.
from choco.
We are good to close it.
The issue was with the older version of the Chocolatey in the windows image, I have created a script which removed the chocolately older version and installs the newer version.
from choco.
Related Issues (20)
- Pin using reason leads to wrong error message HOT 4
- choco hook package - post-install trigger does not fire when package installation fails HOT 7
- Get-ChocolateyWebFile.ps1 detected as malicious from ESET HOT 21
- Using `Install-ChocolateyPath -PathType Machine` in a non-admin context spawns PowerShell endlessly and never completes
- Deprecate `unpackself` command
- Rework build process to remove the use of `-unpackself`
- Remove `-unpackself` command and adjust build/debugging as appropriate
- Chrome package not installing HOT 1
- Change namespace casing to PascalCase HOT 2
- Improve package dependency lookup when an exact version is defined
- choco uninstalled a number of wrong packages when I want to uninstall ONE package HOT 6
- Autoremove feature or list leaf packages
- Chocolatey CLI v2.2.2 prompts for credentials when trying to install the ROS noetic desktop_full package HOT 2
- How to install choco without admin to local path user ? HOT 2
- dotnet4.5.2 was not found with the source(s) listed HOT 5
- Install-ChocolateyFileAssociation creating unnecessary 3rd parameter in registry command, causing error in app when opening associated filetype HOT 4
- Update GenerateDocs.ps1 to support the Astro Framework
- Install-ChocolateyPath: should -Scope default to 'Machine'
- Accessing icon from protected bin repo HOT 1
- Dependency resolution during install can be slow HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from choco.