如何在ubuntu上安装php5-gd?

前端之家收集整理的这篇文章主要介绍了如何在ubuntu上安装php5-gd?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在运行ubuntu 10.04.

我刚刚运行命令,

sudo apt-get install PHP5-gd

但它给了我这个错误

The following packages have unmet dependencies:
  PHP5-gd: Depends: PHP5-common (= 5.3.2-1ubuntu4) but 5.3.2-1ubuntu4.5 is to be installed
E: Broken packages

当尝试在PHP5-common上进行apt-get安装时,但它说我已经有了最新版本.我如何安装PHP5-gd?

附加信息
这是我在做sudo apt-get update之后看到的grep主要

Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_US
Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en_US
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/main Sources
Get:5 http://dl.google.com stable/main Packages [1,093B]
Get:6 http://dl.google.com stable/main Packages [737B]
更新包索引文件(当前 php5-common 5.3.2-1ubuntu4.7):
$sudo apt-get update
$sudo apt-get install PHP5-gd

检查/etc/apt/sources.list中的跟随字符串:

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb http://security.ubuntu.com/ubuntu lucid-security main restricted

固定:

$sudo -s
# echo "deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted" >> /etc/apt/sources.list
# echo "deb http://security.ubuntu.com/ubuntu lucid-security main restricted" >> /etc/apt/sources.list
# apt-get update
# apt-get install PHP5-gd
原文链接:https://www.f2er.com/ubuntu/348287.html

猜你在找的Ubuntu相关文章