"Held back" during update

I’m running Zorin 15.3 Ultimate. I’ve installed PHP 7.4 from Ondrej Sury. This morning I got a Software Update warning that there were pending updates but some couldn’t be completed. I dropped to the command line and ran apt update && apt upgrade. I was told this:
The following packages have been kept back: libxml2
I ran …
apt list -a --upgradeable
… and was shown …
libxml2/bionic 2.9.10+dfsg-5+ubuntu18.04.1+deb.sury.org+3 amd64 [upgradable from: 2.9.4+dfsg1-6.1ubuntu1.3]
libxml2/bionic-updates,bionic-security,now 2.9.4+dfsg1-6.1ubuntu1.3 amd64 [installed,upgradable to: 2.9.10+dfsg-5+ubuntu18.04.1+deb.sury.org+3]
libxml2/bionic 2.9.4+dfsg1-6.1ubuntu1 amd64

What should I do?

You have some options;

sudo apt-get --with-new-pkgs upgrade

Or if you want to go all out:

sudo apt dist-upgrade

And if you are a total wildthing, like me:

sudo apt full-upgrade

If the dependencies of a package are changed, then those packages in an update are held back. You can then instruct the system to get the New Packages.
The dist-upgrade command instructs the system to install any updates that do not require the removal / replacement of existing files.
The full-upgrade command instructs to install any updates, even if existing files must be removed / replaced.

1 Like