Message d’erreur lors de l’installation de vim

J’ai rencontré un petit soucis lors de la tentative d’installation de Vim sur Debian, avec un message d’erreur

# apt-get install vim

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.2.445+hg~cb94c42c0e1a-1) but 2:7.3.035+hg~8fdc12103333-1 is to be installed
E: Broken packages

# apt-get install vim-common vim

Reading package lists… Done
Building dependency tree      
Reading state information… Done
vim-common is already the newest version.
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.2.445+hg~cb94c42c0e1a-1) but 2:7.3.035+hg~8fdc12103333-1 is to be installed
E: Broken packages

La solution pour y remédier était juste de désinstaller vim-common, puis d’installer Vim de suite après et tout est bon.

# apt-get remove vim-common

Reading package lists… Done
Building dependency tree      
Reading state information… Done
The following package was automatically installed and is no longer required:
  xulrunner-1.9.1
Use ‘apt-get autoremove’ to remove them.
The following packages will be REMOVED:
  vim-common vim-tiny
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 1,114 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database … 116281 files and directories currently installed.)
Removing vim-tiny …
update-alternatives: using /usr/bin/see to provide /usr/bin/view (view) in auto mode.
Removing vim-common …
Processing triggers for man-db …

Une fois l’application terminée, vous pouvez lancer vimtutor pour apprendre les bases concernant l’utilisation de Vim dans un terminal

$ vimtutor

Publicités

Debian: Sources List

#############################################################
################### OFFICIAL DEBIAN REPOS ###################
#############################################################

###### Debian Main Repos
deb http://ftp.fr.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ squeeze main contrib non-free

###### Debian Update Repos
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://ftp.fr.debian.org/debian/ squeeze-proposed-updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ squeeze-proposed-updates main contrib non-free

##############################################################
##################### UNOFFICIAL  REPOS ######################
##############################################################

###### 3rd Party Binary Repos

#### Debian Backports – http://backports.debian.org/
deb http://backports.debian.org/debian-backports squeeze-backports main

#### Debian Multimedia – http://www.debian-multimedia.org/
## Run this command: apt-get update && apt-get install debian-multimedia-keyring && apt-get update
## Run this command: wget -q -O – http://unofficial.debian-maintainers.org/project/openpgp/archive-key.asc | apt-key add –
deb http://www.debian-multimedia.org stable main non-free

#### Unofficial Maintainer – http://unofficial.debian-maintainers.org/
## Run this command: wget -q -O – http://unofficial.debian-maintainers.org/project/openpgp/archive-key.asc | apt-key add –
deb http://unofficial.debian-maintainers.org/ squeeze main contrib non-free restricted

####### 3rd Party Source Repos

#### Unofficial Maintainer (Source) – http://unofficial.debian-maintainers.org/
## Run this command: wget -q -O – http://unofficial.debian-maintainers.org/project/openpgp/archive-key.asc | apt-key add –
deb-src http://unofficial.debian-maintainers.org/ squeeze main contrib non-free restricted

Source:
Debian Sources List Generator