sudo apt-add-repository ppa:ondrej/php //添加这个源 sudo apt-get update sudo apt-get install php7.0-curl //这时成功安装php7.0-curl