No snap matching $package available in ubuntu post-install
Bug #1926301 reported by
eoli3n
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Expired
|
Undecided
|
Unassigned |
Bug Description
I use ansible in post install script of ubuntu installer to install some snap packages.
Here's the task I use:
---
- name: install snap packages
snap:
name:
- pdftk
- zoom-client
- teams
When the tasks ran, it fails and returns:
TASK [apps/packages_snap : install snap packages] *******
fatal: [fds0400]: FAILED! => changed=false
msg: No snap matching 'pdftk' available.
After the first boot, the same playbook runs and I get the same error.
But if I run ``snap install pdftk`` manually, it succeed.
To post a comment you must log in.
It's a bit weird but I don't know ansible so it's hard to tell what is it doing. Could you please collect the output of:
1. sudo journalctl -u snapd
2. snap changes
for the period when ansible runs and fails with install?