dpkg opportations fail: Falha ao executar depmod, processamento de erro linux-image-generic

0

Meu laptop perdeu o poder algumas vezes recentemente e agora, sempre que tento fazer uma operação de pacote, recebo o seguinte código de erro. Eu tentei procurar por uma solução nos fóruns, mas eles exigiam uma operação de pacote ou eram deixados sem resposta. 'uname -r' me diz que meu kernel é 3.11.0-17-generic, mas parece que meu cabeçalho do kernel diz 3.11.0-18-generic. Eu tentei inicializar versões antigas do kernel para tentar corrigir o problema, mas eu encontrei o mesmo erro. Alguém sabe o que eu poderia fazer?

sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.11.0-18-generic (3.11.0-18.32) ...
Running depmod.
Failed to run depmod
dpkg: error processing linux-image-3.11.0-18-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-extra-3.11.0-18-generic:
linux-image-extra-3.11.0-18-generic depends on linux-image-3.11.0-18-generic; however:
  Package linux-image-3.11.0-18-generic is not configured yet.

dpkg: error processing linux-image-extra-3.11.0-18-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.11.0-18-generic; however:
  Package linux-image-3.11.0-18-generic is not configured yet.
 linux-image-generic depends on linux-image-extra-3.11.0-18-generic; however:
  Package linux-image-extra-3.11.0-18-generic is not configured yet.

dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.11.0.18.19); however:
  Package linux-image-generic is not configured yet.
No apport report written because the error message indicates its a followup error from a previous failure.
                                 No apport report written because the error message indicates its a followup error from a previous failure.
     No apport report written because MaxReports is reached already

dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.11.0-18-generic
 linux-image-extra-3.11.0-18-generic
 linux-image-generic
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por user209184 17.03.2014 / 19:35

1 resposta

2

Execute estes comandos para remover pacotes não configurados,

sudo dpkg -P linux-image-3.11.0-18-generic
sudo dpkg -P linux-image-extra-3.11.0-18-generic
sudo dpkg -P linux-image-generic
sudo dpkg -P linux-generic

Então, finalmente, execute o comando abaixo para corrigir as dependências do pacote,

sudo apt-get install -f
    
por Avinash Raj 20.03.2014 / 02:04