sudo mv /var/lib/dpkg/alternatives/vim ~/ && sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgdata1.7-cil libopts25 libmono-zeroconf1.0-cil libgkeyfile1.0-cil libnux-1.0-0 banshee libgtk-sharp-beans-cil banshee-extension-soundmenu libnux-1.0-common libtaglib2.0-cil zeitgeist-extension-fts libgudev1.0-cil libnotify0.4-cil Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up vim (2:7.3.154+hg~74503f6ee649-2ubuntu3.1) ... update-alternatives: warning: /etc/alternatives/vim has been changed (manually or by a script). Switching to manual updates only. update-alternatives: error: /var/lib/dpkg/alternatives/vimdiff corrupt: line not terminated while trying to read status dpkg: error processing vim (--configure): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: vim E: Sub-process /usr/bin/dpkg returned an error code (1) linaro@linaro-ubuntu-desktop:~/Downloads/butt-0.1.14$