[Internal testing communication] deepin25 编译内核打包deb
Tofloor
poster avatar
LiuYongzhang
deepin
2025-10-31 08:40
Author

重要的事情说三遍 数据无价!!!备份重要数据!!! 数据无价!!!备份重要数据!!!数据无价!!!备份重要数据!!!

deepin25 编译内核打包deb

照抄系统配置,或者手动自定义配置,新增项使用默认值编译内核并打包deb

Make Menuconfig 详细介绍配置项

1:重要的事情说三遍 数据无价!!!备份重要数据!!! 数据无价!!!备份重要数据!!!数据无价!!!备份重要数据!!!

2:下载心仪的内核 kernel.org清华源中科大源并解压 尽量放在下载文件夹下

3:kernel-make-deb.sh.txt

下载后重命名为:kernel-make-deb.sh 复制到解压好的 内核目录 右击 选择属性 --权限管理----允许以程序运行

4:打开下载并解压好的内核目录 在里面右击 在终端打开

在打开的终端里输入 sudo (这里有空格)然后把kernel-make-deb.sh拖动到终端

然后 回车 输入密码根据提示 输入 y

截图_选择区域_20251103164705.png

截图_选择区域_20251103190209.png

image.png

安装新编译的内核前如果安装有nvidia的闭源驱动一定要先卸载

sudo apt purge nvidia* -y

然后安装内核

重新启动进入桌面再安装nvidia的驱动

sudo apt install nvidia-*full -y

Reply Favorite View the author
All Replies
叶落无语
deepin
2025-10-31 08:58
#1

能顺便介绍一下新版内核改进了哪些地方吗?

Reply View the author
LiuYongzhang
deepin
2025-10-31 09:00
#2
叶落无语

能顺便介绍一下新版内核改进了哪些地方吗?

没有改进照抄系统配置

Reply View the author
186******75
deepin
2025-10-31 09:32
#3

最后把打包写进去好一些

Reply View the author
辉辉
deepin
2025-10-31 10:37
#4

以前有个一键换内核的工具,但是使用了几次没一次成功的,真是尴尬。

顺便吐槽下,你是个标题党,你这一顿下来,少说也要10键不止了吧joy

Reply View the author
LiuYongzhang
deepin
2025-10-31 10:41
#5
辉辉

以前有个一键换内核的工具,但是使用了几次没一次成功的,真是尴尬。

顺便吐槽下,你是个标题党,你这一顿下来,少说也要10键不止了吧joy

deepin 安装非源里面的内核,最好关闭磐石,如果有nvidia的闭源驱动建议先卸载 ,安装内核后进入桌面后再安装nvidia的驱动

Reply View the author
森林的天空
deepin
2025-10-31 14:04
#6

我的机器编译一次内核要几个钟,懒得折腾了。

Reply View the author
Tent
deepin
2025-10-31 14:35
#7

早先我在i9-13900hx的七彩虹x15at23笔记本上,也是自己编新版本内核包来用。

自从有了6.6及更高版本的官方内核版本后,倒是再没自己编过内核了。

Reply View the author
LiuYongzhang
deepin
2025-10-31 15:58
#8
辉辉

以前有个一键换内核的工具,但是使用了几次没一次成功的,真是尴尬。

顺便吐槽下,你是个标题党,你这一顿下来,少说也要10键不止了吧joy

也可以激进点。自己改一下脚本,直接默认无提示. 不用守着,我这开始了就睡觉去了,睡醒已经安装好了

Reply View the author
LiuYongzhang
deepin
2025-10-31 19:34
#9
186******75

最后把打包写进去好一些

打包的好了

Reply View the author
rong
deepin
2025-11-02 16:08
#10

完成后系统重启无法进入

Reply View the author
LiuYongzhang
deepin
2025-11-02 17:52
#11
rong

完成后系统重启无法进入

换原来的内核进入桌面,卸载nvidia闭源驱动,然后重新启动

Reply View the author
沉时派
deepin
2025-11-03 15:13
#12

输出:内核映像安装失败

错误信息:

executing /etc/kernel/postinst.d/initramfs-tools 6.17.7-amd64-desktop-rolling /boot/vmlinuz-6.17.7-amd64-desktop-rollingupdate-initramfs: Generating /boot/initrd.img-6.17.7-amd64-desktop-rollinggrep: /boot/config-6.17.7-amd64-desktop-rolling: 没有那个文件或目录W: zstd compression (CONFIG_RD_ZSTD) not supported by kernel, using gzipgrep: /boot/config-6.17.7-amd64-desktop-rolling: 没有那个文件或目录E: gzip compression (CONFIG_RD_GZIP) not supported by kernelupdate-initramfs: failed for /boot/initrd.img-6.17.7-amd64-desktop-rolling with 1.run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1make[1]: *** [arch/x86/Makefile:329:install] 错误 1make: *** [Makefile:248:__sub-make] 错误 2[ERROR] 内核映像安装失败

Reply View the author
LiuYongzhang
deepin
2025-11-03 15:55
#13

添加缺失的依赖包

  • 添加 debhelper - Debian 打包工具
  • 添加 debhelper-compat - Debian helper 兼容性包
Reply View the author
沉时派
deepin
2025-11-04 09:29
#14
It has been deleted!
沉时派
deepin
2025-11-05 09:17
#15
LiuYongzhang

添加缺失的依赖包

  • 添加 debhelper - Debian 打包工具
  • 添加 debhelper-compat - Debian helper 兼容性包

deepin的官方源里面并没有 debhelper-compat包,我把他给注释掉了,也能正常打包编译
图片.png

Reply View the author