【问题标题】:Ploblem in installing php5-curl安装php5-curl的问题
【发布时间】:2013-12-04 17:31:31
【问题描述】:

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

【问题讨论】:

  • 这属于SuperUser。去那里寻找解决方案,并尝试阅读FAQ
  • 好像那个镜像有问题,尝试更改 apt-get 存储库
  • 因为网址表明您正在运行 ubuntu 10.10(maveric m[something]):这是一个非 LTS 发行版:它一直支持到 2012 年中期。最好升级你的发行版,我猜

标签: php ubuntu curl apt-get


【解决方案1】:

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

【讨论】:

    【解决方案2】:

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

    sudo apt-get update --fix-missing
    
    sudo apt-get update
    
    sudo apt-get install php5-curl
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-28
      • 2023-03-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多