签署内核模块后包中出现错误

签署内核模块后包中出现错误

更新

每当我尝试升级或安装任何软件包时,我都会收到以下错误

 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。

为了确保安全,我关闭了安全启动,因为它是一个主要的杀手锏。

相关内容