Rodando
apt-get install linux-image-3.5.0-44-generic.
resolveu o problema do pôster.
Estou trabalhando em uma máquina Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-43-generic x86_64)
do Ubuntu.
Existem alguns pacotes que eu preciso instalar e, para poder fazer isso, primeiro tenho que executar apt-get -f install
.
Mas isso é o que recebo quando executo apt-get -f install
:
root@SERVERLINUX:/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:
firefox-globalmenu python2.6-minimal linux-headers-3.5.0-39-generic linux-headers-3.5.0-34 linux-headers-3.5.0-37
linux-headers-3.5.0-39 thunderbird-globalmenu linux-headers-3.5.0-34-generic linux-headers-3.5.0-37-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-image-generic-lts-quantal
The following packages will be upgraded:
linux-image-generic-lts-quantal
1 upgraded, 0 newly installed, 0 to remove and 440 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2.442 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-image-generic-lts-quantal:
linux-image-generic-lts-quantal depends on linux-image-3.5.0-44-generic; however:
Package linux-image-3.5.0-44-generic is not installed.
dpkg: error processing linux-image-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:
linux-generic-lts-quantal depends on linux-image-generic-lts-quantal; however:
Package linux-image-generic-lts-quantal 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.
dpkg: error processing linux-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-generic-lts-quantal
linux-generic-lts-quantal
E: Sub-process /usr/bin/dpkg returned an error code (1)
O que está acontecendo? Como posso conseguir executar apt-get -f install
com sucesso? Como posso resolver esses erros de dependência?
EDITAR:
Isso é o que eu recebo quando executo dpkg --configure -a
, como sugerido por Mohsen Pahlevanzadeh:
root@SERVERLINUX:/boot# dpkg --configure -a
dpkg: dependency problems prevent configuration of linux-image-generic-lts-quantal:
linux-image-generic-lts-quantal depends on linux-image-3.5.0-44-generic; however:
Package linux-image-3.5.0-44-generic is not installed.
dpkg: error processing linux-image-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:
linux-generic-lts-quantal depends on linux-image-generic-lts-quantal; however:
Package linux-image-generic-lts-quantal is not configured yet.
dpkg: error processing linux-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-generic-lts-quantal
linux-generic-lts-quantal
Após o mesmo erro:
apt-get update ### for resynchronize with your server
apt-get -f install ### fixing your problem
####And if your problem stay still you have two way:
####at first run :
dpkg --configure -a ### becuase after apt-get update , error of apt-get -f install may be changed
### two: wait to server will be changed
Para mim, a solução foi diferente.
Eu usei o comando aptitude
, quando o menu gráfico apareceu, usei /
para obter um campo de pesquisa pop-up e encontrar todas as versões linux-header
, linux-image
, linux-server
e removi todas, exceto as um atualmente não usado pressionando -
.
Para encontrar a versão atual do kernel, usei uname -r
.
Por fim, instalei uma versão mais recente de linux-{header, image, server}
na ordem especificada, selecionando-as e pressionando +
.
Para confirmar as atualizações, usei u
.
No final, reiniciei e tudo foi corrigido.
Adicionar force-all
a /etc/dpkg/dpkg.cfg
deve corrigir:
# echo "force-all" > /etc/dpkg/dpkg.cfg
# apt-get -f install