我正在运行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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。