我正在使用一台 Linux Mint 机器。我想在上面安装 Laravel。
当我搜索这个时,我得到了这个命令:curl -sS https://getcomposer.org/installer | php from "https://getcomposer.org/download/"
放入终端,但它给了我这个:
The program 'php' is currently not installed. You can install it by typing:
sudo apt-get install php5-cli
The program 'curl' is currently not installed. You can install it by typing:
sudo apt-get install curl
之后我做了sudo apt-get install curl
libcurl3 curl
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcurl3 i386 7.27.0-1ubuntu1.9
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libcurl3 i386 7.27.0-1ubuntu1.9
404 Not Found [IP: 91.189.91.14 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main curl i386 7.27.0-1ubuntu1.9
404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl3_7.27.0-1ubuntu1.9_i386.deb 404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.27.0-1ubuntu1.9_i386.deb 404 Not Found [IP: 91.189.91.14 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
得到这个未成功安装curl
我怎样才能成功安装这些东西以及 Composer 和 Laravel?
答案1
您正在使用的 Ubuntu 版本(Quantal,12.10)是不再支持自5月16日起。因此您无法再为其下载软件包。
您可以从安装 DVD 进行安装,或者使用curl
下载两者的源代码并从源代码编译它们。php
wget
不过,我建议您升级(或降级)到受支持的 Ubuntu 版本(14.04、12.04),因为如果您继续使用 12.10,您将缺少安全升级