0 debian apt dependencies software-installation backports
我正在尝试在我的服务器 (Debian8) 上安装一些软件包,对于其中一些软件包,我总是遇到依赖问题。
例如,我已经执行了这个命令:
apt-get install jetty9
Run Code Online (Sandbox Code Playgroud)
并且它回答我问了不可能的事情并说依赖性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.
Run Code Online (Sandbox Code Playgroud)
这是我的 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
Run Code Online (Sandbox Code Playgroud)
您的 jetty9 包正在使用 backports,因为它可以从bpo8字符串中看出。
由于您已经在 sources.list 中配置了 jessie-backports,请执行以下操作:
sudo apt-get update
sudo apt-get -t jessie-backports jetty9
Run Code Online (Sandbox Code Playgroud)
这-t jessie backports是 apt 使用 jessie-backports 存储库的提示。
还要检查:
https://packages.debian.org/jessie-backports/jetty9
backports.debian.org "Backports 是从下一个 Debian 版本(称为“测试”)中提取的包,经过调整和重新编译以在 Debian 稳定版上使用。因为该包也存在于下一个 Debian 版本中,所以您可以轻松升级您的 stable+一旦下一个 Debian 版本发布,就会向后移植系统。”
| 归档时间: |
|
| 查看次数: |
465 次 |
| 最近记录: |