[System Installation] 20.9系统更新失败20230622
Tofloor
poster avatar
seasky
deepin
2023-06-23 07:27
Author

【系统环境】
镜像版本:20.9
CPU:CPU : 12th Gen Intel(R) Core(TM) i9-12900H (FourteenCore(s) / TwentyProcessor)

GPU:VGA compatible controller: Intel Corporation Device 46a6 (rev 0c)

【操作步骤】
sudo apt update

sudo apt upgrade

【问题现象】

升级失败,错误日志见附件。update-error.txt

Reply Favorite View the author
All Replies
donaldsebleung
deepin
2023-06-23 17:38
#1

请问您的系统有混源吗?如方便,请把以下命令的输出拷到论坛上:

cat /etc/apt/sources.list /etc/apt/sources.list.d/*
Reply View the author
青稚
deepin
2023-06-23 17:54
#2

更新失败一般情况下是混源造成的。

Reply View the author
阿尼樱奈奈
deepin
2023-06-23 18:31
#3
donaldsebleung

请问您的系统有混源吗?如方便,请把以下命令的输出拷到论坛上:

cat /etc/apt/sources.list /etc/apt/sources.list.d/*

可以通过删除或注释第三方源解决;还是不行就只能重装系统了。

Reply View the author
忘记、过去
deepin
2023-06-23 21:06
#4
sudo apt autopurge linux-image-5.18.17-amd64-desktop-hwe=5.18.17-amd64-desktop-hwe-20.01.00.01

sudo apt install -f

你的系统里有之前打包的 hwe 内核,后面推送的内核包名被改过,中间加上了 community 标识。导致升级的时候不会被替换,且新的内核包和旧的包存在文件冲突,安装失败

Reply View the author
ininter0112
deepin
2023-06-24 00:48
#5

我这也是同样的问题,更新后启动不了系统,在GRUB编辑界面中,把community标识删掉后,可以启动到系统。

运行sudo dpkg --configure -a或install -f两个命令都不行。也无法自动卸载

正在设置 linux-image-5.18.17-amd64-desktop-community-hwu may want to uninstall the

'cryptsetup-initramfs' package in order to disable the cryptsetup initramfse (5.18.17-amd64-desktop-community-hwe-20.01.00.10) ...
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, yo
integration and avoid this warning.
setupcon is missing. Please install the 'console-setup' package.
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=cf53e490-472c-4aa0-8f10-992094ffcc1e)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dns.
fix systemd/logind config
get rootb uuid error: failed to get "rootb" uuid
正在生成 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/initrd.img-5.18.17-amd64-desktop-hwe
/etc/grub.d/15_deepin-boot-kit:行44: /usr/sbin/deepin-boot-kit: 没有那个文件或目录
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: 处理软件包 linux-image-5.18.17-amd64-desktop-community-hwe (--configure)时出错:
已安装 linux-image-5.18.17-amd64-desktop-community-hwe 软件包 post-installation 脚本 子进程返回错误状态 1
在处理时有错误发生:
linux-image-5.18.17-amd64-desktop-community-hwe

Reply View the author
seasky
deepin
2023-06-30 00:58
#6
donaldsebleung

请问您的系统有混源吗?如方便,请把以下命令的输出拷到论坛上:

cat /etc/apt/sources.list /etc/apt/sources.list.d/*

$ cat /etc/apt/sources.list /etc/apt/sources.list.d/*

#Generated by deepin-installer

deb https://community-packages.deepin.com/deepin/ apricot main contrib non-free
#deb-src https://community-packages.deepin.com/deepin/ apricot main contrib non-free

#Written by deepin-home-appstore-client

deb https://com-store-packages.uniontech.com/appstore deepin appstore
deb https://pro-driver-packages.uniontech.com eagle non-free

#Written by dde-printer

deb https://community-packages.deepin.com/driver/ driver non-free
deb https://community-packages.deepin.com/printer eagle non-free

执行结果如上,更新源没有手动编辑过

Reply View the author
seasky
deepin
2023-06-30 01:00
#7
忘记、过去
sudo apt autopurge linux-image-5.18.17-amd64-desktop-hwe=5.18.17-amd64-desktop-hwe-20.01.00.01

sudo apt install -f

你的系统里有之前打包的 hwe 内核,后面推送的内核包名被改过,中间加上了 community 标识。导致升级的时候不会被替换,且新的内核包和旧的包存在文件冲突,安装失败

这样强制更新会出问题么?比如像5楼一样无法启动

Reply View the author
seasky
deepin
2023-06-30 01:09
#8
ininter0112

我这也是同样的问题,更新后启动不了系统,在GRUB编辑界面中,把community标识删掉后,可以启动到系统。

运行sudo dpkg --configure -a或install -f两个命令都不行。也无法自动卸载

正在设置 linux-image-5.18.17-amd64-desktop-community-hwu may want to uninstall the

'cryptsetup-initramfs' package in order to disable the cryptsetup initramfse (5.18.17-amd64-desktop-community-hwe-20.01.00.10) ...
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, yo
integration and avoid this warning.
setupcon is missing. Please install the 'console-setup' package.
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=cf53e490-472c-4aa0-8f10-992094ffcc1e)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dns.
fix systemd/logind config
get rootb uuid error: failed to get "rootb" uuid
正在生成 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/initrd.img-5.18.17-amd64-desktop-hwe
/etc/grub.d/15_deepin-boot-kit:行44: /usr/sbin/deepin-boot-kit: 没有那个文件或目录
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: 处理软件包 linux-image-5.18.17-amd64-desktop-community-hwe (--configure)时出错:
已安装 linux-image-5.18.17-amd64-desktop-community-hwe 软件包 post-installation 脚本 子进程返回错误状态 1
在处理时有错误发生:
linux-image-5.18.17-amd64-desktop-community-hwe

请问你的现在更新成功了么?

Reply View the author