
Eu tenho servidor em execução
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Estou tentando atualizar o sistema usando estes comandos. o usuário atual não é umraiz.
sudo apt-get update
sudo apt-get upgrade
mas me mostra erros como esse
linux-image-generic-hwe-16.04: Depende: linux-image-4.15.0-33-generic mas não está instalado Recomenda: Thermald mas não está instalado
linux-modules-extra-4.15.0-30-generic: Depende: linux-image-4.15.0-30-generic mas não está instalado ou linux-image-unsigned-4.15.0-30-generic mas não está instalado
Tentei instalar esses pacotes de forma independente mas não resolveu meu problema
também tentei usar
sudo apt-get -f install
nenhuma solução.
Editado
sudo apt install linux-image-4.15.0-33-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-image-4.15.0-33-generic : Depends: linux-modules-4.15.0-33-generic but it is not going to be installed
linux-image-generic-hwe-16.04 : Depends: linux-image-4.15.0-34-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
linux-modules-extra-4.15.0-34-generic : Depends: linux-image-4.15.0-34-generic but it is not going to be installed or
linux-image-unsigned-4.15.0-34-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Pesquisei no Google, mas não consegui encontrar a resposta, pode ser que esteja pesquisando errado.
O que posso fazer agora?
Responder1
Eu tive problemas semelhantes apt-get upgrade
no Ubuntu 10.04. Então aprendi que apt-get dist-upgrade
é melhor lidar com dependências. Eu tenho usado apt-get dist-upgrade
desde então e funcionou para mim em 10.04, 12.04, 14.04 e 16.04.
Responder2
Tentaraptidão. Descobri que ele continuará tentando soluções mesmo que você diga não à primeira.
aptitude full-upgrade
A remoção de kernels pode tornar seu sistema não inicializável. Certifique-se de ter um plano de backup, como reconstruir a caixa ou inicializar um ambiente de resgate.