php - 安装 GD Toolkit 时出错

标签 php ubuntu gd apt-get php-gd

我一直在尝试在我的 Ubuntu VM 上安装 GD 工具包。操作很简单:

sudo apt-get install php5-gd

但是,当我运行此程序时,我收到一个包的 404(未找到错误):

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  php5-gd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 38.8 kB of archives.
After this operation, 163 kB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-gd amd64 5.3.10-1ubuntu3.1
  404  Not Found [IP: 91.189.92.153 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main php5-gd amd64 5.3.10-1ubuntu3.1
  404  Not Found [IP: 91.189.92.151 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-gd_5.3.10-1ubuntu3.1_amd64.deb  404  Not Found [IP: 91.189.92.151 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

有人遇到过这个问题吗?

最佳答案

从 user1190992 得到答案 apt-get 已经过时了......

这个命令成功了:

sudo apt-get update

关于php - 安装 GD Toolkit 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11581511/

相关文章:

php - 将 Javascript 正则表达式转换为 PHP

ubuntu -/usr/bin/ld : cannot find -lssh2 collect2: error: ld returned 1 exit status

javascript - 无法通过 SSH 连接到 MySQL

php - 生成 HTML 正文和 PDF 附件时的电子邮件问题

php - 使用 PHP 合并图像时的图像透明度和 alpha

php - 转换mysql unix时间并使用BETWEEN

php - vuejs 类别和关键字过滤器

php imagecopyresampled 问题

php - 从 MYSQL 数据库获取两个日期之间的记录

php - 基于文本PHP的动态图像