[Seek Help] 社区版20.9升级报错 Resolved
Tofloor
poster avatar
xiaotaoqi
deepin
2023-07-18 17:46
Author

家里笔记本和台式机均安装了deepin,版本也是一致的。

最近 sudo apt update && sudo apt dist-upgrade -y 均遇到了以下错误:

xiaolu@xiaolu-computer:~$ sudo apt dist-upgrade -y
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在计算更新... 完成
下列软件包的版本将保持不变:
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 个软件包未被升级。
需要下载 0 B/83.0 MB 的归档。
解压缩后将会空出 252 kB 的空间。
(正在读取数据库 ... 系统当前共安装有 315868 个文件和目录。)
准备解压 .../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//
  • 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: rtl8814au 5.8.5.1 (5.18.17-amd64-desktop-community-hwe) (x86_64)

-------- Uninstall Beginning --------
Module: rtl8814au
Version: 5.8.5.1
Kernel: 5.18.17-amd64-desktop-community-hwe (x86_64)

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

8814au.ko:

  • Uninstallation
    • Deleting from: /lib/modules/5.18.17-amd64-desktop-community-hwe/kernel/drivers/net/wireless/
      rmdir: 删除 'kernel/drivers/net/wireless' 失败: 目录非空
  • 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: rtl8852be 1.15.10.0.2 (5.18.17-amd64-desktop-community-hwe) (x86_64)

-------- Uninstall Beginning --------
Module: rtl8852be
Version: 1.15.10.0.2
Kernel: 5.18.17-amd64-desktop-community-hwe (x86_64)

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

8852be.ko:

  • Uninstallation
    • Deleting from: /lib/modules/5.18.17-amd64-desktop-community-hwe/kernel/drivers/net/wireless/
      rmdir: 删除 'kernel/drivers/net/wireless' 失败: 目录非空
  • 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: 错误: 粘贴 子进程被信号(断开的管道) 终止了
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.

卡在44%, 最终以关闭shell框结束。

请教,此问题如何解决,影响正常的软件更新。

Reply Favorite View the author
All Replies
ThinKinG
deepin testing team
2023-07-18 17:52
#1

亲!

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

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

输入: sudo apt update

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

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

Reply View the author
xiaotaoqi
deepin
2023-07-18 18:00
#2
It has been deleted!
xiaotaoqi
deepin
2023-07-18 18:02
#3
ThinKinG

亲!

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

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

输入: sudo apt update

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

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

image.png

Reply View the author
忘记、过去
deepin
2023-07-18 18:13
#4
xiaotaoqi

image.png

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

Reply View the author
xiaotaoqi
deepin
2023-07-18 23:17
#5
ThinKinG

亲!

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

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

输入: sudo apt update

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

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

将第一条命令换成4楼的后,依次执行随后的命令。 中途虽然有报错。 但进度条走完了, sudo apt update 已经可以了。

谢谢。

Reply View the author
xiaotaoqi
deepin
2023-07-18 23:17
#6
忘记、过去

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

可以 remove了。谢谢- -

Reply View the author