ubuntu12.04.5安装openssh-server所引发的血案
剛安裝好的ubuntu12.04.5在安裝openssh-server之后,安裝其他軟件都安裝不了,如下:
root@ubuntu:/home/lancer/software/ssh# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
openssh-server : Depends: openssh-client (= 1:5.9p1-5ubuntu1) but 1:5.9p1-5ubuntu1.7 is to be installed
Recommends: ssh-import-id but it is not going to be installed
vim : Depends: vim-runtime (= 2:7.3.429-2ubuntu2.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@ubuntu:/home/lancer/software/ssh#
root@ubuntu:/home/lancer/software/ssh# apt-get remove openssh-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
openssh-server : Depends: openssh-client (= 1:5.9p1-5ubuntu1) but it is not going to be installed
Recommends: ssh-import-id but it is not going to be installed
ssh : Depends: openssh-client but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
?
根據網上眾多教程,執行什么。。。
以上都沒有解決。安裝其他任何軟件還是提示有openssh-server : Depends: openssh-client (= 1:5.9p1-5ubuntu1) but it is not going to be installed
這是因為安裝的openssh-server所依賴的openssh-client版本不對,所以會提示這個錯誤。
解決的方法就是安裝相應的版本即可。
sudo apt-get install openssh-clien=1:5.9p1-5ubuntu1
?
轉載于:https://www.cnblogs.com/lancersworld/p/4992940.html
總結
以上是生活随笔為你收集整理的ubuntu12.04.5安装openssh-server所引发的血案的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 当装了两个tomcat后,如何修改tom
- 下一篇: Xcode error: confl