Home > Software design >  Installling PHP 8.1 on Ubuntu 22.10
Installling PHP 8.1 on Ubuntu 22.10

Time:07-21

i'm having real trouble installing php8.1 on Ubuntu 22.10. I did this :

sudo apt update && apt upgrade -y
sudo add-apt-repository ppa:ondrej/php
sudo apt update

When i execute the command:

sudo apt install php8.1 -y

I get :

E: Unable to locate package php8.1

E: Couldn't find any package by glob 'php8.1'

which i dont understand,because when i visit the repo http://ppa.launchpad.net/ondrej/php/ubuntu i see php8.1 files there(http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.1/). I tried removing and adding the andrej repo but still it didnt work. What is wrong?Has someone an idea?

CodePudding user response:

According to a search in the package repository, you don't need to add any additional repositories to install php 8.1 on Ubuntu 22.10.

Therefore, you should be able to install php 8.1 by using the following command.

sudo apt install php
  • Related