这经常发生在我身上。我去安装一个程序,它说我缺少某些依赖项。然后我运行 apt-get build-dep 并收到如下错误消息:
sudo apt-get build-dep gnome-shell
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have unmet dependencies:
libgjs-dev: Depends: xulrunner-dev (< 1.9.2.4~) but 1.9.2.10+build1+nobinonly-0ubuntu0.10.04.1 is to be installed
librsvg2-dev: Depends: librsvg2-2 (= 2.26.2-0ubuntu1) but 2.26.3-0ubuntu1 is to be installed
E: Build-dependencies for gnome-shell could not be satisfied.
当我认为这正是 build-dep 旨在解决的问题时,我应该怎么做才能解决这个问题。谢谢。
apt-get build-dep
旨在供开发人员用于安装包的构建依赖项;即编译包源代码所需的包。关于未满足的依赖关系问题,根据您发布的版本号,您似乎有过时的包信息,可以通过运行来修复
sudo apt-get update
,或者您没有启用 lucid-updates 或 lucid-security 存储库。有关在 Ubuntu 中启用其他存储库的帮助,请参阅https://help.ubuntu.com/community/Repositories/Ubuntu。