커널 모듈 서명 후 패키지 오류

커널 모듈 서명 후 패키지 오류

고쳐 쓰다

패키지를 업그레이드하거나 설치하려고 할 때마다 다음 오류가 발생합니다.

 libc6-dbg : Depends: libc6 (= 2.31-0ubuntu9.1) but 2.31-0ubuntu9 is to be installed
 libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.1) but 2.31-0ubuntu9 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

-f를 사용하여 업그레이드하려고 하면 다음 오류가 발생합니다.

Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.31-0ubuntu9.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

-f가 없으면 또 다른 오류가 발생합니다.

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.31-0ubuntu9.1) but 2.31-0ubuntu9 is installed
 libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.1) but 2.31-0ubuntu9 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).



**END UPDATE**

I

Ubuntu 20.04.1 LTS 실행 및 Virtualbox 버전 6.1.14 r140239(Qt5.12.8) 설치

가상 머신을 생성하려고 하는데 다음 오류가 발생합니다.

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing

'/sbin/vboxconfig'

as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 

그럼 나도 따라갈게이것스레드가 커널 모듈에 서명을 시도합니다.

키가 생성되었지만 모듈에 서명할 수 없습니다. (구체적인 오류는 기억나지 않습니다)

하지만 이제 패키지에 몇 가지 오류가 발생하여 해결할 수 없습니다.

~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.31-0ubuntu9.1) but 2.31-0ubuntu9 is installed
 libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.1) but 2.31-0ubuntu9 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

~$ sudo apt --fix-broken 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:
  libfprint-2-tod1 libllvm9 linux-headers-5.4.0-26
  linux-headers-5.4.0-26-generic linux-image-5.4.0-26-generic
  linux-modules-5.4.0-26-generic linux-modules-extra-5.4.0-26-generic
  python3-click python3-colorama
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libc6
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.
3 not fully installed or removed.
Need to get 2.712 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://be.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6 amd64 2.31-0ubuntu9.1 [2.712 kB]
Fetched 2.712 kB in 6s (460 kB/s)       
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 238445 files and directories currently installed.)
Preparing to unpack .../libc6_2.31-0ubuntu9.1_amd64.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
rocess: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.31-0ubuntu9.1_amd
64.deb (--unpack):
 new libc6:amd64 package pre-installation script subprocess returned error exit 
status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.31-0ubuntu9.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

lib6을 지우려고 시도했지만 그것도 작동하지 않았습니다. 이 문제를 해결하려면 어떻게 해야 합니까?

~$ sudo apt-get remove --purge libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 accountsservice : Depends: libc6 (>= 2.4) but it is not going to be installed
 acl : Depends: libc6 (>= 2.14) but it is not going to be installed

...

xserver-xorg-video-vmware : Depends: libc6 (>= 2.14) but it is not going to be installed
 xwayland : Depends: libc6 (>= 2.29) but it is not going to be installed
 xxd : Depends: libc6 (>= 2.3.4) but it is not going to be installed
 xz-utils : Depends: libc6 (>= 2.17) but it is not going to be installed
 yelp : Depends: libc6 (>= 2.4) but it is not going to be installed
 zeitgeist-core : Depends: libc6 (>= 2.14) but it is not going to be installed
 zeitgeist-datahub : Depends: libc6 (>= 2.4) but it is not going to be installed
 zenity : Depends: libc6 (>= 2.4) but it is not going to be installed
 zip : Depends: libc6 (>= 2.14) but it is not going to be installed
 zlib1g : Depends: libc6 (>= 2.14) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

답변1

설치 또는 업그레이드를 시도할 때 이상한 오류가 나타납니다.

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
rocess: Resource temporarily unavailable

어떤 프로세스가 차단하고 있는지 확인했습니다

sudo fuser -v /var/cache/debconf/config.dat

많은 권한이 거부되었지만 목록 맨 아래에는 내가 죽일 수 있었던 인식 가능한 프로세스가 있었습니다. MOK 구성 화면이 즉시 열리고 재부팅 후 Virtualbox를 포함한 모든 문제가 해결되었습니다.

안전을 위해 Secure Boot를 껐습니다. 보안 부팅이 주요 킬러이기 때문입니다.

관련 정보