安装vim提示Depends: libpython3.5 (>= 3.5.0~b1) but it is not going to be installed的解决方法

转载至https://www.cnblogs.com/suanmiaoup/p/12294431.html

Ubuntu安装vim提示:

The following packages have unmet dependencies:
vim : Depends: vim-common (= 2:7.4.1689-3ubuntu1.3) but 2:8.0.1453-1ubuntu1.1 is to be installed
Depends: libpython3.5 (>= 3.5.0~b1) but it is not going to be installed

解决方法:

sudo apt-get remove vim-common卸载vim-common(还是出现错误,直接进行以下步骤即可)

还是会提示依赖libpython,接着sudo apt-get -f install 修改受损软件包

然后sudo apt-get update

 

然后:sudo apt-get install vim-gtk完成安装

你可能感兴趣的:(linux)