problemas de dependência impedem a configuração

0

Eu coloquei meu servidor Ubuntu em um estado inconsistente. Eu li um tópico sobre um problema semelhante, mas ainda não tenho certeza de como proceder melhor.

Aqui estão algumas informações:

# dpkg --print-architecture
amd64
# uname -r
3.2.0-60-generic

Como plano de fundo, descobri que a partição / boot estava cheia e estava tentando limpar quando comecei a receber os erros. Inicialmente, o nível do kernel era 3.2.0-44-generic , mas minhas tentativas de atualização trouxeram arquivos mais recentes e, infelizmente, a partição / boot foi preenchida novamente no meio da atualização.

Agora recebo o seguinte:

#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-39-generic linux-headers-3.2.0-34 linux-headers-3.2.0-40 linux-headers-3.2.0-41 linux-headers-3.2.0-43
  linux-headers-3.2.0-38 linux-headers-3.2.0-39 linux-headers-3.2.0-34-generic linux-image-3.2.0-40-generic linux-image-3.2.0-43-generic
  linux-headers-3.2.0-40-generic linux-headers-3.2.0-43-generic linux-headers-3.2.0-38-generic linux-image-3.2.0-41-generic
  linux-image-3.2.0-39-generic linux-headers-3.2.0-41-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 159 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.60.71.
 linux-server depends on linux-headers-server (= 3.2.0.45.54); however:
  Version of linux-headers-server on system is 3.2.0.60.71.
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)

Com base na solução anterior sobre a qual li, posso precisar fazer download e instalar manualmente os arquivos, mas não tenho certeza de quais.

Obrigado por qualquer ajuda.

    
por Andy 07.04.2014 / 20:32

1 resposta

0

Baixou e instalou versões mais antigas do linux-image-server e linux-headers-server. Foi então capaz de reinstalar o servidor linux. Depois disso, o apt-get funcionou.

$ wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-image-server_3.2.0.45.54_amd64.deb
$ sudo dpkg -i linux-image-server_3.2.0.45.54_*.deb
$ wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-headers-server_3.2.0.45.54_amd64.deb
$ sudo dpkg -i linux-headers-server_3.2.0.45.54_*.deb
$ sudo dpkg -i linux-server_3.2.0.45.54_*.deb
$ sudo apt-get -f install
    
por Andy 08.04.2014 / 17:03