Ubuntu 16.04 no puede ejecutar "sudo apt update"

Ubuntu 16.04 no puede ejecutar "sudo apt update"

tengo el servidor funcionando

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:        16.04
Codename:       xenial

Estoy intentando actualizar el sistema usando estos comandos. El usuario actual no es unraíz.

sudo apt-get update
sudo apt-get upgrade

pero me muestra errores como este

linux-image-generic-hwe-16.04: Depende: linux-image-4.15.0-33-generic pero no está instalado Recomienda: Thermald pero no está instalado

linux-modules-extra-4.15.0-30-generic: Depende: linux-image-4.15.0-30-generic pero no está instalado o linux-image-unsigned-4.15.0-30-generic pero no está instalado

Intenté instalar estos paquetes de forma independiente pero no resolvió mi problema.

También he intentado usar

sudo apt-get -f install

sin solución.

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).

Busqué en Google pero no pude encontrar la respuesta, puede ser que esté buscando mal.

Qué puedo hacer ahora ?

Respuesta1

Tuve problemas similares apt-get upgradeen Ubuntu 10.04. Luego aprendí que apt-get dist-upgradees mejor para lidiar con las dependencias. Lo he usado apt-get dist-upgradedesde entonces y me funcionó en 10.04, 12.04, 14.04 y 16.04.

Respuesta2

Intentaraptitud. He descubierto que seguirá intentando encontrar soluciones incluso si dices que no a la primera.

aptitude full-upgrade

La eliminación de kernels puede hacer que su sistema no pueda iniciarse. Asegúrese de tener un plan de respaldo, como reconstruir la caja o iniciar un entorno de rescate.

información relacionada