0

我正在尝试通过在我的 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?
4

2 回答 2

0

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

于 2013-12-04T09:22:34.983 回答
-1

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

sudo apt-get update --fix-missing

sudo apt-get update

sudo apt-get install php5-curl
于 2013-11-28T12:24:20.120 回答