Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed Ubuntu 12.04 in my computer few days back. from then i tried to install few programs through Ubuntu software center but it showed that no internet connection even though i was connected to internet. Then i came to know that vi editor will be required to set the system configuration in which i will be able to save my password and proxy. apart from that i also tried to install the programs through terminal but still same problem occurred as it says this is not a candidate for install.

i tried to install Vim using command sudo apt-get instal Vim-nox but it shows that broken package and showed many failures.

please help me out of this.... thank you

share|improve this question
sounds like you have have a network problem. However you shouldn't need to use the vi editor specifically to edit your config files. Just use nano instead, it should already be installed. – adempewolff May 25 '12 at 8:21
Can you provide exact error message – Tachyons May 25 '12 at 8:21
we need exact message what its saying to you and as you said there are broken pkg's you need to run as sudo apt-get install -f in your terminal . – Raja May 25 '12 at 8:32
If you want vim, then just type: sudo apt-get install vim – david6 May 25 '12 at 8:52

you carefully type command first.

sudo apt-get install vim-gnome

link:Installation Vim on Ubuntu

I hope to solve your issue.

share|improve this answer

Try sudo apt-get -f install first to fix the inconsistent state of your packages.

If that gives you errors and you still can't install packages, you may need to clear your cache - this can happen if, for example, you connect to one of those wireless networks that asks you to log in via a web page, and ONLY returns that web page for ALL requests until you successfully log in (this will corrupt the local apt cache, if it tries to update while you are connected but not logged in).

ONLY DO THIS IF YOU STILL CANNOT INSTALL PACKAGES AFTER sudo apt-get -f install. It's safe - an apt-get update will replace everything that's in there, whether you were having a problem or not - but, y'know, better not to get in the habit of wildly deleting things unnecessarily. :)

you@box:~$ sudo rm /var/lib/apt/lists/*

Reference on the apt list corruption:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.