Linux 업그레이드 시 dpkg Linux 헤더 종속성 오류

Linux 업그레이드 시 dpkg Linux 헤더 종속성 오류

저는 현재 우분투 20을 사용하고 있으며 지난 며칠 동안 소프트웨어 업데이터가 설치해야 할 일부 업데이트를 표시하고 설치를 클릭하면 설치 프로세스가 시작되지만 얼마 후 "패키지 설치 또는 제거에 실패했습니다."라는 오류가 발생합니다.

터미널을 사용하여 업데이트하려고 하면 이 오류가 발생합니다.

 Errors were encountered while processing:
 linux-headers-5.4.0-77
 linux-headers-5.4.0-77-generic
 linux-headers-generic
 linux-headers-generic-hwe-18.04
 linux-generic
 linux-generic-hwe-18.04

그래서 Linux 헤더 설치를 시도했지만 동일한 오류가 계속 발생합니다.

이 문제에 대해 도와주세요.

sudo apt full-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
Need to get 0 B/11.0 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package linux-headers-5.4.0-77 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
No apport report written because the error message indicates its a followup err
or from a previous failure.
                           dpkg: dependency problems prevent configuration of l
inux-headers-5.4.0-77-generic:
 linux-headers-5.4.0-77-generic depends on linux-headers-5.4.0-77; however:
  Package linux-headers-5.4.0-77 is not configured yet.

dpkg: error processing package linux-headers-5.4.0-77-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-5.4.0-77-generic; however:
  Package linux-headers-5.4.0-77-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-18
.04:
 linux-headers-generic-hwe-18.04 depends on linux-headers-generic; however:
  Package linux-headers-generic is not configured yet.

dpkg: error processing package linux-headers-generic-hwe-18.04 (--configure):
 dNo apport report written because the error message indicates its a followup e
rror from a previous failure.
                             No apport report written because MaxReports is rea
ched already
            No apport report written because MaxReports is reached already
                                                                          No ap
port report written because MaxReports is reached already
                                                         ependency problems - l
eaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-headers-generic (= 5.4.0.77.80); however:
  Package linux-headers-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:
 linux-generic-hwe-18.04 depends on linux-generic; however:
  Package linux-generic is not configured yet.

dpkg: error processing package linux-generic-hwe-18.04 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-headers-5.4.0-77
 linux-headers-5.4.0-77-generic
 linux-headers-generic
 linux-headers-generic-hwe-18.04
 linux-generic
 linux-generic-hwe-18.04
E: Sub-process /usr/bin/dpkg returned an error code (1)

ps: 리눅스 헤더파일이 무엇인지도 잘 모르겠고, 운영체제 개념도 잘 모르니, 답변 구현 방법에 대한 명령어를 추가해 보시기 바랍니다.

답변1

Ubuntu 20.04를 사용하고 있지만 (예를 들어) 설치 중입니다.linux-headers-generic-hwe-18.04

저장소 목록을 확인하세요. 18.04와 20.04가 혼합되어 있나요?

관련 정보