无法在Linux Mint中更新到PHP 5至7? [英] Cannot update to php 5 to 7 in linux mint?
问题描述
我只想将PHP 5更新为PHP 7,添加以下行" sudo add-apt-repository ppa:ondrej/php
"
I just want to update PHP 5 to PHP 7 and I got below error after adding this line "sudo add-apt-repository ppa:ondrej/php
"
不支持添加PPA
Adding PPAs is not supported
我正在使用Linux Mint 17,并且我的Web服务器是Nginx.如何解决这个问题?有没有其他选择
I am using Linux mint 17 and my web server is Nginx. How to fix this? Is there any alternative
推荐答案
要使用 add-apt-repository
,您需要安装 software-properties-common
或 python-software-properties
,只需运行以下命令:
To use the add-apt-repository
you need to install software-properties-common
or python-software-properties
, just run the following command:
sudo apt-get install software-properties-common python-software-properties
然后运行:
sudo add-apt-repository ppa:ondrej/php
替代方法:
您可以将 dotdeb
存储库添加到 sources.list
中,然后安装PHP 7
You can add dotdeb
repository to your sources.list
then install PHP 7
在U& L上遵循此答案.
Follow this answer on U&L.
这篇关于无法在Linux Mint中更新到PHP 5至7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!