For me and several commenters on Pablo's answer,
sudo apt-get --with-new-pkgs upgrade # No effect
had no effect. I do not care to have my package marked as manually installed, so I did the following, using kept back package docker-ce
as an example:
sudo apt install docker-ce # Answer no, do not install
Abort the installation by answering n
. Observe the new package(s) that would have been installed, and install them:
sudo apt install docker-ce-rootless-extras
Now apt upgrade
will upgrade the previously kept back package:
sudo apt upgrade # Upgrades docker-ce