カーネルモジュールの署名後のパッケージエラー

カーネルモジュールの署名後のパッケージエラー

修正する

パッケージをアップグレードまたはインストールしようとするたびに、次のエラーが発生します。

 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をオフにします。セキュアブートが主なキラーだからです。

おすすめ記事