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 on windows 7.

I have tried to install vim editor through terminal using sudo apt-get install vim then I got the following error and couldn't install the package. Not only this I couldn't install anything from terminal or Ubuntu center. I am sure that my internet connection is good and I could browse the internet.

This is the error I got:-

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.3.429-2ubuntu2) but 2:7.3.429-2ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.
share|improve this question
    
Try sudo apt-get install -f see if that fixes it. –  SimplySimon Aug 6 '13 at 10:21

1 Answer 1

Try this. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get clean && sudo apt-get update
sudo apt-get upgrade
sudo apt-get install vim
share|improve this answer

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.