Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't install php 7.1

devall@giga:~$ sudo apt-get install php7.1 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php7.1
E: Couldn't find any package by glob 'php7.1'
E: Couldn't find any package by regex 'php7.1'

I am trying to install php 7.1 , tried almost everything...

sudo apt-add-repository ppa:ondrej/php
sudo apt-get update

reinstalled ubuntu twice.. still same error. #help

like image 770
Giga Todadze Avatar asked Oct 11 '25 13:10

Giga Todadze


1 Answers

try with software-properties-common

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt search php7
sudo apt install php7.1
php -v
like image 86
Nathanael Avatar answered Oct 14 '25 05:10

Nathanael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!