Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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
4  
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 . –  raaz 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
add comment

2 Answers

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
add comment

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: https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1055614

share|improve this answer
add comment

Your Answer

 
discard

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.