vim 安装时报错:
ozzy@ubuntu:~$ sudo apt-get 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:8.0.1453-1ubuntu1.8) but 2:8.1.2269-1ubuntu5 is to be installed
E: Unable to correct problems, you have held broken packages.
solution:
sudo apt-get purge vim-common
sudo apt-get update
sudo apt-get install vim
本文讲述了在Ubuntu系统中安装vim时遇到的依赖包冲突问题,通过删除vim-common并更新源码库后,如何正确安装vim的步骤,为遇到类似问题的用户提供了实用的解决方法。

2129

被折叠的 条评论
为什么被折叠?



