Public bug reported: We are running on Ubuntu 20.04 and having issue when updating the OS packages. Specifically, the ubuntu-advantage-tools is failing to configure. This just started recently.
Initially the server had no issue - advantage tools were installed and configured: root@testserver> dpkg --list | grep advantage ii ubuntu-advantage-tools 27.1~20.04.1 amd64 management tools for Ubuntu Advantage I ran apt update followed by upgrade and 'ubuntu-advantage-tools' failed to configure: root@testserver> sudo apt-get update 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 [101 kB] Get:4 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB] Fetched 328 kB in 9s (38.3 kB/s) Reading package lists... Done root@testserver> sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: linux-generic linux-headers-generic linux-image-generic The following packages will be upgraded: curl libcurl3-gnutls libcurl4 libglib2.0-0 libglib2.0-bin libglib2.0-data libnss-systemd libpam-systemd libsystemd0 libudev1 networkd-dispatcher systemd systemd-sysv ubuntu-advantage-tools udev 15 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 10 standard security updates Need to get 8,664 kB of archives. After this operation, 54.3 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss-systemd amd64 245.4-4ubuntu3.11 [96.1 kB] Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 udev amd64 245.4-4ubuntu3.11 [1,365 kB] Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libudev1 amd64 245.4-4ubuntu3.11 [78.4 kB] Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-sysv amd64 245.4-4ubuntu3.11 [10.3 kB] Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-systemd amd64 245.4-4ubuntu3.11 [186 kB] Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd amd64 245.4-4ubuntu3.11 [3,807 kB] Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsystemd0 amd64 245.4-4ubuntu3.11 [270 kB] Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-data all 2.64.6-1~ubuntu20.04.4 [6,052 B] Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-bin amd64 2.64.6-1~ubuntu20.04.4 [72.6 kB] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-0 amd64 2.64.6-1~ubuntu20.04.4 [1,287 kB] Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 networkd-dispatcher all 2.1-2~ubuntu20.04.1 [14.6 kB] Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-advantage-tools amd64 27.2.1~20.04.1 [844 kB] Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.6 [161 kB] Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.6 [234 kB] Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.6 [231 kB] Fetched 8,664 kB in 0s (77.5 MB/s) Preconfiguring packages ... Can't exec "/tmp/ubuntu-advantage-tools.config.9EJyW7": Permission denied at /usr/share/perl/5.30/IPC/Open3.pm line 281. open2: exec of /tmp/ubuntu-advantage-tools.config.9EJyW7 configure 27.1~20.04.1 failed: Permission denied at /usr/share/perl5/Debconf/ConfModule.pm line 59. (Reading database ... 111472 files and directories currently installed.) Preparing to unpack .../libnss-systemd_245.4-4ubuntu3.11_amd64.deb ... Unpacking libnss-systemd:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) ... Preparing to unpack .../udev_245.4-4ubuntu3.11_amd64.deb ... Unpacking udev (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) ... Preparing to unpack .../libudev1_245.4-4ubuntu3.11_amd64.deb ... Unpacking libudev1:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) ... Setting up libudev1:amd64 (245.4-4ubuntu3.11) ... (Reading database ... 111472 files and directories currently installed.) Preparing to unpack .../systemd-sysv_245.4-4ubuntu3.11_amd64.deb ... Unpacking systemd-sysv (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) ... Preparing to unpack .../libpam-systemd_245.4-4ubuntu3.11_amd64.deb ... Unpacking libpam-systemd:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) ... Preparing to unpack .../systemd_245.4-4ubuntu3.11_amd64.deb ... Unpacking systemd (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) ... Preparing to unpack .../libsystemd0_245.4-4ubuntu3.11_amd64.deb ... Unpacking libsystemd0:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) ... Setting up libsystemd0:amd64 (245.4-4ubuntu3.11) ... (Reading database ... 111473 files and directories currently installed.) Preparing to unpack .../0-libglib2.0-data_2.64.6-1~ubuntu20.04.4_all.deb ... Unpacking libglib2.0-data (2.64.6-1~ubuntu20.04.4) over (2.64.6-1~ubuntu20.04.3) ... Preparing to unpack .../1-libglib2.0-bin_2.64.6-1~ubuntu20.04.4_amd64.deb ... Unpacking libglib2.0-bin (2.64.6-1~ubuntu20.04.4) over (2.64.6-1~ubuntu20.04.3) ... Preparing to unpack .../2-libglib2.0-0_2.64.6-1~ubuntu20.04.4_amd64.deb ... Unpacking libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.4) over (2.64.6-1~ubuntu20.04.3) ... Preparing to unpack .../3-networkd-dispatcher_2.1-2~ubuntu20.04.1_all.deb ... Unpacking networkd-dispatcher (2.1-2~ubuntu20.04.1) over (2.0.1-1) ... Preparing to unpack .../4-ubuntu-advantage-tools_27.2.1~20.04.1_amd64.deb ... Unpacking ubuntu-advantage-tools (27.2.1~20.04.1) over (27.1~20.04.1) ... Preparing to unpack .../5-curl_7.68.0-1ubuntu2.6_amd64.deb ... Unpacking curl (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) ... Preparing to unpack .../6-libcurl4_7.68.0-1ubuntu2.6_amd64.deb ... Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) ... Preparing to unpack .../7-libcurl3-gnutls_7.68.0-1ubuntu2.6_amd64.deb ... Unpacking libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) ... Setting up networkd-dispatcher (2.1-2~ubuntu20.04.1) ... Setting up libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.4) ... Setting up libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.6) ... Setting up systemd (245.4-4ubuntu3.11) ... Installing new version of config file /etc/dhcp/dhclient-enter-hooks.d/resolved ... Setting up libglib2.0-data (2.64.6-1~ubuntu20.04.4) ... Setting up udev (245.4-4ubuntu3.11) ... update-initramfs: deferring update (trigger activated) Setting up libcurl4:amd64 (7.68.0-1ubuntu2.6) ... Setting up curl (7.68.0-1ubuntu2.6) ... Setting up ubuntu-advantage-tools (27.2.1~20.04.1) ... Installing new version of config file /etc/apt/apt.conf.d/20apt-esm-hook.conf ... Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ... ERROR: File not found '/run/cloud-init/instance-data.json'. Provide a path to instance data json file using --instance-data dpkg: error processing package ubuntu-advantage-tools (--configure): installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1 Setting up systemd-sysv (245.4-4ubuntu3.11) ... Setting up libglib2.0-bin (2.64.6-1~ubuntu20.04.4) ... Setting up libnss-systemd:amd64 (245.4-4ubuntu3.11) ... Setting up libpam-systemd:amd64 (245.4-4ubuntu3.11) ... pam-auth-update: Local modifications to /etc/pam.d/common-*, not updating. pam-auth-update: Run pam-auth-update --force to override. Processing triggers for man-db (2.9.1-1) ... Processing triggers for dbus (1.12.16-2ubuntu2.1) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ... Processing triggers for initramfs-tools (0.136ubuntu6.6) ... update-initramfs: Generating /boot/initrd.img-5.4.0-77-generic Errors were encountered while processing: ubuntu-advantage-tools E: Sub-process /usr/bin/dpkg returned an error code (1) root@testserver> dpkg --list | grep advantage iF ubuntu-advantage-tools 27.2.1~20.04.1 amd64 management tools for Ubuntu Advantage The error appears to be introduced in version 27.2.1~20.04.1. Note none of our internal servers have the missing file: /run/cloud-init/instance-data.json Can someone please confirm if there is a dependency issue in the new package? I am not sure why the tools package would depend on a cloud- init data file. I expect the new advantage-tools package to upgrade and configure without issue, especially since it was already installed and configured to begin with. ** Affects: ubuntu-advantage-tools (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1938097 Title: ubuntu-advantage-tools upgrade fails configure To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1938097/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs