All reverified against the new versions (versions in log below).
$ lxc exec apt-cosmic -- apt upgrade apt libapt-pkg5.0 -tnow -o APT::Install::Post-Invoke-Success::="/bin/echo TEST1815761"
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt is already the newest version (1.7.4).
libapt-pkg5.0 is already the newest version (1.7.4).
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761
$ lxc exec apt-bionic -- apt upgrade apt libapt-pkg5.0 -tnow -o APT::Install::Post-Invoke-Success::="/bin/echo TEST1815761"
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt is already the newest version (1.6.10).
libapt-pkg5.0 is already the newest version (1.6.10).
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761
$ lxc exec apt-xenial -- apt upgrade apt libapt-pkg5.0 -tnow -o APT::Install::Post-Invoke-Success::="/bin/echo TEST1815761"
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt is already the newest version (1.2.31).
libapt-pkg5.0 is already the newest version (1.2.31).
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761
$ lxc exec apt-trusty -- apt upgrade apt libapt-pkg4.12 -tnow -o APT::Install::Post-Invoke-Success::="/bin/echo TEST1815761"
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
apt is already the newest version.
libapt-pkg4.12 is already the newest version.
The following packages were automatically installed and are no longer required:
libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761
All reverified against the new versions (versions in log below).
$ lxc exec apt-cosmic -- apt upgrade apt libapt-pkg5.0 -tnow -o APT::Install: :Post-Invoke- Success: :="/bin/ echo TEST1815761"
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt is already the newest version (1.7.4).
libapt-pkg5.0 is already the newest version (1.7.4).
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761
$ lxc exec apt-bionic -- apt upgrade apt libapt-pkg5.0 -tnow -o APT::Install: :Post-Invoke- Success: :="/bin/ echo TEST1815761"
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt is already the newest version (1.6.10).
libapt-pkg5.0 is already the newest version (1.6.10).
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761
$ lxc exec apt-xenial -- apt upgrade apt libapt-pkg5.0 -tnow -o APT::Install: :Post-Invoke- Success: :="/bin/ echo TEST1815761"
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt is already the newest version (1.2.31).
libapt-pkg5.0 is already the newest version (1.2.31).
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761
$ lxc exec apt-trusty -- apt upgrade apt libapt-pkg4.12 -tnow -o APT::Install: :Post-Invoke- Success: :="/bin/ echo TEST1815761"
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
apt is already the newest version.
libapt-pkg4.12 is already the newest version.
The following packages were automatically installed and are no longer required:
libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761
$ lxc exec apt-trusty -- apt-cache policy apt archive. ubuntu. com/ubuntu/ trusty- proposed/ main amd64 Packages dpkg/status 0.1ubuntu2. 20 0 archive. ubuntu. com/ubuntu/ trusty-updates/main amd64 Packages 0.1ubuntu2. 19 0 security. ubuntu. com/ubuntu/ trusty- security/ main amd64 Packages archive. ubuntu. com/ubuntu/ trusty/main amd64 Packages
apt:
Installed: 1.0.1ubuntu2.22
Candidate: 1.0.1ubuntu2.22
Version table:
*** 1.0.1ubuntu2.22 0
500 http://
100 /var/lib/
1.
500 http://
1.
500 http://
1.0.1ubuntu2 0
500 http://