我正在尝试在服务器(Debian8)上安装一些软件包,对于其中的某些软件包,我总是遇到依赖关系问题。
例如,我已经执行了以下命令:
apt-get install jetty9
它回答我问了不可能的事情,并说依赖性libjetty9-extra-java
得不到满足。我不明白为什么。
有人可以告诉我为什么会出现这种错误吗?
这是错误:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
jetty9 : Depends: libjetty9-extra-java (>= 9.2.14-1~bpo8+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
这是我的sources.list:
#de://debian.mirrors.ovh.neb httpt/debian/ jessie main
#deb-src http://debian.mirrors.ovh.net/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
# jessie-updates, previously known as 'volatile'
deb http://debian.mirrors.ovh.net/debian/ jessie-updates main
deb-src http://debian.mirrors.ovh.net/debian/ jessie-updates main
# jessie-backports, previously on backports.debian.org
deb http://debian.mirrors.ovh.net/debian/ jessie-backports main
deb-src http://debian.mirrors.ovh.net/debian/ jessie-backports main
deb http://debian.mirrors.ovh.net/debian/ jessie main contrib non-free
deb-src http://debian.mirrors.ovh.net/debian/ jessie main contrib non-free
您的jetty9软件包正在使用反向端口,如bpo8
字符串所示。
由于您已经在sources.list中配置了jessie-backport,因此请执行以下操作:
sudo apt-get update
sudo apt-get -t jessie-backports jetty9
这-t jessie backports
是易于使用jessie-backports存储库的提示。
还要检查:
https://packages.debian.org/jessie-backports/jetty9
backports.debian.org“反向移植是从下一个Debian发行版(称为“测试”)中提取的软件包,经过调整和重新编译后可以在Debian稳定版中使用。由于该软件包也存在于下一个Debian发行版中,因此您可以轻松升级您的稳定版在下一个Debian版本发布后,将向后移植系统。”
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句