Problem installing vim

1,665

Solution 1

probably answering this too late. but try uninstalling vim-common too. I was facing a similar problem with the error message

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.

I was able to solve it by uninstalling vim-common package first.

sudo apt-get remove vim-common

After that i was able to install it with no problems.

Solution 2

What I see there is that the flashplugin-installer package had some kind of downloading or installing problem and it is not letting you install vim. What I suggest is remove the flashplugin package, then do a refresh of the repository cache and then download vim. Afterwards just install flash again, although I recommend doing it via the restricted extras. Something like the following:

sudo apt-get remove flashplugin-installer
sudo apt-get update
sudo apt-get install vim
sudo apt-get install ubuntu-restricted-extras

On another note I actually still recommend using aptitude over apt-get. Or even synaptic to solve in an easy manner multiple conflicting problems between packages.

Solution 3

I would like to combine both of ur answers. Type it one by one:

sudo apt-get install ubuntu-restricted-extras
sudo apt-get update
sudo apt-get remove vim-common
sudo apt-get install vim
Share:
1,665

Related videos on Youtube

Allahjane
Author by

Allahjane

Updated on September 18, 2022

Comments

  • Allahjane
    Allahjane over 1 year

    What intent filter should I use to get audio file as result from a external activity? Also how the result would be returned? As a URI ,explicit path string , File Descriptor or File object?

    • jmetz
      jmetz almost 12 years
      Did you update the package database? sudo apt-get update; sudo apt-get upgrade
    • SDsolar
      SDsolar almost 7 years
      Yes, but I get the same errors trying to install VIM
  • Allahjane
    Allahjane almost 11 years
    So resulting content will always be a URI?
  • Allahjane
    Allahjane almost 11 years
    What's its equivalent XML fields... I am making the result giving activity
  • stinepike
    stinepike almost 11 years
    this in implicit intent.. why do you need xml?
  • Allahjane
    Allahjane almost 11 years
    I need my activity to be called for returning a result. So I cant set filters in the code instead I need to put it in xml
  • stinepike
    stinepike almost 11 years
    create your own . whats the problem there?
  • Allahjane
    Allahjane almost 11 years
    Is there a way to find what intents the calling application send out to know the corresponding intent filter you need to implement?
  • Allahjane
    Allahjane almost 11 years
    Problem? This: MediaStore.Audio.Media.EXTERNAL_CONTENT_URI what's this string for XML. can't find it
  • Allahjane
    Allahjane almost 11 years
    I mean how can you find what any of calling application put in intent.setAction() and intent.setType(), So that you can add intent filters to target it
  • 4Z4T4R
    4Z4T4R over 6 years
    vi !== vim ... So technically you do not have vim installed if you are using vi alone.