如何在 Ubuntu 19.04 上安装 php7.4? [英] How can I install php7.4 on Ubuntu 19.04?

查看:52
本文介绍了如何在 Ubuntu 19.04 上安装 php7.4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

添加ppaondrej/php后,我尝试sudo apt-get install php7.4,但输出是

After adding the ppa ondrej/php, I try sudo apt-get install php7.4, but the output is

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php7.4
E: Couldn't find any package by glob 'php7.4'
E: Couldn't find any package by regex 'php7.4'

我已经检查过,应该使用该命令安装一个软件包,但我一定是做错了什么?

I have checked and there is a package that should install with that command, but I must be doing something wrong?

推荐答案

您是否尝试过更新您的代表?

have you tried updating your rep?

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.4
php -v

我没有引起足够的重视,ubuntu 19.04 尚不存在此软件包:

I didn't pay enough attention, this package doesn't exist yet for ubuntu 19.04:

php7.4  7.4.2-6+ubuntu19.10.1+deb.sury.org+1    Ondrej Surý (2020-02-05)
php7.4  7.4.2-6+ubuntu18.04.1+deb.sury.org+1    Ondrej Surý (2020-02-05)
php7.4  7.4.2-6+ubuntu16.04.1+deb.sury.org+1    Ondrej Surý (2020-02-05)

这篇关于如何在 Ubuntu 19.04 上安装 php7.4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆