"msg": "No package matching 'python' is available"

1,713 views
Skip to first unread message

NURUDEEN KAMILU

unread,
Aug 7, 2022, 8:39:11 PM8/7/22
to Ansible Project
Hello,

I tried installing python dependencies on ubuntu using ansible. However, I got this error
fatal: [18.157.79.199]: FAILED! => {"changed": false, "msg": "No package matching 'python' is available"}

Below is a screenshot of my play:

Capture.PNG

Dick Visser

unread,
Aug 8, 2022, 12:26:24 AM8/8/22
to ansible...@googlegroups.com
This is correct. There is no package called python. 
Probably your Ubuntu is recent and the package you want is python3.
Same for the related packages. 

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2ede40ee-ff3b-40a8-bff6-a15c8e993068n%40googlegroups.com.
--
Sent from Gmail Mobile

NURUDEEN KAMILU

unread,
Aug 8, 2022, 5:11:52 AM8/8/22
to Ansible Project
Thank you for this
I just tried with Ubuntu 18 and also python3 packages.
Here is the error I have:

fatal: [3.121.159.145]: FAILED! => {"changed": false, "msg": "No package matching 'python3-pip' is available"}

NURUDEEN KAMILU

unread,
Aug 8, 2022, 6:19:39 AM8/8/22
to Ansible Project
I fixed it by adding update_cache parameter to update the repo first before installing my packages
Capture.PNG

Thank you for the tips
Reply all
Reply to author
Forward
0 new messages