Ubuntu 16.04는 "sudo apt 업그레이드"를 실행할 수 없습니다

Ubuntu 16.04는 "sudo apt 업그레이드"를 실행할 수 없습니다

서버를 운영하고 있어요

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

이 명령을 사용하여 시스템을 업그레이드하려고 합니다. 현재 사용자는 다음이 아닙니다.뿌리.

sudo apt-get update
sudo apt-get upgrade

하지만 나에게 이런 오류가 표시됩니다

linux-image-generic-hwe-16.04 : 의존함: linux-image-4.15.0-33-generic 그러나 설치되지 않음 권장: Thermald 그러나 설치되지 않음

linux-modules-extra-4.15.0-30-generic : 의존함: linux-image-4.15.0-30-generic 그러나 설치되지 않았거나 linux-image-unsigned-4.15.0-30-generic 그러나 설치되지 않음 설치됨

이 패키지를 독립적으로 설치하려고 했지만 문제가 해결되지 않았습니다.

나도 사용해봤어

sudo apt-get -f install

해결책이 없습니다.

편집됨

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

구글링을 해보았지만 답을 찾을 수 없었습니다. 제가 잘못 검색하고 있는 것일 수도 있습니다.

지금 내가 무엇을 할 수 있나요?

답변1

apt-get upgradeUbuntu 10.04에서도 비슷한 문제가 발생했습니다 . 그런 다음 apt-get dist-upgrade종속성을 다루는 것이 더 낫다는 것을 배웠습니다 . 나는 그 이후로 사용해 왔으며 apt-get dist-upgrade10.04, 12.04, 14.04 및 16.04에서 작동했습니다.

답변2

노력하다적성. 나는 당신이 첫 번째 해결책을 거부하더라도 계속해서 해결책을 찾으려고 노력한다는 것을 발견했습니다.

aptitude full-upgrade

커널을 제거하면 시스템이 부팅되지 않을 수 있습니다. 상자 재구축이나 복구 환경 부팅과 같은 철회 계획을 세우십시오.

관련 정보