Report this

What is the reason for this report?

Upgrade to latest php from php7.4 - nginx Ubuntu 20

Posted on August 13, 2025

I’m trying to upgrade PHP from 7.4 to the latest stable version on Ubuntu 20.04.

However, when I run:

sudo apt-get install php8.1

I get the following error:

N: Unable to locate package php8.1 N: Couldn’t find any package by glob ‘php8.1’ N: Couldn’t find any package by regex ‘php8.1’



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.