我无法启动到新的 6.5 内核。
我在我的笔记本电脑上使用 Parrot Security,它最近从内核 6.1 升级到 6.5,但我无法启动到 6.5 内核。
当我尝试更新时会发生这种情况:
Building module: Cleaning build area... 'make' -j4 KVER=6.5.0-
13parrot1-amd64 KSRC=/lib/modules/6.5.0-13parrot1-
amd64/build..........(bad exit status: 2) Error! Bad return status
for module build on kernel: 6.5.0-13parrot1-amd64 (x86_64) Consult
/var/lib/dkms/realtek-rtl8188eus/5.3.9~git20230101.f8ead57/build/make.log for more
information. Error! One or more modules failed to install during
autoinstall. Refer to previous errors for more information. dkms:
autoinstall for kernel: 6.5.0-13parrot1-amd64 failed! run-parts:
/etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.5.0-13parrot1-amd64 (--configure):
installed linux-image-6.5.0-13parrot1-amd64 package post-installation
script subprocess returned error exit status 1 Setting up python3-
libevdev (0.5-3) ...
dpkg: dependency problems prevent configuration of linux-image-amd64: linux-image-amd64 depends on linux-image-6.5.0-13parrot1-amd64
(= 6.5.13-1parrot1); however: Package linux-image-6.5.0-13parrot1-amd64 is not configured yet.
dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured Setting up python3-pyudev
(0.24.0-1) ... Setting up libwacom-common (2.6.0-1) ... Setting up
libwacom9:amd64 (2.6.0-1) ... Setting up libinput-bin (1.22.1-1) ...
Setting up libwacom-bin (2.6.0-1) ... Setting up libinput10:amd64
(1.22.1-1) ... Processing triggers for man-db (2.11.2-2) ...
Processing triggers for udev (252.19-1~deb12u1) ... Processing
triggers for libc-bin (2.36-9+deb12u3) ... Errors were encountered
while processing: linux-headers-6.5.0-13parrot1-amd64 linux-headers-amd64
linux-image-6.5.0-13parrot1-amd64 linux-image-amd64 Scanning application launchers
Removing duplicate launchers or broken launchers Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)
- 我尝试使用
dpkg --configure -a
. - 我尝试过
--fix-broken
总是说 linux-image-6.5 未配置
嘿,解决了问题,以下是如何自己完成此操作的分步过程:
笔记:
首先检查启动中的parrot版本可能是6.5.0-13parrot1-amd64
uname -r
从 GRUB 菜单中选择“高级模式”并启动 Parrot OS 6.1 内核;
使用此命令清除以下软件包(这是导致问题的原因):
sudo apt purge xtrx-dkms r8168-dkms realtek-rtl8188eus-dkms nvidia-kernel-dkms nvidia-driver dkms
sudo apt update && sudo parrot-upgrade
找到您的根分区 sudo fdisk -l
挂载分区:
须藤挂载/dev/sda1
(注:在我的情况下,sda1 可能与 sda2 或 sda3 不同,请相应调整)
sudo update-initramfs -u -k 6.5.0-3parrot1-amd64
sudo apt update && sudo parrot-upgrade
8.sudo更新grub
现在不要使用高级选项让它正常启动
启动后 sudo apt update && sudo parrot-upgrade
uname -r
sudo apt install xtrx-dkms r8168-dkms realtek-rtl8188eus-dkms nvidia-kernel-dkms nvidia-driver dkms
sudo apt update && sudo parrot 升级
享受吧!