1.
When prompted to 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.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.
Need to uninstall the vim-common, because of the need now is not the same version as installed.
sudo apt-get remove vim-common
Then install libtinfo5
sudo apt-get install libtinfo5
During installation, you will be prompted to delete another package, follow the prompts to enter Yes, do as I say! Can continue
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!