o pacote a ser instalado depende dos kernels antigos que foram removidos

0

Eu removi kernels antigos (com dpkg -P), e agora muitos pacotes que Eu tento instalar reclamar que a falta do velho (removido) kernels como dependências

Se eu fizer um "apt-get install -f" como sugerido, meus kernels antigos reinstalado ....

sudo apt-get install synaptic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
synaptic is already the newest version (0.83).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-extra-4.10.0-28-generic : Depends: linux-image-4.10.0-28-generic but it is not going to be installed
 linux-image-extra-4.10.0-35-generic : Depends: linux-image-4.10.0-35-generic but it is not going to be installed
 linux-image-extra-4.10.0-37-generic : Depends: linux-image-4.10.0-37-generic but it is not going to be installed
 linux-signed-image-4.10.0-35-generic : Depends: linux-image-4.10.0-35-generic (= 4.10.0-35.39~16.04.1) but it is not going to be installed
 linux-signed-image-4.10.0-37-generic : Depends: linux-image-4.10.0-37-generic (= 4.10.0-37.41~16.04.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    
por Max L. 22.03.2018 / 15:27

1 resposta

3

Se o pacote A (aqui, linux-image-extra-*** e linux-signed-image-*** ) depender do pacote B (aqui, linux-image-*** ), será um problema se o pacote A estiver instalado enquanto o pacote B não estiver. Existem duas maneiras de resolver este problema: instalar o pacote B ou remover o pacote A.

apt-get install -f tenta fazer o primeiro, mas aqui está claro que o que você quer fazer é remover os pacotes indesejados, então faça isso:

sudo apt remove linux-image-extra-4.10.0-28-generic linux-image-extra-4.10.0-35-generic linux-image-extra-4.10.0-37-generic linux-signed-image-4.10.0-35-generic linux-signed-image-4.10.0-37-generic

Sim, tudo em um comando, não separadamente. E no futuro, por favor, remova sempre o pacote com Apt, não dpkg .

    
por fkraiem 22.03.2018 / 16:55