1 votes

dépendances non satisfaites, linux-server dépend : linux-headers-server, mais le démarrage est complet

Bonjour, j'ai un problème de dépendances non satisfaites, mais je ne peux pas le résoudre.

$ sudo apt-get upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 linux-server : Depends: linux-headers-server (= 3.2.0.45.54) but 3.2.0.49.59 is installed
E: Unmet dependencies. Try using -f.

J'ai essayé :

$ sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
........
dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-49-generic_3.2.0-49.75_amd64.deb (--unpack):
 failed in write on buffer copy for backend dpkg-deb during `./boot/vmlinuz-3.2.0-49-generic': No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

J'ai essayé aussi :

$ sudo dpkg --configure -a

Mais ça ne marche pas car il n'y a plus de place. Alors j'ai essayé d'enlever quelques linux-images, mais :

$ sudo apt-get purge linux-headers-3.2.0-37 linux-headers-3.2.0-37-generic linux-image-3.2.0-37-generic 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-server : Depends: linux-headers-server (= 3.2.0.45.54) but 3.2.0.49.59 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)

Quelqu'un peut-il m'aider ?

//Mise à jour : Suppression des anciens linux-header-* et linux-images-* avec dpkg, mais :

$ sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-server
The following packages will be upgraded:
  linux-server
1 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,734 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 3.2.0.45.54); however:
  Version of linux-image-server on system is 3.2.0.49.59.
 linux-server depends on linux-headers-server (= 3.2.0.45.54); however:
  Version of linux-headers-server on system is 3.2.0.49.59.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 linux-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

//Mise à jour 2 : Correction en supprimant linux-server, linux-headers-server et linux-image-server.

2voto

Arya S. Points 21

Une solution que j'ai trouvée et qui fonctionne très bien est la suivante :

Supprimez les paquets incriminés :

sudo apt-get remove -f linux-server linux-headers-server linux-image-server

Puis les réinstaller :

sudo apt-get install linux-server linux-headers-server linux-image-server

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X