debian安装ssh怎么解决依赖问题?

apt-get install ssh
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libc6: Breaks: locales (< 2.19)
libc6-dev: Depends: libc6 (= 2.7-18lenny7) but 2.19-19 is to be installed
libc6-i686: PreDepends: libc6 (= 2.7-18lenny7) but 2.19-19 is to be installed
locales: Depends: glibc-2.7-1
qpopper: Depends: openbsd-inetd but it is not going to be installed or
inet-superserver
ssh: Depends: openssh-client (>= 1:6.7p1-6) but 1:5.1p1-5 is to be installed
Depends: openssh-server (>= 1:6.7p1-6) but 1:5.1p1-5 is to be installed
PreDepends: dpkg (>= 1.17.5) but 1.14.25 is to be installed
swat: Depends: openbsd-inetd but it is not going to be installed or
inet-superserver
uw-imapd: Depends: openbsd-inetd but it is not going to be installed or
inet-superserver
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

第1个回答  2015-07-18
直接 用aptitude 安装 openssl-server就可以了,如果 要使用ssh登陆远程 机器再安装openssl-client ,8以上版本少用点apt-get ,经常会出现依赖问题,如果 找不到openssl-server,可以去官方站到找个近的源加进去就行了本回答被提问者和网友采纳
相似回答