I'm now using PHP 5.4 on my Debian 7 Wheezy server. For the newest Laravel version I have to update to PHP 7.0.
我现在在我的Debian 7气喘吁吁的服务器上使用PHP 5.4。对于最新的Laravel版本,我必须更新到PHP 7.0。
So I followed a small tutorial on how to update my PHP version. I have to use a PPA because the PHP7.0 isn't officialy released yet.
因此,我遵循了一个关于如何更新PHP版本的小教程。我必须使用PPA,因为PHP7.0还没有正式发布。
I did the following steps:
我做了以下步骤:
Adding the PPA
添加PPA
add-apt-repository ppa:ondrej/php
add-apt-repository ppa:ondrej / php
Updating all the packages:
更新所有的包:
apt-get update && apt-get upgrade
Installing the package
安装包
apt-get install php7.0
But now I get the following error:
但是现在我得到了以下错误:
Unable to locate package php7.0
Couldn't find any package by regex: 'php7.0'
I have no idea what goes wrong and I've spend some hours trying solutions I found on internet but nothing works.
我不知道哪里出了问题,我花了好几个小时在网上寻找解决方案,但都没有奏效。
Does someone know a solution or an alternative to install PHP 7 on Debian?
有人知道在Debian上安装PHP 7的解决方案或替代方案吗?
1 个解决方案
#1
2
This is a ppa for Ubuntu, therefore it may be not be compatitble with Debian as these packages are built for specific Ubuntu's version.
这是Ubuntu的一个ppa,因此它可能与Debian不兼容,因为这些包是为Ubuntu的特定版本而构建的。
You can view list of available packages inside this ppa herE https://launchpad.net/~ondrej/+archive/ubuntu/php
您可以在这里查看这个ppa中的可用包列表,https://launchpad.net/~ondrej/+archive/ubuntu/php
As you can see, there's no php7.0 package build for debian, it's just Ubuntu.
正如您所看到的,debian没有php7.0包构建,它只是Ubuntu。
#1
2
This is a ppa for Ubuntu, therefore it may be not be compatitble with Debian as these packages are built for specific Ubuntu's version.
这是Ubuntu的一个ppa,因此它可能与Debian不兼容,因为这些包是为Ubuntu的特定版本而构建的。
You can view list of available packages inside this ppa herE https://launchpad.net/~ondrej/+archive/ubuntu/php
您可以在这里查看这个ppa中的可用包列表,https://launchpad.net/~ondrej/+archive/ubuntu/php
As you can see, there's no php7.0 package build for debian, it's just Ubuntu.
正如您所看到的,debian没有php7.0包构建,它只是Ubuntu。