1.
安装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.488-7+deb8u4) but 2:8.1.0875-5 is to be installed Depends: libtinfo5 but it is not going to be installed E: Unable to correct problems, you have held broken packages.
需要先卸载vim-common,因为需要的版本与现在安装的不一样。
sudo apt-get remove vim-common
然后再安装libtinfo5
sudo apt-get install libtinfo5
安装过程中,提示会删掉另外一个包,按照提示输入Yes, do as I say!继续就可以
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: ncurses-base ncurses-term The following NEW packages will be installed: libtinfo5 WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! ncurses-base 0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded. Need to get 282 kB of archives. After this operation, 4,191 kB disk space will be freed. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' ?] Yes, do as I say!