Page 1 of 1

Unable to "apt-get install vim" cause of broken dependencies

Posted: Sun Jun 17, 2012 11:34 pm
by Zinahe
apt-get install vim throws the following error.

vim : Depends: vim-runtime (= 2:7.3.429-2) but 2:7.3.547-1 is to be installed.

Obviously it looks like the installer is dealing with a newer version of vim-runtime; where as vim expects an older one.

Any advice ?

Re: Unable to "apt-get install vim" cause of broken dependen

Posted: Sun Jun 17, 2012 11:43 pm
by jecxjo
First I'd try updating your cache of the repo

Code: Select all

sudo apt-get update
sudo apt-get install vim-runtime
sudo apt-get install vim
I've run into this type of problem when the repo isn't completely up to date yet.

Re: Unable to "apt-get install vim" cause of broken dependen

Posted: Sun Jun 17, 2012 11:46 pm
by plugwash
This is an artefact of how raspbian works, the source and arch all packages are imported first and then the architecture specific packages are built. Therefore there is a time window when the arch all packages have been updated but the arch specific packages have not.

It should clear up soon.

Re: Unable to "apt-get install vim" cause of broken dependen

Posted: Mon Jun 18, 2012 1:00 am
by Zinahe
You're right.

It worked when I retried after like 2 hours:

Setting up libgpm2:armhf (1.20.4-4) ...
Setting up vim-common (2:7.3.547-1) ...
Setting up vim-runtime (2:7.3.547-1) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.3.547-1) ...


Thanks