Problema de dependência com o linux-image-server, linux-image e linux-headers

0

Eu tive um problema com / boot full, mas agora tenho muito espaço em / boot. Mas agora eu não posso fazer apt-get autoremove ou apt-get -f install ou qualquer outra coisa. Parece que os cabeçalhos não estão em / boot e continuaram atualizando enquanto a imagem do Linux não estava. O que devo tentar em seguida?

Eu também tentei apt-get dist-upgrade e isso também falha devido ao mesmo problema de dependência.

A saída de ls /var/cache/apt/archives e /var/cache/apt/archives/partial aqui .

root@ethan:/boot# apt-get clean
root@ethan:/boot# apt-get autoclean
Reading package lists... Done
Building dependency tree       
Reading state information... Done
root@ethan:/boot# apt-get install linux-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-generic : Depends: linux-image-generic (= 3.2.0.76.90) but it is not going to be installed
                 Depends: linux-headers-generic (= 3.2.0.76.90) but it is not going to be installed
 linux-server : Depends: linux-image-server (= 3.2.0.69.82) but 3.2.0.76.90 is to be installed
                Depends: linux-headers-server (= 3.2.0.69.82) but 3.2.0.76.90 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@ethan:/boot# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-61 linux-headers-3.2.0-64 linux-headers-3.2.0-67
  linux-headers-3.2.0-61-generic linux-headers-3.2.0-64-generic
  linux-headers-3.2.0-67-generic
Use 'apt-get autoremove' to remove them.
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 158 not upgraded.
1 not fully installed or removed.
Need to get 1,724 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ai.archive.ubuntu.com/ubuntu/ precise-updates/main linux-server amd64 3.2.0.76.90 [1,724 B]
Fetched 1,724 B in 0s (2,544 B/s)       
dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 3.2.0.69.82); however:
  Version of linux-image-server on system is 3.2.0.76.90.
 linux-server depends on linux-headers-server (= 3.2.0.69.82); however:
  Version of linux-headers-server on system is 3.2.0.76.90.
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)
    
por Vincent Cate 17.02.2015 / 17:19

1 resposta

5

Faça um:

sudo rm /var/cache/apt/archives/*
sudo rm /var/cache/apt/archives/partial/*

então a:

cd /var/cache/apt/archives
sudo apt-get download linux-server linux-image-server linux-headers-server

Como parece haver uma discrepância entre as versões de linux-server (= 3.2.0.69.82) e linux-image-server (= 3.2.0.76.90), instale os pacotes usando:

sudo dpkg --install --force-all linux-server* linux-image-server* linux-headers-server*

Como esses arquivos .deb foram baixados usando apt-get e apenas forçados a instalar com dpkg eles não devem quebrar as atualizações automáticas no futuro ...

    
por Fabby 24.02.2015 / 14:29