-2
也許它是一個老問題,但我在安裝php 7在我的ubuntu環境中遇到一些困難。現在我有Ubuntu的15.10,這是PHP版本:在Linux上升級PHP版本5.6 - > 7問題
PHP 5.6.11-1ubuntu3.4 (cli)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
我試過這個方法進行安裝:
sudo add-apt-repository ppa:ondrej/php
,這是結果:afther我執行
gpg: keyring `/tmp/tmpp_pz87v9/secring.gpg' created
gpg: keyring `/tmp/tmpp_pz87v9/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpp_pz87v9/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
這個:sudo apt-get update
然後:
sudo apt-get install php7.0
而且最後一個命令的結果是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.0
E: Couldn't find any package by regex 'php7.0'
我不知道我應該怎麼做?你可以幫我嗎? thx
請檢查該主題:http://askubuntu.com/questions/705880/how-to-install-php-7 –
'update'是否成功運行? –
是的,更新成功 –