[Seek Help] 无法升级内核?怎么办??
Tofloor
poster avatar
kirin2020
deepin
2023-08-05 01:43
Author

截图_deepin-terminal_20230804174156.png

截图_deepin-terminal_20230804174418.png

下列软件包的版本将保持不变:
linux-headers-deepin-hwe-amd64 linux-image-deepin-hwe-amd64 qdbus
下列软件包将被升级:
linux-headers-5.18.17-amd64-desktop-community-hwe
linux-image-5.18.17-amd64-desktop-community-hwe
升级了 2 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 3 个软件包未被升级。
有 5 个软件包没有被完全安装或卸载。
需要下载 0 B/83.0 MB 的归档。
解压缩后将会空出 252 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 1361304 个文件和目录。)
准备解压 .../linux-headers-5.18.17-amd64-desktop-community-hwe_5.18.17-amd64-desktop-community-hwe-20.01.00.10_amd64.deb ...
正在解压 linux-headers-5.18.17-amd64-desktop-community-hwe (5.18.17-amd64-desktop-community-hwe-20.01.00.10) 并覆盖 (5.18.17-amd64-desktop-community-hwe-20.01.00.08) ...
dpkg: 处理归档 /var/cache/apt/archives/linux-headers-5.18.17-amd64-desktop-community-hwe_5.18.17-amd64-desktop-community-hwe-20.01.00.10_amd64.deb (--unpack)时出错:
正试图覆盖 /usr/share/doc/linux-headers-5.18.17-amd64-desktop-hwe/changelog.Debian.gz,它同时被包含于软件包 linux-headers-5.18.17-amd64-desktop-hwe 5.18.17-amd64-desktop-hwe-20.01.00.01
dpkg-deb: 错误: 粘贴 子进程被信号(断开的管道) 终止了
准备解压 .../linux-image-5.18.17-amd64-desktop-community-hwe_5.18.17-amd64-desktop-community-hwe-20.01.00.10_amd64.deb ...
dkms: removing: deepin-anything 0.0 (5.18.17-amd64-desktop-community-hwe) (x86_64)

-------- Uninstall Beginning --------
Module: deepin-anything
Version: 0.0
Kernel: 5.18.17-amd64-desktop-community-hwe (x86_64)

Status: Before uninstall, this module version was ACTIVE on this kernel.

vfs_monitor.ko:

  • Uninstallation
    • Deleting from: /lib/modules/5.18.17-amd64-desktop-community-hwe/updates//
      rmdir: 删除 'updates/' 失败: 目录非空
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.
dkms: removing: huawei-wmi 1.0 (5.18.17-amd64-desktop-community-hwe) (x86_64)

-------- Uninstall Beginning --------
Module: huawei-wmi
Version: 1.0
Kernel: 5.18.17-amd64-desktop-community-hwe (x86_64)

Status: Before uninstall, this module version was ACTIVE on this kernel.

huawei-wmi.ko:

  • Uninstallation
    • Deleting from: /lib/modules/5.18.17-amd64-desktop-community-hwe/updates//
  • Original module
    • Archived original module found in the DKMS tree
    • Moving it to: /lib/modules/5.18.17-amd64-desktop-community-hwe/updates//
      depmod...

Removing original_module from DKMS tree for kernel 5.18.17-amd64-desktop-community-hwe (x86_64)

DKMS: uninstall completed.
正在解压 linux-image-5.18.17-amd64-desktop-community-hwe (5.18.17-amd64-desktop-community-hwe-20.01.00.10) 并覆盖 (5.18.17-amd64-desktop-community-hwe-20.01.00.08) ...
dpkg: 处理归档 /var/cache/apt/archives/linux-image-5.18.17-amd64-desktop-community-hwe_5.18.17-amd64-desktop-community-hwe-20.01.00.10_amd64.deb (--unpack)时出错:
正试图覆盖 /boot/System.map-5.18.17-amd64-desktop-hwe,它同时被包含于软件包 linux-image-5.18.17-amd64-desktop-hwe 5.18.17-amd64-desktop-hwe-20.01.00.01
dpkg-deb: 错误: 粘贴 子进程被信号(断开的管道) 终止了
fix systemd/logind config
在处理时有错误发生:
/var/cache/apt/archives/linux-headers-5.18.17-amd64-desktop-community-hwe_5.18.17-amd64-desktop-community-hwe-20.01.00.10_amd64.deb
/var/cache/apt/archives/linux-image-5.18.17-amd64-desktop-community-hwe_5.18.17-amd64-desktop-community-hwe-20.01.00.10_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-08-05 01:52
#1

卸载重装内核试试:

sudo apt autopurge linux-image-5.18.17-amd64-desktop-hwe linux-headers-5.18.17-amd64-desktop-hwe

sudo apt install -f

sudo apt install linux-image-5.18.17-amd64-desktop-hwe linux-headers-5.18.17-amd64-desktop-hwe

Reply View the author
忘记、过去
deepin
2023-08-05 01:55
#2
sudo apt purge linux-image-5.18.17-amd64-desktop-hwe linux-headers-5.18.17-amd64-desktop-hwe
sudo apt install -f
sudo apt install linux-headers-deepin-hwe-amd64 linux-image-deepin-hwe-amd64

卸载旧版本有冲突的内核即可

Reply View the author
Breeze
deepin
2023-08-05 19:44
#3

一样的情况,上面的命令行都没有解决问题

Error!  The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
Warning: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
update-initramfs: Generating /boot/initrd.img-5.18.17-amd64-desktop-hwe
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries 
    nor crypto modules. If that's on purpose, you may want to uninstall the 
    'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs 
    integration and avoid this warning.
I: The initramfs will attempt to resume from /dev/nvme0n1p7
I: (UUID=9c9904d4-9939-4ce6-b1b4-a453cd4bba82)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dnsE: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.18.17-amd64-desktop-hwe with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
fix systemd/logind config
正在生成 grub 配置文件 ...
找到主题:/boot/grub/themes/deepin-fallback/theme.txt
Found background image: /boot/grub/themes/deepin-fallback/background.jpg
找到 Linux 镜像:/boot/vmlinuz-5.18.17-amd64-desktop-hwe
找到 initrd 镜像:/boot/deepin-ab-recovery/initrd.img-5.18.17-amd64-desktop-community-hwe
11_deepin_ab_recovery back grub args: splash quiet DEEPIN_GFXMODE=$DEEPIN_GFXMODE
Found  image: /boot/vmlinuz-5.18.17-amd64-desktop-hwe
Adding boot menu entry for EFI firmware configuration
完成
dpkg: 处理软件包 linux-image-5.18.17-amd64-desktop-community-hwe (--configure)时出错:
 已安装 linux-image-5.18.17-amd64-desktop-community-hwe 软件包 post-installation 脚本 子进程返回错误状态 1
正在设置 linux-headers-5.18.17-amd64-desktop-community-hwe (5.18.17-amd64-desktop-community-hwe-20.01.00.10) ...
dpkg: 依赖关系问题使得 linux-image-deepin-hwe-amd64 的配置工作不能继续:
 linux-image-deepin-hwe-amd64 依赖于 linux-image-5.18.17-amd64-desktop-community-hwe;然而:
  软件包 linux-image-5.18.17-amd64-desktop-community-hwe 尚未配置。

dpkg: 处理软件包 linux-image-deepin-hwe-amd64 (--configure)时出错:
 依赖关系问题 - 仍未被配置
正在设置 linux-headers-deepin-hwe-amd64 (5.18.17.2-hwe) ...
在处理时有错误发生:
 linux-image-5.18.17-amd64-desktop-community-hwe
 linux-image-deepin-hwe-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply View the author
kirin2020
deepin
2023-08-11 06:46
#4
忘记、过去
sudo apt purge linux-image-5.18.17-amd64-desktop-hwe linux-headers-5.18.17-amd64-desktop-hwe
sudo apt install -f
sudo apt install linux-headers-deepin-hwe-amd64 linux-image-deepin-hwe-amd64

卸载旧版本有冲突的内核即可

谢谢,按你的方法成功修复了,现在可以正常升级系统了。😄

Reply View the author