As part of our testing cycle we create a LXC container with lxc init ubuntu:20.04 {container} Running apt update and apt upgrade in this fresh container hangs on snapd postinst as detailed in this bug. We have to support ubuntu 20.04 in our testing, which is why this is a big problem for us. Was there a resolution found? + apt update -q Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB] Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8628 kB] Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1592 kB] Get:7 http://archive.ubuntu.com/ubuntu focal/universe Translation-en [5124 kB] Get:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB] Get:9 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [144 kB] Get:10 http://archive.ubuntu.com/ubuntu focal/multiverse Translation-en [104 kB] Get:11 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9136 B] Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1946 kB] Get:13 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [271 kB] Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [352 kB] Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [15.6 kB] Get:16 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1141 kB] Get:17 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [10.7 kB] Get:18 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1051 kB] Get:19 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [162 kB] Get:20 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [592 B] Get:21 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [924 kB] Get:22 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [208 kB] Get:23 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [20.9 kB] Get:24 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [24.5 kB] Get:25 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [7336 B] Get:26 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [592 B] Get:27 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [44.8 kB] Get:28 http://archive.ubuntu.com/ubuntu focal-backports/main Translation-en [11.3 kB] Get:29 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata [976 B] Get:30 http://archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B] Get:31 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [23.7 kB] Get:32 http://archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [15.9 kB] Get:33 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [860 B] Get:34 http://archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B] Get:35 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [149 kB] Get:36 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [572 B] Get:37 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [710 kB] Get:38 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [128 kB] Get:39 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [14.6 kB] Get:40 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [22.2 kB] Get:41 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [5376 B] Get:42 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [512 B] Fetched 23.5 MB in 6s (3647 kB/s) Reading package lists... Building dependency tree... Reading state information... 30 packages can be upgraded. Run 'apt list --upgradable' to see them. + apt -yq upgrade Reading package lists... Building dependency tree... Reading state information... Calculating upgrade... The following package was automatically installed and is no longer required: libfreetype6 Use 'apt autoremove' to remove it. The following packages will be upgraded: cloud-init curl dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv isc-dhcp-client isc-dhcp-common libcurl3-gnutls libcurl4 libmbim-glib4 libmbim-proxy libmm-glib0 libqmi-glib5 libqmi-proxy libssl1.1 modemmanager open-vm-tools openssl snapd ubuntu-advantage-tools unattended-upgrades update-notifier-common 30 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 17 standard security updates Need to get 45.1 MB of archives. After this operation, 5890 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 update-notifier-common all 3.192.30.11 [133 kB] Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.16 [1321 kB] Get:3 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 open-vm-tools amd64 2:11.3.0-2ubuntu0~ubuntu20.04.2 [647 kB] Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-wks-client amd64 2.2.19-3ubuntu2.2 [97.4 kB] Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 dirmngr amd64 2.2.19-3ubuntu2.2 [330 kB] Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-wks-server amd64 2.2.19-3ubuntu2.2 [90.2 kB] Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg-utils amd64 2.2.19-3ubuntu2.2 [481 kB] Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-agent amd64 2.2.19-3ubuntu2.2 [232 kB] Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg amd64 2.2.19-3ubuntu2.2 [482 kB] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgconf amd64 2.2.19-3ubuntu2.2 [124 kB] Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg-l10n all 2.2.19-3ubuntu2.2 [51.7 kB] Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg all 2.2.19-3ubuntu2.2 [259 kB] Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgsm amd64 2.2.19-3ubuntu2.2 [217 kB] Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgv amd64 2.2.19-3ubuntu2.2 [200 kB] Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 isc-dhcp-client amd64 4.4.1-2.1ubuntu5.20.04.3 [246 kB] Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 isc-dhcp-common amd64 4.4.1-2.1ubuntu5.20.04.3 [44.9 kB] Get:17 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssl amd64 1.1.1f-1ubuntu2.16 [621 kB] Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-advantage-tools amd64 27.9~20.04.1 [876 kB] Get:19 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.12 [161 kB] Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.12 [235 kB] Get:21 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.12 [232 kB] Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libmbim-proxy amd64 1.26.2-1~ubuntu20.04.1 [6012 B] Get:23 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libmbim-glib4 amd64 1.26.2-1~ubuntu20.04.1 [123 kB] Get:24 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libmm-glib0 amd64 1.18.6-1~ubuntu20.04.1 [203 kB] Get:25 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libqmi-proxy amd64 1.30.4-1~ubuntu20.04.1 [5908 B] Get:26 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libqmi-glib5 amd64 1.30.4-1~ubuntu20.04.1 [642 kB] Get:27 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 modemmanager amd64 1.18.6-1~ubuntu20.04.1 [895 kB] Get:28 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 snapd amd64 2.55.5+20.04 [35.6 MB] Get:29 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 unattended-upgrades all 2.3ubuntu0.3 [48.5 kB] Get:30 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 cloud-init all 22.2-0ubuntu1~20.04.3 [493 kB] Fetched 45.1 MB in 8s (5802 kB/s) Preconfiguring packages ... (Reading database ... 31886 files and directories currently installed.) Preparing to unpack .../00-update-notifier-common_3.192.30.11_all.deb ... Unpacking update-notifier-common (3.192.30.11) over (3.192.30.10) ... Preparing to unpack .../01-libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb ... Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.16) over (1.1.1f-1ubuntu2.13) ... Preparing to unpack .../02-open-vm-tools_2%3a11.3.0-2ubuntu0~ubuntu20.04.2_amd64.deb ... Unpacking open-vm-tools (2:11.3.0-2ubuntu0~ubuntu20.04.2) over (2:11.0.5-4) ... Preparing to unpack .../03-gpg-wks-client_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpg-wks-client (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../04-dirmngr_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking dirmngr (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../05-gpg-wks-server_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpg-wks-server (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../06-gnupg-utils_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gnupg-utils (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../07-gpg-agent_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpg-agent (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../08-gpg_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpg (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../09-gpgconf_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpgconf (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../10-gnupg-l10n_2.2.19-3ubuntu2.2_all.deb ... Unpacking gnupg-l10n (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../11-gnupg_2.2.19-3ubuntu2.2_all.deb ... Unpacking gnupg (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../12-gpgsm_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpgsm (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../13-gpgv_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpgv (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Setting up gpgv (2.2.19-3ubuntu2.2) ... (Reading database ... 31901 files and directories currently installed.) Preparing to unpack .../00-isc-dhcp-client_4.4.1-2.1ubuntu5.20.04.3_amd64.deb ... Unpacking isc-dhcp-client (4.4.1-2.1ubuntu5.20.04.3) over (4.4.1-2.1ubuntu5.20.04.2) ... Preparing to unpack .../01-isc-dhcp-common_4.4.1-2.1ubuntu5.20.04.3_amd64.deb ... Unpacking isc-dhcp-common (4.4.1-2.1ubuntu5.20.04.3) over (4.4.1-2.1ubuntu5.20.04.2) ... Preparing to unpack .../02-openssl_1.1.1f-1ubuntu2.16_amd64.deb ... Unpacking openssl (1.1.1f-1ubuntu2.16) over (1.1.1f-1ubuntu2.13) ... Preparing to unpack .../03-ubuntu-advantage-tools_27.9~20.04.1_amd64.deb ... Unpacking ubuntu-advantage-tools (27.9~20.04.1) over (27.8~20.04.1) ... Preparing to unpack .../04-curl_7.68.0-1ubuntu2.12_amd64.deb ... Unpacking curl (7.68.0-1ubuntu2.12) over (7.68.0-1ubuntu2.11) ... Preparing to unpack .../05-libcurl4_7.68.0-1ubuntu2.12_amd64.deb ... Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.12) over (7.68.0-1ubuntu2.11) ... Preparing to unpack .../06-libcurl3-gnutls_7.68.0-1ubuntu2.12_amd64.deb ... Unpacking libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.12) over (7.68.0-1ubuntu2.11) ... Preparing to unpack .../07-libmbim-proxy_1.26.2-1~ubuntu20.04.1_amd64.deb ... Unpacking libmbim-proxy (1.26.2-1~ubuntu20.04.1) over (1.24.8-1~20.04) ... Preparing to unpack .../08-libmbim-glib4_1.26.2-1~ubuntu20.04.1_amd64.deb ... Unpacking libmbim-glib4:amd64 (1.26.2-1~ubuntu20.04.1) over (1.24.8-1~20.04) ... Preparing to unpack .../09-libmm-glib0_1.18.6-1~ubuntu20.04.1_amd64.deb ... Unpacking libmm-glib0:amd64 (1.18.6-1~ubuntu20.04.1) over (1.16.6-2~20.04.1) ... Preparing to unpack .../10-libqmi-proxy_1.30.4-1~ubuntu20.04.1_amd64.deb ... Unpacking libqmi-proxy (1.30.4-1~ubuntu20.04.1) over (1.28.6-1~20.04.1) ... Preparing to unpack .../11-libqmi-glib5_1.30.4-1~ubuntu20.04.1_amd64.deb ... Unpacking libqmi-glib5:amd64 (1.30.4-1~ubuntu20.04.1) over (1.28.6-1~20.04.1) ... Preparing to unpack .../12-modemmanager_1.18.6-1~ubuntu20.04.1_amd64.deb ... Unpacking modemmanager (1.18.6-1~ubuntu20.04.1) over (1.16.6-2~20.04.1) ... Preparing to unpack .../13-snapd_2.55.5+20.04_amd64.deb ... Unpacking snapd (2.55.5+20.04) over (2.54.3+20.04.1ubuntu0.3) ... Preparing to unpack .../14-unattended-upgrades_2.3ubuntu0.3_all.deb ... Unpacking unattended-upgrades (2.3ubuntu0.3) over (2.3ubuntu0.1) ... Preparing to unpack .../15-cloud-init_22.2-0ubuntu1~20.04.3_all.deb ... Unpacking cloud-init (22.2-0ubuntu1~20.04.3) over (22.2-0ubuntu1~20.04.2) ... Setting up snapd (2.55.5+20.04) ... Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ... snapd.failure.service is a disabled or a static unit not running, not starting it. snapd.snap-repair.service is a disabled or a static unit not running, not starting it.