问题
I'm trying to reinstall vim in ubuntu 11.10, but am having trouble. From the software center I click on install, and I get the error message: "Failed to download package files. Check your internet connection". My internet connection is fine.
Then, I click on OK, and this message comes up: "Requires Installation of untrusted packages." I click on OK (the only option), and the installation ceases. Anyone know how I resolve this problem?
回答1:
Try from command line:
sudo apt-get update
sudo apt-get install vim gvim
回答2:
Before running the commands from @DiogoDoreto 's post, run
sudo apt-get purge vim gvim
Then run update and install. Purge will clear out all of the old configuration files and will usually fix the problem.
来源:https://stackoverflow.com/questions/8234099/reinstalling-vim