[Share Experiences] 20.9升级-community-内核遇到的, Resolved
Tofloor
poster avatar
浪云
deepin
2023-07-08 05:07
Author

本本的0.0要升级到-community-的内核,

好像有一个帖子也说过遇到了,应该是之这个问题吧

台式机没遇到

本本上遇到了,升级很久没结束,强行关机了

截图_选择区域_20230707205907.jpg

截图_选择区域_20230707210136.jpg

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

你命令前没有加sudo:sudo apt-get update

Reply View the author
寂静的羽夏
deepin
2023-07-08 05:56
#2

一旦终端显示的是权限不够或者是 Permission Denied ,说明需要更高的系统权限,偷懒或者个人 PC 直接 root 权限,那请在命令前加 sudo

Reply View the author
浪云
deepin
2023-07-08 18:21
#3

$ sudo apt update && sudo apt upgrade && sudo apt autoremove

都是这句

Reply View the author
阿尼樱奈奈
Moderator
2023-07-08 18:22
#4
浪云

$ sudo apt update && sudo apt upgrade && sudo apt autoremove

都是这句

sudo apt autoremove 可以不要

只需要执行 sudo apt update && sudo apt upgrade 就行了

Reply View the author
浪云
deepin
2023-07-08 19:05
#5
阿尼樱奈奈

sudo apt autoremove 可以不要

只需要执行 sudo apt update && sudo apt upgrade 就行了

收到,谢谢阿尼

Reply View the author
阿尼樱奈奈
Moderator
2023-07-08 19:13
#6
浪云

收到,谢谢阿尼

blush

Reply View the author
晚秋(lateautumn)
Moderator
2023-07-08 19:33
#7

越来越发现阿尼樱是真厉害applaud

Reply View the author
浪云
deepin
2023-07-09 17:53
#8

然后进不去了

IMG_20230709_095226378.jpg

Reply View the author
浪云
deepin
2023-07-09 18:45
#9

勉强进来了

E420@E420-PC:$ sudo apt-get install linux-image-5.8.14-amd64 linux-headers-5.8.14-amd64sudo apt-get install linux-image-5.8.14-amd64 linux-headers-5.8.14-amd64
请输入密码:
验证成功
E: dpkg 被中断,您必须手工运行 ‘sudo dpkg --configure -a’ 解决此问题。
E420@E420-PC:
$ sudo dpkg --configure -a
正在设置 linux-image-5.18.17-amd64-desktop-community-hwe (5.18.17-amd64-desktop-community-hwe-20.01.00.10) ...
update-initramfs: Generating /boot/initrd.img-5.18.17-amd64-desktop-hwe
/usr/sbin/mkinitramfs: 305: /usr/sbin/mkinitramfs: add_builtin_firmware: not found
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.
setupcon is missing. Please install the 'console-setup' package.
cp: 无法获取'/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf' 的文件状态(stat): 没有那个文件或目录
E: /usr/share/initramfs-tools/hooks/plymouth 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
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
找到 Windows Boot Manager 位于 /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
完成
dpkg: 处理软件包 linux-image-5.18.17-amd64-desktop-community-hwe (--configure)时出错:
已安装 linux-image-5.18.17-amd64-desktop-community-hwe 软件包 post-installation 脚本 子进程返回错误状态 1
正在设置 initramfs-tools (0.137.36-deepin1) ...
update-initramfs: deferring update (trigger activated)
正在设置 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)时出错:
依赖关系问题 - 仍未被配置
正在设置 deepin-wine-runtime (0.0.14) ...
正在设置 deepin-wine6-stable (6.0.0.54-1) ...
正在设置 linux-headers-deepin-hwe-amd64 (5.18.17.2-hwe) ...
正在设置 uengine (2.1.2.2014) ...
Removed /etc/systemd/system/multi-user.target.wants/uengine-container.service.
Removed /etc/systemd/system/graphical.target.wants/uengine-session.service.
SSD
Created symlink /etc/systemd/system/multi-user.target.wants/uengine-container.service → /lib/systemd/system/uengine-container.service.
Created symlink /etc/systemd/system/graphical.target.wants/uengine-session.service → /lib/systemd/system/uengine-session.service.
uengine session start successful.
正在处理用于 libc-bin (2.28.21-1+deepin-1) 的触发器 ...
正在处理用于 initramfs-tools (0.137.36-deepin1) 的触发器 ...
在处理时有错误发生:
linux-image-5.18.17-amd64-desktop-community-hwe
linux-image-deepin-hwe-amd64

Reply View the author
浪云
deepin
2023-07-09 18:58
#10

E420@E420-PC:~$ sudo apt-get update && sudo apt-get dist-upgrade
命中:1 https://community-packages.deepin.com/deepin apricot InRelease
命中:2 https://community-packages.deepin.com/driver driver InRelease
命中:4 https://proposed-packages.deepin.com/dde-apricot unstable InRelease
命中:5 https://community-packages.deepin.com/printer eagle InRelease
命中:3 https://home-store-img.uniontech.com/230707175049634/appstore deepin InRelease
命中:6 https://pro-driver-packages.uniontech.com eagle InRelease
正在读取软件包列表... 完成
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在计算更新... 完成
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 2 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 linux-image-5.18.17-amd64-desktop-community-hwe (5.18.17-amd64-desktop-community-hwe-20.01.00.10) ...
update-initramfs: Generating /boot/initrd.img-5.18.17-amd64-desktop-hwe
/usr/sbin/mkinitramfs: 305: /usr/sbin/mkinitramfs: add_builtin_firmware: not found
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.
setupcon is missing. Please install the 'console-setup' package.
cp: 无法获取'/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf' 的文件状态(stat): 没有那个文件或目录
E: /usr/share/initramfs-tools/hooks/plymouth 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
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
找到 Windows Boot Manager 位于 /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
完成
dpkg: 处理软件包 linux-image-5.18.17-amd64-desktop-community-hwe (--configure)时出错:
已安装 linux-image-5.18.17-amd64-desktop-community-hwe 软件包 post-installation 脚本 子进程返回错误状态 1
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-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
浪云
deepin
2023-07-09 19:36
#11

20@E420-PC:~$ wget http://kernel.dclc.gfdgdxi.top/sources/github.sh ; bash github.sh ; rm github.sh
--2023-07-09 11:10:19-- http://kernel.dclc.gfdgdxi.top/sources/github.sh
正在解析主机 kernel.dclc.gfdgdxi.top (kernel.dclc.gfdgdxi.top)... 2606:50c0:8002::153, 2606:50c0:8000::153, 2606:50c0:8003::153, ...
正在连接 kernel.dclc.gfdgdxi.top (kernel.dclc.gfdgdxi.top)|2606:50c0:8002::153|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:548 [application/x-sh]
正在保存至: “github.sh”

github.sh 100%[=================================================>] 548 --.-KB/s 用时 0s

2023-07-09 11:10:21 (18.4 MB/s) - 已保存 “github.sh” [548/548])

--2023-07-09 11:10:21-- http://kernel.dclc.gfdgdxi.top/gpg.asc
正在解析主机 kernel.dclc.gfdgdxi.top (kernel.dclc.gfdgdxi.top)... 2606:50c0:8001::153, 2606:50c0:8003::153, 2606:50c0:8000::153, ...
正在连接 kernel.dclc.gfdgdxi.top (kernel.dclc.gfdgdxi.top)|2606:50c0:8001::153|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2432 (2.4K) [application/pgp-keys]
正在保存至: “/tmp/gfdgd-xi-sources/gpg.asc”

gpg.asc 100%[=================================================>] 2.38K --.-KB/s 用时 0s

2023-07-09 11:10:22 (73.2 MB/s) - 已保存 “/tmp/gfdgd-xi-sources/gpg.asc” [2432/2432])

--2023-07-09 11:10:22-- http://kernel.dclc.gfdgdxi.top/sources/github.list
正在解析主机 kernel.dclc.gfdgdxi.top (kernel.dclc.gfdgdxi.top)... 2606:50c0:8002::153, 2606:50c0:8000::153, 2606:50c0:8003::153, ...
正在连接 kernel.dclc.gfdgdxi.top (kernel.dclc.gfdgdxi.top)|2606:50c0:8002::153|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:39 [text/plain]
正在保存至: “/tmp/gfdgd-xi-sources/github.list”

github.list 100%[=================================================>] 39 --.-KB/s 用时 0s

2023-07-09 11:10:23 (1.37 MB/s) - 已保存 “/tmp/gfdgd-xi-sources/github.list” [39/39])

'/tmp/gfdgd-xi-sources/gpg.asc.gpg' -> '/etc/apt/trusted.gpg.d/gfdgdxi-kernel-list.gpg'
'/tmp/gfdgd-xi-sources/github.list' -> '/etc/apt/sources.list.d/gfdgdxi-kernel-list.list'
命中:2 https://community-packages.deepin.com/deepin apricot InRelease
命中:3 https://pro-driver-packages.uniontech.com eagle InRelease
命中:4 https://community-packages.deepin.com/driver driver InRelease
命中:5 https://proposed-packages.deepin.com/dde-apricot unstable InRelease
命中:6 https://community-packages.deepin.com/printer eagle InRelease
命中:1 https://home-store-img.uniontech.com/230707175049634/appstore deepin InRelease
获取:7 http://kernel.dclc.gfdgdxi.top ./ InRelease [1,524 B]
获取:8 http://kernel.dclc.gfdgdxi.top ./ Packages [265 kB]
已下载 266 kB,耗时 37秒 (7,163 B/s)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有 3 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
E420@E420-PC:$ apt list --upgradable
正在列表... 完成
linux-headers-deepin-hwe-amd64/未知 6.1.11-hwe amd64 [可从该版本升级:5.18.17.2-hwe]
linux-image-deepin-hwe-amd64/未知 6.1.11-hwe amd64 [可从该版本升级:5.18.17.2-hwe]
linux-libc-dev/未知 6.4.2-1 amd64 [可从该版本升级:5.18.17-amd64-desktop-hwe-20.01.00.01]
E420@E420-PC:
$ sudo apt install linux-image-5.18.17-amd64-desktop-community-hwe linux-headers-5.18.17-amd64-desktop-hwe
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
linux-image-5.18.17-amd64-desktop-community-hwe 已经是最新版 (5.18.17-amd64-desktop-community-hwe-20.01.00.10)。
linux-image-5.18.17-amd64-desktop-community-hwe 已设置为手动安装。
将会同时安装下列软件:
linux-headers-6.1.11-amd64-desktop-hwe linux-headers-deepin-hwe-amd64
下列【新】软件包将被安装:
linux-headers-5.18.17-amd64-desktop-hwe linux-headers-6.1.11-amd64-desktop-hwe
下列软件包将被升级:
linux-headers-deepin-hwe-amd64
升级了 1 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 2 个软件包未被升级。
有 2 个软件包没有被完全安装或卸载。
需要下载 17.6 MB 的归档。
解压缩后会消耗 106 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 https://community-packages.deepin.com/deepin apricot/non-free amd64 linux-headers-5.18.17-amd64-desktop-hwe amd64 5.18.17-amd64-desktop-hwe-20.01.00.01 [8,684 kB]
获取:2 http://kernel.dclc.gfdgdxi.top ./ linux-headers-6.1.11-amd64-desktop-hwe 23.01.00.14 [8,945 kB]
获取:3 http://kernel.dclc.gfdgdxi.top ./ linux-headers-deepin-hwe-amd64 6.1.11-hwe [1,916 B]
已下载 17.6 MB,耗时 14分 32秒 (20.2 kB/s)
正在选中未选择的软件包 linux-headers-6.1.11-amd64-desktop-hwe。
(正在读取数据库 ... 系统当前共安装有 259912 个文件和目录。)
准备解压 .../linux-headers-6.1.11-amd64-desktop-hwe_23.01.00.14_amd64.deb ...
正在解压 linux-headers-6.1.11-amd64-desktop-hwe (23.01.00.14) ...
准备解压 .../linux-headers-deepin-hwe-amd64_6.1.11-hwe_amd64.deb ...
正在解压 linux-headers-deepin-hwe-amd64 (6.1.11-hwe) 并覆盖 (5.18.17.2-hwe) ...
正在选中未选择的软件包 linux-headers-5.18.17-amd64-desktop-hwe。
准备解压 .../linux-headers-5.18.17-amd64-desktop-hwe_5.18.17-amd64-desktop-hwe-20.01.00.01_amd64.deb ...
正在解压 linux-headers-5.18.17-amd64-desktop-hwe (5.18.17-amd64-desktop-hwe-20.01.00.01) ...
dpkg: 处理归档 /var/cache/apt/archives/linux-headers-5.18.17-amd64-desktop-hwe_5.18.17-amd64-desktop-hwe-20.01.00.01_amd64.deb (--unpack)时出错:
正试图覆盖 /usr/share/doc/linux-headers-5.18.17-amd64-desktop-hwe/changelog.Debian.gz,它同时被包含于软件包 linux-headers-5.18.17-amd64-desktop-community-hwe 5.18.17-amd64-desktop-community-hwe-20.01.00.10
dpkg-deb: 错误: 粘贴 子进程被信号(断开的管道) 终止了
在处理时有错误发生:
/var/cache/apt/archives/linux-headers-5.18.17-amd64-desktop-hwe_5.18.17-amd64-desktop-hwe-20.01.00.01_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply View the author
浪云
deepin
2023-07-09 20:27
#12

一番操作猛如虎

出错不断

最后莫名其妙好了

得出一个结论,不能强行关机,特别是在升级很久很久却没结束的时候

joy

Reply View the author