Cannot update to php 5 to 7 in linux mint?

柔情痞子 提交于 2021-01-29 03:48:11

问题


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"

Adding PPAs is not supported

I am using Linux mint 17 and my web server is Nginx. How to fix this? Is there any alternative


回答1:


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

Then run:

sudo add-apt-repository ppa:ondrej/php

Alternative methode:

You can add dotdeb repository to your sources.list then install PHP 7

Follow this answer on U&L.



来源:https://stackoverflow.com/questions/40089495/cannot-update-to-php-5-to-7-in-linux-mint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!