[System Installation] Deepin20.9提示有内核升级,但是每次升级都会失败
Tofloor
poster avatar
masterjian
deepin
2023-07-08 00:16
Author

Deepin20.9提示有内核升级,但是每次升级都会失败。

用apt 升级时,得到下面的错误消息(部分)


(base) myusername@Deepin-PC:~$ sudo apt upgrade
请输入密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在计算更新... 完成
下列软件包的版本将保持不变:
linux-headers-deepin-hwe-amd64 linux-image-deepin-hwe-amd64
下列软件包将被升级:
linux-headers-5.18.17-amd64-desktop-community-hwe linux-image-5.18.17-amd64-desktop-community-hwe
升级了 2 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 2 个软件包未被升级。
有 145 个软件包没有被完全安装或卸载。
需要下载 0 B/83.0 MB 的归档。
解压缩后将会空出 252 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 296244 个文件和目录。)
准备解压 .../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: broadcom-sta 6.30.223.271 (5.18.17-amd64-desktop-community-hwe) (x86_64)

-------- Uninstall Beginning --------
Module: broadcom-sta
Version: 6.30.223.271
Kernel: 5.18.17-amd64-desktop-community-hwe (x86_64)

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

wl.ko:

  • Uninstallation
    • Deleting from: /lib/modules/5.18.17-amd64-desktop-community-hwe/updates/dkms/
      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...

update-initramfs...

DKMS: uninstall completed.
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 3.2 (5.18.17-amd64-desktop-community-hwe) (x86_64)

-------- Uninstall Beginning --------
Module: huawei-wmi
Version: 3.2
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//
      rmdir: 删除 '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.
dkms: removing: rtw89 1.0.3 (5.18.17-amd64-desktop-community-hwe) (x86_64)

-------- Uninstall Beginning --------
Module: rtw89
Version: 1.0.3
Kernel: 5.18.17-amd64-desktop-community-hwe (x86_64)

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

rtw89pci.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.

rtw89core.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.

rtw_8852a.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.

rtw_8852ae.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.
已删除'/boot/initrd.img-5.18.17-amd64-desktop-community-hwe.old-dkms'
正在解压 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-07-08 00:18
#1

卸载重装内核试试。

Reply View the author
浪云
deepin
2023-07-08 00:48
#2

深度之家反馈吧

Reply View the author
忘记、过去
deepin
2023-07-08 00:57
#3
sudo apt autopurge linux-image-5.18.17-amd64-desktop-hwe linux-headers-5.18.17-amd64-desktop-hwe

sudo apt install -f
Reply View the author
翻过山峰看见云
deepin
2023-07-08 01:27
#4

先别用这个版本内核了,换一个,我看论坛里好几个人遇到这个问题了,我也遇到了

Reply View the author
晚秋(lateautumn)
Moderator
2023-07-08 01:37
#5

我把V20.9给卸载了,装了开放麒麟1.0。并不是V20.9不好,因为V23 beta版经过几次升级后,已经非常稳定了,对于我来说足够胜任我的需要了。另外也想了解一下开放麒麟现在的进展程度,以前安装过开放麒麟0.95版,不好用,给卸载了。

Reply View the author
青稚
Moderator
2023-07-08 04:17
#6
晚秋(lateautumn)

我把V20.9给卸载了,装了开放麒麟1.0。并不是V20.9不好,因为V23 beta版经过几次升级后,已经非常稳定了,对于我来说足够胜任我的需要了。另外也想了解一下开放麒麟现在的进展程度,以前安装过开放麒麟0.95版,不好用,给卸载了。

开放麒麟1.0目前挺稳定的。

Reply View the author
masterjian
deepin
2023-07-08 17:37
#7
浪云

深度之家反馈吧

好的

Reply View the author
masterjian
deepin
2023-07-08 17:39
#8
晚秋(lateautumn)

我把V20.9给卸载了,装了开放麒麟1.0。并不是V20.9不好,因为V23 beta版经过几次升级后,已经非常稳定了,对于我来说足够胜任我的需要了。另外也想了解一下开放麒麟现在的进展程度,以前安装过开放麒麟0.95版,不好用,给卸载了。

看过一些开放麒麟的文章,我觉得,还是Deepin总体更稳(不只是系统稳定性,也包括后续可能会遇到的问题)

Reply View the author
masterjian
deepin
2023-07-08 17:44
#9
忘记、过去
sudo apt autopurge linux-image-5.18.17-amd64-desktop-hwe linux-headers-5.18.17-amd64-desktop-hwe

sudo apt install -f

搞定。多谢

(其实不升级也没关系,看着别扭。强迫症)

Reply View the author
浪云
deepin
2023-07-08 18:25
#10

https://bbs.deepin.org/zh/post/259047

w我的本本也遇到了

Reply View the author
lv36
deepin
2023-07-08 20:15
#11

我昨晚也遇到了,一通操作下来,内核给搞没了,无法启动,live系统下重装内核也报错😰,搞到凌晨两点多,都无法正常启动,后悔点了个系统升级。

今晚上回去重装系统.....

Reply View the author
ThinKinG
deepin testing team
2023-07-24 22:34
#12

亲!这个问题是因为内核包名冲突了

手动输入: sudo dpkg --remove 当前内核 ,

然后输入:sudo apt install -f 后,

输入: sudo apt update

输入:sudo apt dist-upgrade 进行升级

执行过程中不要重启电脑,试下

Reply View the author