Linux Debian - 未满足的依赖项
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18257220/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Linux Debian - unmet dependencies
提问by Marcin
How can I remove unmet dependencies on my Linux Debian?
如何删除 Linux Debian 上未满足的依赖项?
Result of apt-get -f installis following:
apt-get -f install 的结果如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libc-bin: Breaks: libc6 (< 2.10) but 2.7-18lenny7 is installed
libc-dev-bin: Depends: libc6 (> 2.13) but 2.7-18lenny7 is installed
Recommends: manpages-dev but it is not installed
libssh2-1: Depends: libgcrypt11 (>= 1.4.2) but 1.4.1-1 is installed
libssh2-1-dev: Depends: libssh2-1 (= 0.18-1) but 1.2.6-1 is installed
locales: Depends: glibc-2.13-1
nscd: Depends: libc6 (> 2.13) but 2.7-18lenny7 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
阅读包裹清单...完成
构建依赖树
读取状态信息...完成
更正依赖项...失败。
以下软件包具有未满足的依赖项:
libc-bin:中断:libc6 (< 2.10) 但安装了 2.7-18lenny7
libc-dev-bin:取决于:libc6 (> 2.13) 但已安装 2.7-18lenny7
Recommends: manpages-dev but it is not installed
libssh2-1:取决于:libgcrypt11 (>= 1.4.2) 但已安装 1.4.1-1
libssh2-1-dev:取决于:libssh2-1 (= 0.18-1) 但已安装 1.2.6-1
语言环境:取决于:glibc-2.13-1
nscd:取决于:libc6 (> 2.13) 但已安装 2.7-18lenny7
E: 错误,pkgProblemResolver::Resolve 生成中断,这可能是由保留的包引起的。
E: 无法纠正依赖关系
uname -rresult:
uname -r结果:
2.6.18-274.7.1.el5.028stab095.1
2.6.18-274.7.1.el5.028stab095.1
I also tried to apt-get remove libssh2-1, apt-get remove libc-dev-binetc. but it doesn't work for me. It's annoying and I cannot install any other packages.
我也尝试apt-get remove libssh2-1,apt-get remove libc-dev-bin等,但它对我不起作用。这很烦人,我无法安装任何其他软件包。
Any suggestions how can I fix that?
任何建议我该如何解决?
采纳答案by user2686456
Try follow this step 1 by 1
尝试按照此步骤 1 by 1
apt-get autoclean
apt-get 自动清理
apt-get -f install
apt-get -f 安装
dpkg --configure -a
dpkg --configure -a
apt-get -f install
apt-get -f 安装
apt-get -u dist-upgrade
apt-get -u dist-upgrade
or try "aptitude" instead of "apt-get"
或尝试“aptitude”而不是“apt-get”