Ubuntu
簽署核心模組後包中的錯誤
更新
每當我嘗試升級或安裝任何軟體包時,我都會收到以下錯誤
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).
在嘗試安裝或升級時,我看到了這個奇怪的錯誤
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。
只是為了確保,我已經關閉了安全啟動,因為它被證明是一個主要的嗡嗡聲。