Experiencing the same problem trying to build an AMI using ami-03804ed633fe58109 as the base image: "bionic server release 20190403 ebs-ssd amd64 us-west-2 ami-03804ed633fe58109 hvm"
``` "Reading package lists... Building dependency tree... Reading state information... The following packages will be REMOVED: pollinate* snapd* ubuntu-server* 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded. After this operation, 67.7 MB disk space will be freed. ... (Reading database ... 64899 files and directories currently installed.) Purging configuration files for pollinate (4.33-0ubuntu1~18.04.1) ... Purging configuration files for snapd (2.37.4+18.04.1) ... Stopping snap.amazon-ssm-agent.amazon-ssm-agent.service Stopping unit snap.amazon-ssm-agent.amazon-ssm-agent.service Waiting until unit snap.amazon-ssm-agent.amazon-ssm-agent.service is stopped [attempt 1] snap.amazon-ssm-agent.amazon-ssm-agent.service is stopped. Removing snap.amazon-ssm-agent.amazon-ssm-agent.service Stopping snap-amazon\\x2dssm\\x2dagent-1068.mount Stopping unit snap-amazon\\x2dssm\\x2dagent-1068.mount Waiting until unit snap-amazon\\x2dssm\\x2dagent-1068.mount is stopped [attempt 1] snap-amazon\\x2dssm\\x2dagent-1068.mount is stopped. Removing snap amazon-ssm-agent and revision 1068 Removing snap-amazon\\x2dssm\\x2dagent-1068.mount Stopping snap-core-6673.mount Stopping unit snap-core-6673.mount Waiting until unit snap-core-6673.mount is stopped [attempt 1] snap-core-6673.mount is stopped. Removing snap core and revision 6673 Removing snap-core-6673.mount Final directory cleanup Discarding preserved snap namespaces Removing extra snap-confine apparmor rules Removing snapd cache rm: cannot remove '/var/cache/snapd/aux': Is a directory dpkg: error processing package snapd (--purge): installed snapd package post-removal script subprocess returned error exit status 1 ``` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1824234 Title: with snapd 2.37.4 the command "apt remove --purge -y snapd" fails on ubuntu bionic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1824234/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs