You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ianheggie
changed the title
ANXS.apt : APT | Install Packages failed with No package(s) matching '['python3-apt'' available
Patch to fix: "ANXS.apt : APT | Install Packages failed with No package(s) matching '['python3-apt'' available" error
Jun 10, 2023
@ianheggie actually the issue is related to changed arithmetic and concatenation operations outside of the jinja template.
The solution is to change this {{ apt_default_packages }} + {{ apt_default_packages_pre20 }} to this {{ apt_default_packages + apt_default_packages_pre20 }}
edit: I've just realized that the fix is already merged ;)
@ianheggie actually the issue is related to changed arithmetic and concatenation operations outside of the jinja template. The solution is to change this {{ apt_default_packages }} + {{ apt_default_packages_pre20 }} to this {{ apt_default_packages + apt_default_packages_pre20 }}
edit: I've just realized that the fix is already merged ;)
Thanks for your feedback - I didn't twig to that being the issue. I was just reading about "egg of Columbus" and your solution fits!
I refactored out the combining of the two lists (see patch below) and that fixed the problem for me!
Environment:
Log from ansible:
Patch that fixed the problem for me (personally prefer running apt on default separately from version specific list anyway)
The text was updated successfully, but these errors were encountered: