Skip to content

Did you know?

The ondrej/php PPA has no Ubuntu 26.04 builds yet, so only PHP 8.5 installs with apt.

Ubuntu's own PHP 8.5 needs no PPA. For 8.4 or older, use Docker or Ubuntu 24.04 for now.

  • Packages
  • Applies to Ubuntu 26.04
  • Last checked

Explained

On Ubuntu 24.04 and older, ppa:ondrej/php is the usual way to install PHP 8.4, 8.3, 7.4 and other branches. On Ubuntu 26.04 (resolute) the PPA has no packages yet. add-apt-repository still adds it without complaint, but apt quietly skips it and the install fails:

sudo apt install php8.4
E: Unable to locate package php8.4

Ubuntu 26.04 itself ships PHP 8.5 in its main repository, so sudo apt install php8.5 works without any PPA. To check whether 26.04 builds have arrived, request the PPA’s release file. It returns 404 until they are published:

curl -sI https://ppa.launchpadcontent.net/ondrej/php/ubuntu/dists/resolute/Release | head -1

Avoid pointing the PPA at noble to get the 24.04 packages: they are built against Ubuntu 24.04 libraries, and mixing releases causes dependency conflicts. Until 26.04 builds land, run older PHP versions in Docker (php:8.4-fpm) or on an Ubuntu 24.04 server.

Learn more

← All tech tips · Suggest a fix

Back to top