Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装php5卷边时的问题_Php_Ubuntu_Curl_Apt Get - Fatal编程技术网

安装php5卷边时的问题

安装php5卷边时的问题,php,ubuntu,curl,apt-get,Php,Ubuntu,Curl,Apt Get,我正试图通过在我的Ubuntu机器上执行以下命令来安装php的curl模块- sudo apt-get install php5-curl 但它并没有安装,我在控制台上收到以下错误消息。你能帮我解释一下这里发生了什么事吗。为什么那些网址是被禁止的 sudo apt-get install php5-curl root@XXXXXXXX:/etc/apt# apt-get install php5-curl Reading package lists... Done Building depen

我正试图通过在我的Ubuntu机器上执行以下命令来安装php的curl模块-

sudo apt-get install php5-curl
但它并没有安装,我在控制台上收到以下错误消息。你能帮我解释一下这里发生了什么事吗。为什么那些网址是被禁止的

sudo apt-get install php5-curl
root@XXXXXXXX:/etc/apt# apt-get install php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libapache2-mod-php5 php5-cli php5-common php5-mysql
Suggested packages:
  php-pear php5-suhosin
The following NEW packages will be installed:
  php5-curl
The following packages will be upgraded:
  libapache2-mod-php5 php5-cli php5-common php5-mysql
4 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
Need to get 6,522kB of archives.
After this operation, 127kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-cli i386 5.3.3-1ubuntu9.10
  403  Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-mysql i386 5.3.3-1ubuntu9.10
  403  Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main libapache2-mod-php5 i386 5.3.3-1ubuntu9.10
  403  Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-common i386 5.3.3-1ubuntu9.10
  403  Forbidden
Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-curl i386 5.3.3-1ubuntu9.10
  403  Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-cli_5.3.3-1ubuntu9.10_i386.deb  403  Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-mysql_5.3.3-1ubuntu9.10_i386.deb  403  Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/libapache2-mod-php5_5.3.3-1ubuntu9.10_i386.deb  403  Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.3.3-1ubuntu9.10_i386.deb  403  Forbidden
Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-curl_5.3.3-1ubuntu9.10_i386.deb  403  Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

如果是,请尝试以下顺序:

sudo apt-get update --fix-missing

sudo apt-get update

sudo apt-get install php5-curl

我将我的发行版从ubuntu 10.10升级到ubuntu 12.04 LTS。它解决了我的问题。

这是我的。去那里寻找解决方案,并尝试阅读。看起来镜像有一些问题,尝试更改apt get repositories,或者因为URL显示您正在运行Ubuntu10.10 maveric m[something]:这是一个非LTS发行版:它一直支持到2012年年中的某个地方。我想最好升级你的发行版