Unable to update from 5.0 to 5.1.x (php7.2-intl)

There are leftover config files from a php7.2-intl package with non-matching version string. I recognised those two conflicting PHP7.2 versions on your system already last time, wherever this comes from. Please try to install it manually, purging the leftover first:

apt purge php7.2-intl
apt update
apt install php7.2-intl

Although... now I see and verified the issue that you faced before with this inconsistent Ubuntu repo: Can't update to 5.0 (php7.2-intl) - #33 by MichaIng
It's still the same, the package lists contain PHP 7.2.3 packages while there are 7.2.24 packages stored in the pool. Strangely you're now on the other side of the issue:

  • Last time you had PHP 7.2.3 while the intl meta package wanted to pull only the intl package as 7.2.24.
  • Now all your packages (however this was possible with the apparent lists) are PHP 7.2.24 but only intl is missing and the meta package wants to install the 7.2.3 package which fails for the same reason, just the other way round...
  • If the list contains non-matching packages, then meta or non-meta probably doesn't make a difference anyway...

The package website still shows 7.2.24 for x86 systems and 7.2.3 for ARMs: https://packages.ubuntu.com/bionic/php7.2-intl
But that does not match the list files I just downloaded and scraped for amd64, all 7.2.3... a mess that they seem to switch back and forth or what.

Ah forget about the repo, install the correct version manually:

cd /tmp
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/php7.2/php7.2-intl_7.2.24-0ubuntu0.18.04.6_amd64.deb
dpkg -i php7.2-intl_7.2.24-0ubuntu0.18.04.6_amd64.deb
rm php7.2-intl_7.2.24-0ubuntu0.18.04.6_amd64.deb
phpenmod intl

The Pi-hole installer/updater is satisfied then as well.

2 Likes