简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM