Linux-ubuntuでVimのインストールに失敗しました.The following packages have unmet dependencies:vim:Depends:vim-commonと報告します.
2116 ワード
エラーコマンドライン
root@ubuntu:/etc/apt# apt install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
vim : Depends: vim-common (= 2:7.4.052-1ubuntu3.1) but 2:8.0.1453-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
の原因となる
vimは既にインストールされていますが、インストールに成功しませんでした.
ソリューション
一反三を挙げる
インストールコマンドを実行するときは、このようなエラーを報告するだけで、removeしてから再度installする必要があります.次はapt-get install openssh-clientレポートのエラーです.解決策は同じです.
ポイントは次のとおりです.壊れたバッグがあることを示します
The following packages have unmet dependencies:
openssh-server : Depends: openssh-client (= 1:6.6p1-2ubuntu2.13)
Recommends: ssh-import-id but it is not going to be installed
E: Unable to correct problems, you have held broken packages.