问题
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