我正在使用流行!作業系統版本 20.10。當我執行任何 apt 命令時,總是顯示錯誤核心未完全安裝。這是日誌:
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.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Sedang menata linux-image-5.8.0-7625-generic (5.8.0-7625.26~1604441477~20.10~d41e407) ...
Processing triggers for linux-image-5.8.0-7625-generic (5.8.0-7625.26~1604441477~20.10~d41e407) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.8.0-7625-generic
Error! The /var/lib/dkms/wireguard/1.0.20200908/5.8.0-7625-generic/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE di
rective which
does not match this kernel/arch. This indicates that it should not be built.
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.8.0-7625-generic
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
kernelstub.Config : INFO Looking for configuration...
kernelstub.Drive : ERROR Could not find a block device for the a partition. This is a critical error and we cannot continue.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kernelstub/drive.py", line 56, in __init__
self.esp_fs = self.get_part_dev(self.esp_path)
File "/usr/lib/python3/dist-packages/kernelstub/drive.py", line 94, in get_part_dev
raise NoBlockDevError('Couldn\'t find the block device for %s' % path)
kernelstub.drive.NoBlockDevError: Couldn't find the block device for /boot/efi
run-parts: /etc/initramfs/post-update.d//zz-kernelstub exited with return code 174
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.8.0-7625-generic (--configure):
installed linux-image-5.8.0-7625-generic package post-installation script subprocess returned error exit status 1
Ada kesalahan saat memproses:
linux-image-5.8.0-7625-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
我該如何解決這個問題?
答案1
[已解決]我透過將 efi 系統分割區安裝到 /mnt/efi 解決了此錯誤
mount /dev/sda1 /mnt/efi
答案2
我也遇到了這個問題,配置如下:
主持人:外星人 m15 R6
作業系統:流行!
核心:5.13.0-39-通用
中央處理器:第 11 代英特爾 i7-11800H
注意:我的筆記型電腦上有其他發行版,安裝 PopOs 後,我需要在 live-CD 中啟動以執行啟動修復並重新安裝 grub。
首先我在啟動時遇到以下問題:
job is running for /dev/disk/by-partuiid/d06ca1c2-6183-46cd-af2a-eb2070aba2a1
我的 Linux 發行版無法使用 EFI 掛載分割區,顯然經過檢查 UID 根本不好
PARTUUID=d06ca1c2-6183-46cd-af2a-eb2070aba2a1 /boot/efi vfat umask=0077 0 0
UUID=fb8c454b-6994-4968-bd74-cdc46823527a / ext4 noatime,errors=remount-ro 0 0
但我沒有 UID 為 d06ca1c2-6183-46cd-af2a-eb2070aba2a1 的磁碟
所以我使用 gnome-disks 來識別我的 EFI 分割區的 UUID,並像這樣更改文件
UUID=8DC8-AACD /boot/efi vfat umask=0077 0 1
UUID=fb8c454b-6994-4968-bd74-cdc46823527a / ext4 noatime,errors=remount-ro 0 0
重新啟動後我可以升級“linux-image”。
筆記
此錯誤也可能是由於 EFI 分割區空間不足造成的