No snap matching $package available in ubuntu post-install

Bug #1926301 reported by eoli3n
6
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.

Revision history for this message
Paweł Stołowski (stolowski) wrote :

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?

Changed in snappy:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Snappy because there has been no activity for 60 days.]

Changed in snappy:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.