===== Setup ====== cow:~ $ lxc launch ubuntu:jammy jammy Creating jammy Starting jammy cow:~ $ lxc config device add jammy artifacts disk source=/home/james/cloud-artifacts path=/root/a # debs for older versions Device artifacts added to jammy cow:~ $ lxc shell jammy root@jammy:~# cd a/debs ===== Failure case ===== root@jammy:~/a/debs# dpkg -i cloud-init_23.1.2-0ubuntu0~22.04.1_all.deb dpkg: warning: downgrading cloud-init from 23.2.2-0ubuntu0~22.04.1 to 23.1.2-0ubuntu0~22.04.1 (Reading database ... 33871 files and directories currently installed.) Preparing to unpack cloud-init_23.1.2-0ubuntu0~22.04.1_all.deb ... Unpacking cloud-init (23.1.2-0ubuntu0~22.04.1) over (23.2.2-0ubuntu0~22.04.1) ... Setting up cloud-init (23.1.2-0ubuntu0~22.04.1) ... Installing new version of config file /etc/cloud/cloud.cfg ... Installing new version of config file /etc/cloud/templates/chrony.conf.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.centos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.cos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.fedora.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.freebsd.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-leap.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-microos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-tumbleweed.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.photon.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.rhel.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sle-micro.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sle_hpc.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sles.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.fedora.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.freebsd.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.opensuse.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.photon.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.rhel.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.sles.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/ntpd.conf.openbsd.tmpl ... Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ... Processing triggers for man-db (2.10.2-1) ... root@jammy:~/a/debs# dpkg -i cloud-init_23.2.1-0ubuntu0~22.04.1_all.deb (Reading database ... 33876 files and directories currently installed.) Preparing to unpack cloud-init_23.2.1-0ubuntu0~22.04.1_all.deb ... Unpacking cloud-init (23.2.1-0ubuntu0~22.04.1) over (23.1.2-0ubuntu0~22.04.1) ... dpkg: warning: unable to delete old directory '/etc/NetworkManager/dispatcher.d': Directory not empty dpkg: warning: unable to delete old directory '/etc/NetworkManager': Directory not empty Setting up cloud-init (23.2.1-0ubuntu0~22.04.1) ... Installing new version of config file /etc/cloud/cloud.cfg ... Installing new version of config file /etc/cloud/templates/chrony.conf.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.centos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.cos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.fedora.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.freebsd.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-leap.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-microos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-tumbleweed.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.photon.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.rhel.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sle-micro.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sle_hpc.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sles.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.fedora.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.freebsd.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.opensuse.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.photon.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.rhel.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.sles.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/ntpd.conf.openbsd.tmpl ... Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ... Processing triggers for man-db (2.10.2-1) ... root@jammy:~/a/debs# ls /etc/NetworkManager/dispatcher.d/ hook-network-manager root@jammy:~/a/debs# ===== Success case ===== root@jammy:~/a/debs# dpkg -i cloud-init_23.1.2-0ubuntu0~22.04.1_all.deb dpkg: warning: downgrading cloud-init from 23.2.1-0ubuntu0~22.04.1 to 23.1.2-0ubuntu0~22.04.1 (Reading database ... 33874 files and directories currently installed.) Preparing to unpack cloud-init_23.1.2-0ubuntu0~22.04.1_all.deb ... Unpacking cloud-init (23.1.2-0ubuntu0~22.04.1) over (23.2.1-0ubuntu0~22.04.1) ... Setting up cloud-init (23.1.2-0ubuntu0~22.04.1) ... Installing new version of config file /etc/cloud/cloud.cfg ... Installing new version of config file /etc/cloud/templates/chrony.conf.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.centos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.cos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.fedora.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.freebsd.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-leap.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-microos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-tumbleweed.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.photon.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.rhel.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sle-micro.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sle_hpc.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sles.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.fedora.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.freebsd.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.opensuse.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.photon.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.rhel.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.sles.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/ntpd.conf.openbsd.tmpl ... Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ... Processing triggers for man-db (2.10.2-1) ... root@jammy:~/a/debs# echo deb "http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-proposed main" | tee /etc/apt/sources.list.d/proposed.list deb http://archive.ubuntu.com/ubuntu jammy-proposed main root@jammy:~/a/debs# apt update; apt install cloud-init Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] Get:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB] Get:4 http://archive.ubuntu.com/ubuntu jammy-proposed InRelease [270 kB] Get:5 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB] Get:6 http://archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB] Get:7 http://archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB] Get:8 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB] Get:9 http://archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB] Get:10 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B] Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1055 kB] Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [232 kB] Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [15.6 kB] Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [967 kB] Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [156 kB] Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [532 B] Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [989 kB] Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [216 kB] Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [21.9 kB] Get:20 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [41.6 kB] Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [9768 B] Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [472 B] Get:23 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [41.7 kB] Get:24 http://archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [10.5 kB] Get:25 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B] Get:26 http://archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B] Get:27 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [24.3 kB] Get:28 http://archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.4 kB] Get:29 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [640 B] Get:30 http://archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B] Get:31 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages [184 kB] Get:32 http://archive.ubuntu.com/ubuntu jammy-proposed/main Translation-en [40.5 kB] Get:33 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 c-n-f Metadata [2796 B] Get:34 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Get:35 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [854 kB] Get:36 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [175 kB] Get:37 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.4 kB] Get:38 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [951 kB] Get:39 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [153 kB] Get:40 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [532 B] Get:41 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [788 kB] Get:42 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [144 kB] Get:43 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.7 kB] Get:44 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [36.5 kB] Get:45 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [7060 B] Get:46 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B] Fetched 28.1 MB in 9s (2986 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 45 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree... Done Reading state information... Done 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 1 upgraded, 0 newly installed, 0 to remove and 44 not upgraded. Need to get 541 kB of archives. After this operation, 176 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 cloud-init all 23.3.1-0ubuntu1~22.04.1 [541 kB] Fetched 541 kB in 0s (1880 kB/s) Preconfiguring packages ... (Reading database ... 33876 files and directories currently installed.) Preparing to unpack .../cloud-init_23.3.1-0ubuntu1~22.04.1_all.deb ... Unpacking cloud-init (23.3.1-0ubuntu1~22.04.1) over (23.1.2-0ubuntu0~22.04.1) ... dpkg: warning: unable to delete old directory '/etc/NetworkManager/dispatcher.d': Directory not empty dpkg: warning: unable to delete old directory '/etc/NetworkManager': Directory not empty Setting up cloud-init (23.3.1-0ubuntu1~22.04.1) ... Installing new version of config file /etc/cloud/cloud.cfg ... Installing new version of config file /etc/cloud/templates/chrony.conf.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.centos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.cos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.fedora.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.freebsd.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-leap.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-microos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-tumbleweed.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.photon.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.rhel.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sle-micro.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sle_hpc.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sles.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.fedora.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.freebsd.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.opensuse.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.photon.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.rhel.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.sles.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/ntpd.conf.openbsd.tmpl ... Removing obsolete conffile /etc/NetworkManager/dispatcher.d/hook-network-manager ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ... Scanning processes... No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. root@jammy:~/a/debs# ls /etc/NetworkManager/dispatcher.d/ root@jammy:~/a/debs#